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
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.2.0.tar.gz
(15.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rrpproxy-0.2.0-py3-none-any.whl
(28.4 kB
view details)
File details
Details for the file rrpproxy-0.2.0.tar.gz.
File metadata
- Download URL: rrpproxy-0.2.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae4a20029ba4d8b58d6b929e34568adf26705b1de31b6fa8ff9dbb189ccb2f9b
|
|
| MD5 |
cdc9d7d5460e3c068c8e0924ad270c4b
|
|
| BLAKE2b-256 |
62b579d948ec5638b4cbb6b78e4edd77a4af138bf990c80b2db3fe85f361af0d
|
File details
Details for the file rrpproxy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: rrpproxy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba290709f73098f9c8b1de49e8305c7f405293f04544380e43c8dc8490c81e1a
|
|
| MD5 |
7091ef1dd54a702e9dafbe77269fe891
|
|
| BLAKE2b-256 |
3203e66b15688ae7437347887a3c18b9a19d2a8ba8da5f6e2414c146426d68d3
|