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 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
+ ]
sillydev/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())