Skip to main content

Higher level Python interface to the OpenSRS XML API

Project description

OpenSRS-py
==========

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

Project details


Download files

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

Source Distribution

OpenSRS-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file OpenSRS-0.1.1.tar.gz.

File metadata

  • Download URL: OpenSRS-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for OpenSRS-0.1.1.tar.gz
Algorithm Hash digest
SHA256 43783eb6e1186c1c338ce2b350b16a0adf536edcd58aa237b65e179ac6b615b2
MD5 62f9373e5dfad8e9e94c177d547e1fea
BLAKE2b-256 88c05a730262c438f72a5b57e4df985a919fee5de41bf9d72789d49522a2b4df

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page