pynamedotcom
A python library to interact with the name.com api
Installation
$ pip install pynamedotcom
API Usage
>>> # read authentication details
...
>>> import json
>>> with open("tests/auth.json") as f:
... auth = json.load(f)
...
>>> # initialise api
...
>>> import pynamedotcom
>>> host = "api.dev.name.com"
>>> # get domains
...
>>> with pynamedotcom.API(host=host, **auth) as api:
... for domain_name in api.domains:
... print(domain_name)
...
wolcomm.net
maddison.family
>>>
>>> # fetch domain object
...
>>> with pynamedotcom.API(host=host, **auth) as api:
... domain = api.domain(name="maddison.family")
...
>>> domain
Domain(maddison.family)
>>>
>>> # get/set domain properties
...
>>> domain.name
u'maddison.family'
>>> domain.nameservers
[u'ns1.example.com', u'ns2.example.com']
>>> domain.nameservers = ['foo.example.org', 'bar.example.org']
>>> domain.nameservers
[u'foo.example.org', u'bar.example.org']
CLI Usage
See namedotcom --help
Metadata
Release files for pynamedotcom 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pynamedotcom-0.1.1.tar.gz | 8.5 kB | Without provenance | Details for pynamedotcom-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pynamedotcom-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pynamedotcom-0.1.1-py2.py3-none-any.whl |
Total release size: 21.0 kB
Release files / pynamedotcom-0.1.1.tar.gz
| Download URL | pynamedotcom-0.1.1.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0ade6b0a93c737f926519a2df4bd1ac1ca0b3a3acce4e0fbf394b7ff340bcd2
|
|
BLAKE2b-256 checksum How to use checksums |
469498e64d8d386d8729c527ae61c87a14729f3cddd381dead3e7bc0fce555b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pynamedotcom-0.1.1-py2.py3-none-any.whl
| Download URL | pynamedotcom-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d78bed45b793cbed24f32284e3cfa8cd5704c6bb22ed86c20ea3b7c837556cb6
|
|
BLAKE2b-256 checksum How to use checksums |
0fefb9299a097603bfd9be7bdda570f1889875e4d5353d021630e3a2781bd697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pynamedotcom 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.