rrpproxy


Namerrpproxy JSON
Version 0.1.6 PyPI version JSON
download
home_pagehttps://github.com/ByteInternet/rrpproxy
SummaryA python connector for RRP Proxy
upload_time2023-08-11 13:36:35
maintainer
docs_urlNone
authorTech
requires_python>=3.4
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # 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')
```
> ```lang-json
> {'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)
```
> ```lang-json
> {'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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ByteInternet/rrpproxy",
    "name": "rrpproxy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "",
    "keywords": "",
    "author": "Tech",
    "author_email": "tech@byte.nl",
    "download_url": "https://files.pythonhosted.org/packages/af/db/d6180258e986043739e83371d5166648303d40dd5334215944fd3b0e7575/rrpproxy-0.1.6.tar.gz",
    "platform": null,
    "description": "# rrpproxy\n\nA python connector for RRP Proxy\n\n## connect\n```\nfrom rrpproxy import RRPProxy\nproxy = RRPProxy('username', 'password')\n```\n \nRRPProxy advises to use long standing connections. If you want to re-use the same Session:\n\n```\nimport requests\nfrom rrpproxy import RRPProxy\n\nsession = requests.Session()\nproxy = RRPProxy('username', 'password', session=session)\n```\n\n## connect to sandbox\n```\nfrom rrpproxy import RRPProxy\nproxy = RRPProxy('username', 'password', use_test_environment=True)\n```\n## usage\n```\nproxy.check_domain('hypernode.com')\n```\n> ```lang-json\n> {'code': '210',\n>  'description': 'Domain name available',\n>  'runtime': '0.267',\n>  'queuetime': '0'\n> } \n\n```\nproxy.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)\n```\n> ```lang-json\n> {'code': '200',\n>  'description': 'Command completed succesfully',\n>  'property': {\n>       'x-fee-amount': ['2000'],\n>       'x-fee-application': ['0'],\n>       'x-fee-currency': ['EUR'],\n>       'created date': ['2015-06-24 11:53:27'],\n>       'registration expiration date': ['2017-06-24 11:53:27'],\n>       'renewal date': ['2017-07-29 11:53:27'],\n>       'roid': ['13530236711060_DOMAIN-KEYSYS'],\n>       'status': ['ACTIVE'],\n>  },\n> 'runtime': '0.1',\n> 'queuetime: '0',\n> }\n> ```\n## Running tests\nThe tests can be run by using `$ tox`\n## More info\nFor more information related to the RRP Proxy API, visit: https://wiki.rrpproxy.net/api/api-commands/api-command-reference\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A python connector for RRP Proxy",
    "version": "0.1.6",
    "project_urls": {
        "Download": "https://github.com/ByteInternet/rrpproxy/archive/20201012.1.tar.gz",
        "Homepage": "https://github.com/ByteInternet/rrpproxy"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5a31730621fc03a8558b95fc161db2b924e8cfa5684b365ef5ab0e8431dffc41",
                "md5": "5c363c4a67ab6bb2e83c0fded68ea67e",
                "sha256": "d991170370dcc573a38fc955c32e56fb568b82c1d48f66f4051491b37bee9d91"
            },
            "downloads": -1,
            "filename": "rrpproxy-0.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5c363c4a67ab6bb2e83c0fded68ea67e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4",
            "size": 28128,
            "upload_time": "2023-08-11T13:36:34",
            "upload_time_iso_8601": "2023-08-11T13:36:34.076847Z",
            "url": "https://files.pythonhosted.org/packages/5a/31/730621fc03a8558b95fc161db2b924e8cfa5684b365ef5ab0e8431dffc41/rrpproxy-0.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afdbd6180258e986043739e83371d5166648303d40dd5334215944fd3b0e7575",
                "md5": "032c10e4860eecc7ac4157befc2896c0",
                "sha256": "8f0ce5fa06ebc4083b0506a0e70553fe403d610a24d3c3f53698785d497ceb11"
            },
            "downloads": -1,
            "filename": "rrpproxy-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "032c10e4860eecc7ac4157befc2896c0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4",
            "size": 13367,
            "upload_time": "2023-08-11T13:36:35",
            "upload_time_iso_8601": "2023-08-11T13:36:35.352333Z",
            "url": "https://files.pythonhosted.org/packages/af/db/d6180258e986043739e83371d5166648303d40dd5334215944fd3b0e7575/rrpproxy-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-11 13:36:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ByteInternet",
    "github_project": "rrpproxy",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "rrpproxy"
}
        
Elapsed time: 1.59432s