nc_dnsapi
A simple API wrapper for the netcup DNS API
from nc_dnsapi import Client, DNSRecord
customer = 123456
api_key = "your-personal-api-key"
api_password = "your-private-api-password"
with Client(customer, api_key, api_password) as api:
# fetch records
records = api.dns_records("example.com")
for record in records:
print(record)
# fetch zone details
zone = api.dns_zone("example.com")
print(zone)
# update single record
api.update_dns_record("example.com", DNSRecord("my-hostname", "A", "127.0.0.2", id=108125))
# update list of records
api.update_dns_record("example.com", [ DNSRecord("my-hostname", "A", "127.0.0.2", id=108125),
DNSRecord("my-hostname2", "A", "127.0.0.2", id=108126)])
# delete record
api.delete_dns_record("example.com", DNSRecord("my-hostname", "A", "127.0.0.2", id=108125))
# add record
api.add_dns_record("example.com", DNSRecord("another-host", "AAAA", "::1"))
# update zone
zone = api.dns_zone("example.com")
zone.refresh = 3600
api.update_dns_zone("example.com", zone)
Metadata
Release files for nc-dnsapi 0.1.5
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 | |
|---|---|---|---|---|
| nc_dnsapi-0.1.5.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nc_dnsapi-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / nc_dnsapi-0.1.5.tar.gz
| Download URL | nc_dnsapi-0.1.5.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5fbf3af77b46406d20cea2f84bcf91872424ba97e2bcf5f6d81e8696c4ef5c0
|
|
BLAKE2b-256 checksum How to use checksums |
c93b36691546246b0b4ef5cf53aadbc5be5d51a9321d063205be3ee4c2ea28de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.2 pkginfo/1.4.2 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Release files / nc_dnsapi-0.1.5-py3-none-any.whl
| Download URL | nc_dnsapi-0.1.5-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34e52cd6e7a3f634bdbc0159418ee9da2f57676082027834b1a799196540083e
|
|
BLAKE2b-256 checksum How to use checksums |
22f9938affd8f7006af68d51c067f69b42fef0abb0a4aa3066f2f06934a2e20b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.2 pkginfo/1.4.2 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
|
Security for nc-dnsapi 0.1.5
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.