sillydev 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.
- sillydev/__init__.py +45 -0
- sillydev/__main__.py +5 -0
- sillydev/_async_resources.py +849 -0
- sillydev/_client.py +317 -0
- sillydev/_envelope.py +79 -0
- sillydev/_errors.py +160 -0
- sillydev/_types.py +24 -0
- sillydev/_version.py +1 -0
- sillydev/cli.py +228 -0
- sillydev/mcp_server.py +128 -0
- sillydev/py.typed +0 -0
- sillydev/resources.py +856 -0
- sillydev-0.1.0.dist-info/METADATA +248 -0
- sillydev-0.1.0.dist-info/RECORD +17 -0
- sillydev-0.1.0.dist-info/WHEEL +4 -0
- sillydev-0.1.0.dist-info/entry_points.txt +3 -0
- sillydev-0.1.0.dist-info/licenses/LICENSE +21 -0
sillydev/__init__.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Python client for the Silly Development panel API.
|
|
2
|
+
|
|
3
|
+
>>> from sillydev import SillyDev
|
|
4
|
+
>>> client = SillyDev() # reads SILLYDEV_API_KEY
|
|
5
|
+
>>> client.panel.servers.restart("1a7ce997")
|
|
6
|
+
|
|
7
|
+
Docs: https://sillydev.co.uk/docs/panel
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from ._client import DEFAULT_BASE_URL, AsyncSillyDev, SillyDev
|
|
11
|
+
from ._envelope import Page, unwrap
|
|
12
|
+
from ._errors import (
|
|
13
|
+
APIConnectionError,
|
|
14
|
+
APIStatusError,
|
|
15
|
+
AuthenticationError,
|
|
16
|
+
BadRequestError,
|
|
17
|
+
ConflictError,
|
|
18
|
+
NotFoundError,
|
|
19
|
+
PermissionDeniedError,
|
|
20
|
+
RateLimitError,
|
|
21
|
+
ServerError,
|
|
22
|
+
SillyDevError,
|
|
23
|
+
ValidationError,
|
|
24
|
+
)
|
|
25
|
+
from ._version import __version__
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"SillyDev",
|
|
29
|
+
"AsyncSillyDev",
|
|
30
|
+
"DEFAULT_BASE_URL",
|
|
31
|
+
"Page",
|
|
32
|
+
"unwrap",
|
|
33
|
+
"SillyDevError",
|
|
34
|
+
"APIConnectionError",
|
|
35
|
+
"APIStatusError",
|
|
36
|
+
"BadRequestError",
|
|
37
|
+
"AuthenticationError",
|
|
38
|
+
"PermissionDeniedError",
|
|
39
|
+
"NotFoundError",
|
|
40
|
+
"ConflictError",
|
|
41
|
+
"ValidationError",
|
|
42
|
+
"RateLimitError",
|
|
43
|
+
"ServerError",
|
|
44
|
+
"__version__",
|
|
45
|
+
]
|