Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install opensrscli

How to install opensrscli

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install opensrscli
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.9 Available View build log
0.1.6 Available View build log
Windows (64-bit)
0.1.6
0.1.9Never BuiltWhy not?
0.1.6 Available View build log
Mac OS X (10.5+)
0.1.9 Available View build log
0.1.6 Available View build log
Linux (32-bit)
0.1.9 Available View build log
0.1.7 Available View build log
0.1.6 Available View build log
Linux (64-bit)
0.1.9 Available View build log
0.1.7 Available View build log
0.1.6 Available View build log
 
Author
License
BSD
Imports
Lastest release
version 0.1.9 on Nov 20th, 2012

DISCLAIMER: This is extremely alpha/beta/not-production code at this point. I take no responsiblity for the use of this software to manage OpenSRS accounts.

This package provides a set of pyCLI applications for interfacing with an OpenSRS reseller account.

Installation

Install from pypi:

$ pip install opensrscli

Development

Install virtualenv and distribute if they aren't already present:

$ pip install distribute virtualenv

Clone the project and initialize a development environment:

$ git clone git://github.com/shawnsi/opensrs-cli.git && cd opensrs-cli
$ virtualenv .
$ source /bin/activate

You can use distribute to install dependencies and setup entry points:

$ python setup.py develop

Configuration

Basic Auth

You must create a yaml file to provide OpenSRS authentication info at a minimum. This should match the user and private key information you setup in the OpenSRS reseller dashboard for API access.

Auth template:

username:
private_key:

Now provide the prefs.yaml file to opensrs commands with the -p or --preferences parameter. If no preferences file is specified opensrs-cli will look in $HOME/.opensrs/prefs.

Contact Sets

In order to perform and domain registration or transfers contact sets will need to be defined. Add them to prefs.yaml using the following template. A default contact can be provided and fields can be overriden for admin, owner, billing, or tech contacts.

Contact set template:

contact_set:
  default:
    first_name:
    last_name:
    org_name:
    address1:
    city:
    state:
    postal_code:
    country:
    phone:
    email:
  billing:
    last_name:
    email:
  tech:
    last_name:
    email:

Usage

This package installs scripts prefixed with opensrs.

Currently provided:

  • opensrs-balance

    Returns account balance

  • opensrs-check-transfer

    Returns transfer status of one or more domains

  • opensrs-transfer

    Transfers one or more domains according to contact sets described above

  • opensrs-get-nameservers

    Get the nameservers attached to one or more domains

  • opensrs-set-nameservers

    Sets default nameservers from user preferences file on one or more domains

  • opensrs-lock

    Lock one or more domains

  • opensrs-unlock

    Unlock one or more domains

Subscribe to package updates

Last updated Nov 20th, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.