epptools 1.0.0__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.
epptools/__init__.py ADDED
@@ -0,0 +1,72 @@
1
+ """EppTools — EPP SDK for Python.
2
+
3
+ A small, dependency-free client for the Registry EPP service — standard RFC 5730-5734
4
+ EPP over TLS on port 700. Speaks the wire protocol directly (no framework, no server code).
5
+
6
+ from epptools import Client, Config
7
+
8
+ client = Client(Config(host="epp.registry.example", clid="your-clid", password="your-secret"))
9
+ client.connect()
10
+ client.login()
11
+ print(client.domain.check(["example.com.ua"]).availability())
12
+ client.logout()
13
+ client.disconnect()
14
+ """
15
+
16
+ from . import namespaces as Namespaces
17
+ from .client import Client
18
+ from .commands import Contact, Domain, Host, Poll
19
+ from .config import Config
20
+ from .exceptions import (
21
+ AuthenticationException,
22
+ AuthorizationError,
23
+ CommandException,
24
+ ConfigException,
25
+ ConnectionException,
26
+ EppException,
27
+ InsufficientFundsError,
28
+ ObjectDoesNotExistError,
29
+ ObjectExistsError,
30
+ ObjectStatusError,
31
+ PolicyError,
32
+ SessionError,
33
+ ValidationException,
34
+ )
35
+ from .frame import Frame
36
+ from .response import Response
37
+ from .result_code import ResultCode
38
+ from .transport import Connection, Transport
39
+
40
+ from ._version import __version__ # noqa: F401 (re-exported; declared in _version.py)
41
+
42
+ __all__ = [
43
+ "Client",
44
+ "Config",
45
+ "Frame",
46
+ "Response",
47
+ "ResultCode",
48
+ "Namespaces",
49
+ "Transport",
50
+ "Connection",
51
+ "Domain",
52
+ "Contact",
53
+ "Host",
54
+ "Poll",
55
+ "EppException",
56
+ "ConnectionException",
57
+ "ConfigException",
58
+ "CommandException",
59
+ "AuthenticationException",
60
+ "AuthorizationError",
61
+ "InsufficientFundsError",
62
+ "ObjectDoesNotExistError",
63
+ "ObjectExistsError",
64
+ "ObjectStatusError",
65
+ "PolicyError",
66
+ "SessionError",
67
+ "ValidationException",
68
+ "__version__",
69
+ ]
70
+
71
+
72
+
epptools/_version.py ADDED
@@ -0,0 +1,7 @@
1
+ """Single source of the package version.
2
+
3
+ Kept in its own module so ``client`` can report it (RFC 8807 ``<loginSec:app>``) without importing
4
+ the package root, which imports ``client`` in turn.
5
+ """
6
+
7
+ __version__ = "1.0.0"