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 +72 -0
- epptools/_version.py +7 -0
- epptools/builders.py +639 -0
- epptools/client.py +435 -0
- epptools/commands.py +907 -0
- epptools/config.py +80 -0
- epptools/exceptions.py +176 -0
- epptools/frame.py +148 -0
- epptools/namespaces.py +95 -0
- epptools/py.typed +1 -0
- epptools/response.py +894 -0
- epptools/result_code.py +53 -0
- epptools/transport.py +151 -0
- epptools-1.0.0.dist-info/METADATA +489 -0
- epptools-1.0.0.dist-info/RECORD +18 -0
- epptools-1.0.0.dist-info/WHEEL +5 -0
- epptools-1.0.0.dist-info/licenses/LICENSE +21 -0
- epptools-1.0.0.dist-info/top_level.txt +1 -0
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
|
+
|