Skip to main content

A python connector for RRP Proxy

Project description

rrpproxy

A python connector for RRP Proxy

connect

from rrpproxy import RRPProxy
proxy = RRPProxy('username', 'password')

RRPProxy advises to use long standing connections. If you want to re-use the same Session:

import requests
from rrpproxy import RRPProxy

session = requests.Session()
proxy = RRPProxy('username', 'password', session=session)

connect to sandbox

from rrpproxy import RRPProxy
proxy = RRPProxy('username', 'password', use_test_environment=True)

usage

proxy.check_domain('hypernode.com')
{'code': '210',
 'description': 'Domain name available',
 'runtime': '0.267',
 'queuetime': '0'
} 
proxy.add_domain(domain='newdomain.tld', period=2, ownercontact0='Owner', techcontact0='Tech-user', billingcontact0='Billing-User', admincontact0='Admin', auth='2foo"BAR%', nameserver0='nameserver', nameserver1='nameserver1', x-fee-amount=2000)
{'code': '200',
 'description': 'Command completed succesfully',
 'property': {
      'x-fee-amount': ['2000'],
      'x-fee-application': ['0'],
      'x-fee-currency': ['EUR'],
      'created date': ['2015-06-24 11:53:27'],
      'registration expiration date': ['2017-06-24 11:53:27'],
      'renewal date': ['2017-07-29 11:53:27'],
      'roid': ['13530236711060_DOMAIN-KEYSYS'],
      'status': ['ACTIVE'],
 },
'runtime': '0.1',
'queuetime: '0',
}

Running tests

The tests can be run by using $ tox

More info

For more information related to the RRP Proxy API, visit: https://wiki.rrpproxy.net/api/api-commands/api-command-reference

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

rrpproxy-0.1.6.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

rrpproxy-0.1.6-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file rrpproxy-0.1.6.tar.gz.

File metadata

  • Download URL: rrpproxy-0.1.6.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for rrpproxy-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8f0ce5fa06ebc4083b0506a0e70553fe403d610a24d3c3f53698785d497ceb11
MD5 032c10e4860eecc7ac4157befc2896c0
BLAKE2b-256 afdbd6180258e986043739e83371d5166648303d40dd5334215944fd3b0e7575

See more details on using hashes here.

Provenance

File details

Details for the file rrpproxy-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: rrpproxy-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for rrpproxy-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d991170370dcc573a38fc955c32e56fb568b82c1d48f66f4051491b37bee9d91
MD5 5c363c4a67ab6bb2e83c0fded68ea67e
BLAKE2b-256 5a31730621fc03a8558b95fc161db2b924e8cfa5684b365ef5ab0e8431dffc41

See more details on using hashes here.

Provenance

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