namecheap-python 0.1.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.
- namecheap/__init__.py +49 -0
- namecheap/client.py +887 -0
- namecheap/exceptions.py +39 -0
- namecheap/utils.py +323 -0
- namecheap_python-0.1.0.dist-info/LICENSE +21 -0
- namecheap_python-0.1.0.dist-info/METADATA +346 -0
- namecheap_python-0.1.0.dist-info/RECORD +9 -0
- namecheap_python-0.1.0.dist-info/WHEEL +4 -0
- namecheap_python-0.1.0.dist-info/entry_points.txt +5 -0
namecheap/__init__.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Namecheap Python API client
|
|
3
|
+
|
|
4
|
+
A Python wrapper for interacting with the Namecheap API.
|
|
5
|
+
|
|
6
|
+
Basic usage:
|
|
7
|
+
from namecheap import NamecheapClient
|
|
8
|
+
|
|
9
|
+
client = NamecheapClient(
|
|
10
|
+
api_user="your_username",
|
|
11
|
+
api_key="your_api_key",
|
|
12
|
+
username="your_username",
|
|
13
|
+
client_ip="your_whitelisted_ip",
|
|
14
|
+
sandbox=True
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
# Check domain availability
|
|
18
|
+
result = client.domains_check(["example.com"])
|
|
19
|
+
|
|
20
|
+
With utility functions:
|
|
21
|
+
from namecheap.utils import create_client_from_env, setup_interactive
|
|
22
|
+
|
|
23
|
+
# Run interactive setup
|
|
24
|
+
setup_interactive()
|
|
25
|
+
|
|
26
|
+
# Create client from environment variables
|
|
27
|
+
client = create_client_from_env()
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
from .client import NamecheapClient
|
|
31
|
+
from .exceptions import NamecheapException
|
|
32
|
+
|
|
33
|
+
# Import utility functions for easy access
|
|
34
|
+
from .utils import (
|
|
35
|
+
setup_interactive,
|
|
36
|
+
create_client_from_env,
|
|
37
|
+
test_api_connection,
|
|
38
|
+
get_public_ip
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
__version__ = "0.1.0"
|
|
42
|
+
__all__ = [
|
|
43
|
+
"NamecheapClient",
|
|
44
|
+
"NamecheapException",
|
|
45
|
+
"setup_interactive",
|
|
46
|
+
"create_client_from_env",
|
|
47
|
+
"test_api_connection",
|
|
48
|
+
"get_public_ip"
|
|
49
|
+
]
|