jamframe 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.
- jamframe/__init__.py +69 -0
- jamframe/_async_client.py +944 -0
- jamframe/_base.py +458 -0
- jamframe/_brand.py +19 -0
- jamframe/_client.py +916 -0
- jamframe/_version.py +1 -0
- jamframe/errors.py +189 -0
- jamframe/py.typed +0 -0
- jamframe/types.py +1343 -0
- jamframe/webhooks.py +194 -0
- jamframe-0.1.0.dist-info/METADATA +510 -0
- jamframe-0.1.0.dist-info/RECORD +14 -0
- jamframe-0.1.0.dist-info/WHEEL +4 -0
- jamframe-0.1.0.dist-info/licenses/LICENSE +21 -0
jamframe/__init__.py
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Python client for the JamFrame API (brand strings: see ``_brand.py``).
|
|
2
|
+
|
|
3
|
+
>>> from jamframe import Client
|
|
4
|
+
>>> client = Client() # JAMFRAME_API_KEY from the environment
|
|
5
|
+
>>> result = client.render("tpl_id", {"title": "Hello"})
|
|
6
|
+
>>> result["data"]["content"]
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from . import types, webhooks
|
|
10
|
+
from ._async_client import AsyncClient
|
|
11
|
+
from ._base import sized_urls as file_urls
|
|
12
|
+
from ._brand import NAME as PRODUCT_NAME
|
|
13
|
+
from ._client import Client
|
|
14
|
+
from ._version import __version__
|
|
15
|
+
from .errors import (
|
|
16
|
+
APIConnectionError,
|
|
17
|
+
APIError,
|
|
18
|
+
APITimeoutError,
|
|
19
|
+
AuthenticationError,
|
|
20
|
+
BadRequestError,
|
|
21
|
+
ConflictError,
|
|
22
|
+
DesignJobFailedError,
|
|
23
|
+
InternalServerError,
|
|
24
|
+
NotFoundError,
|
|
25
|
+
PaymentRequiredError,
|
|
26
|
+
PermissionDeniedError,
|
|
27
|
+
RateLimitError,
|
|
28
|
+
RenderJobFailedError,
|
|
29
|
+
SDKError,
|
|
30
|
+
UnprocessableEntityError,
|
|
31
|
+
WaitTimeoutError,
|
|
32
|
+
WebhookSignatureError,
|
|
33
|
+
)
|
|
34
|
+
from .webhooks import construct_event, verify_signature
|
|
35
|
+
|
|
36
|
+
# Brand-named aliases. A rename touches only these two lines here.
|
|
37
|
+
JamFrame = Client
|
|
38
|
+
AsyncJamFrame = AsyncClient
|
|
39
|
+
|
|
40
|
+
__all__ = [
|
|
41
|
+
"APIConnectionError",
|
|
42
|
+
"APIError",
|
|
43
|
+
"APITimeoutError",
|
|
44
|
+
"AsyncClient",
|
|
45
|
+
"AsyncJamFrame",
|
|
46
|
+
"AuthenticationError",
|
|
47
|
+
"BadRequestError",
|
|
48
|
+
"Client",
|
|
49
|
+
"ConflictError",
|
|
50
|
+
"DesignJobFailedError",
|
|
51
|
+
"InternalServerError",
|
|
52
|
+
"NotFoundError",
|
|
53
|
+
"PRODUCT_NAME",
|
|
54
|
+
"PaymentRequiredError",
|
|
55
|
+
"PermissionDeniedError",
|
|
56
|
+
"JamFrame",
|
|
57
|
+
"RateLimitError",
|
|
58
|
+
"RenderJobFailedError",
|
|
59
|
+
"SDKError",
|
|
60
|
+
"UnprocessableEntityError",
|
|
61
|
+
"WaitTimeoutError",
|
|
62
|
+
"WebhookSignatureError",
|
|
63
|
+
"__version__",
|
|
64
|
+
"construct_event",
|
|
65
|
+
"file_urls",
|
|
66
|
+
"types",
|
|
67
|
+
"verify_signature",
|
|
68
|
+
"webhooks",
|
|
69
|
+
]
|