onlydns-sdk 1.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
onlydns/__init__.py ADDED
@@ -0,0 +1,81 @@
1
+ """OnlyDNS Python SDK.
2
+
3
+ Official Python SDK for managing DNS zones and records with onlydns.com.
4
+ Designed for high developer utility and seamless AI agent tool-calling integration.
5
+ """
6
+
7
+ from .client import OnlyDNSClient
8
+ from .config import (
9
+ clear_config,
10
+ get_api_key,
11
+ get_config_dir,
12
+ get_config_file_path,
13
+ load_config,
14
+ save_config,
15
+ set_api_key,
16
+ )
17
+ from .exceptions import (
18
+ OnlyDNSError,
19
+ AuthenticationError,
20
+ NotFoundError,
21
+ APIError,
22
+ ValidationError,
23
+ )
24
+ from .models import (
25
+ DNSRecord,
26
+ RecordType,
27
+ TsigKey,
28
+ TsigAlgorithm,
29
+ TsigKeyCreateResponse,
30
+ DomainTsigPermissions,
31
+ DNSSECKeyAlgorithm,
32
+ DNSSECKeyDigestType,
33
+ DNSSECDsKey,
34
+ DNSSECStatus,
35
+ DNSDnssecStatusResponse,
36
+ ErrorResponse,
37
+ AccountPostalAddress,
38
+ BillingPackageFeatures,
39
+ BillingPackage,
40
+ AccountInfo,
41
+ AccountOidcNonCompliantUser,
42
+ AccountOidcConfig,
43
+ AccountOidcTestResponse,
44
+ )
45
+
46
+ __all__ = [
47
+ "OnlyDNSClient",
48
+ "clear_config",
49
+ "get_api_key",
50
+ "get_config_dir",
51
+ "get_config_file_path",
52
+ "load_config",
53
+ "save_config",
54
+ "set_api_key",
55
+ "OnlyDNSError",
56
+ "AuthenticationError",
57
+ "NotFoundError",
58
+ "APIError",
59
+ "ValidationError",
60
+ "DNSRecord",
61
+ "RecordType",
62
+ "TsigKey",
63
+ "TsigAlgorithm",
64
+ "TsigKeyCreateResponse",
65
+ "DomainTsigPermissions",
66
+ "DNSSECKeyAlgorithm",
67
+ "DNSSECKeyDigestType",
68
+ "DNSSECDsKey",
69
+ "DNSSECStatus",
70
+ "DNSDnssecStatusResponse",
71
+ "ErrorResponse",
72
+ "AccountPostalAddress",
73
+ "BillingPackageFeatures",
74
+ "BillingPackage",
75
+ "AccountInfo",
76
+ "AccountOidcNonCompliantUser",
77
+ "AccountOidcConfig",
78
+ "AccountOidcTestResponse",
79
+ ]
80
+
81
+ __version__ = "1.0.3"
onlydns/__main__.py ADDED
@@ -0,0 +1,7 @@
1
+ """Module entry point for `python -m onlydns`."""
2
+
3
+ import sys
4
+ from .cli import main
5
+
6
+ if __name__ == "__main__":
7
+ sys.exit(main())