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.0.tar.gz (10.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: rrpproxy-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

File hashes

Hashes for rrpproxy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3601f9321f5214c1ff3608609790f6f9b48962cce678874b311b7f46c1c5045
MD5 f166f7292c9dbfe00a9ebecc25233815
BLAKE2b-256 b54f550f73b87433b2a8a60aba90817eed7634635d7c0c4a67d6246e39444f7f

See more details on using hashes here.

Supported by

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