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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rrpproxy-0.1.2-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rrpproxy-0.1.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for rrpproxy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 250669b770bab4abf8ba507754b710247777f616ba5a4cce579f4c3363d6d307
MD5 b3fe92a1b168a8038f390c66cf2ee674
BLAKE2b-256 c02c3efe0032a552a1794615aa0cd964116e50c4b6823c734741a108e687522b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rrpproxy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for rrpproxy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a56655a780307cab4bb2a857bdd6770d09db39aaf7f5ffc067dd257c1de7957
MD5 7043d967cbc0a214ab8e4d8c632e94dc
BLAKE2b-256 6e333199fc0f69fc8ab7854ecf701ccbecb7a29da1218f4441248e46d959ddee

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