Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Higher level Python interface to the OpenSRS XML API

Project Description
OpenSRS-py
Version 0.1.4
=============

This is a python implementation of the [OpenSRS][opensrs] [XML API][xmlapi].

It is only a light wrapper around the structure of the requests and
responses as defined by the API.

Example Usage
-------------

Here is what a post call looks like:

from opensrs import OpenSRS
opensrs = OpenSRS("myusername", "privatekey", test=True)
opensrs.post("sw_register", "domain",
attrs={
"domain": "example.com",
"auto_renew": 1,
"link_domains": 0,
"reg_type": "new",
"contact_set": {
"owner": { ... },
"admin": { ... },
"billing": { ... },
"tech": { ... },
},
"nameserver_list": [
{
"sortorder": 1,
"name": "ns1.fatbox.ca",
},
{
"sortorder": 2,
"name": "ns2.fatbox.ca",
},
],
},
extra_items = {
"registrant_ip": "1.2.3.4",
},
)

And you get back a data structure like:

{
"protocol": "XCP",
"action": "reply",
"response_code": "200",
"is_success": 1,
"attributes": {
...
},
}

Requirements
------------

* xml.etree.ElementTree
* httplib2

[opensrs]: http://opensrs.com
[xmlapi]: http://opensrs.com/docs/opensrsapixml/index.htm
Release History

Release History

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
OpenSRS-0.1.4.tar.gz (5.8 kB) Copy SHA256 Checksum SHA256 Source May 16, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting