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

Uploaded Source

File details

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

File metadata

  • Download URL: rrpproxy-0.1.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9

File hashes

Hashes for rrpproxy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ceeed4c5bd2109608e722a1fcd5f3f85c5ae18644f83affab0fc0ade9ac89033
MD5 e315e16f6f4d90442daea2a0d4359993
BLAKE2b-256 e75b30434ce7b9968695ea747e0fd452f970ac6fe7cd75914f3eebc019c2e1d2

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