lorebase-client 0.2.3__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.
@@ -0,0 +1,86 @@
1
+ """Lorebase client: typed sync and async HTTP clients for the Keeper API.
2
+
3
+ from lorebase_client import LorebaseClient
4
+
5
+ client = LorebaseClient() # LOREBASE_URL, LOREBASE_API_KEY or LOREBASE_TOKEN
6
+ print(client.whoami())
7
+
8
+ The package depends on `httpx` and `pydantic` only.
9
+ """
10
+
11
+ from lorebase_client.aclient import AsyncLorebaseClient
12
+ from lorebase_client.client import LorebaseClient
13
+ from lorebase_client.config import (
14
+ ENV_API_KEY,
15
+ ENV_API_PREFIX,
16
+ ENV_TIMEOUT,
17
+ ENV_TOKEN,
18
+ ENV_URL,
19
+ ClientConfig,
20
+ RetryPolicy,
21
+ resolve_config,
22
+ )
23
+ from lorebase_client.core import Call, ETagCache, new_idempotency_key
24
+ from lorebase_client.errors import (
25
+ AlreadyExistsError,
26
+ ApiError,
27
+ AuthenticationError,
28
+ BadRequestError,
29
+ BranchBusyError,
30
+ ConflictError,
31
+ IdempotencyConflictError,
32
+ LorebaseConfigError,
33
+ LorebaseConnectionError,
34
+ LorebaseError,
35
+ NotFoundError,
36
+ PayloadTooLargeError,
37
+ PermissionDeniedError,
38
+ ProtectedBranchError,
39
+ RateLimitedError,
40
+ ReviewRequiredError,
41
+ ServerError,
42
+ StaleHeadError,
43
+ UnavailableError,
44
+ ValidationFailedError,
45
+ error_from_response,
46
+ )
47
+
48
+ __version__ = "0.2.3"
49
+
50
+ __all__ = [
51
+ "ENV_API_KEY",
52
+ "ENV_API_PREFIX",
53
+ "ENV_TIMEOUT",
54
+ "ENV_TOKEN",
55
+ "ENV_URL",
56
+ "AlreadyExistsError",
57
+ "ApiError",
58
+ "AsyncLorebaseClient",
59
+ "AuthenticationError",
60
+ "BadRequestError",
61
+ "BranchBusyError",
62
+ "Call",
63
+ "ClientConfig",
64
+ "ConflictError",
65
+ "ETagCache",
66
+ "IdempotencyConflictError",
67
+ "LorebaseClient",
68
+ "LorebaseConfigError",
69
+ "LorebaseConnectionError",
70
+ "LorebaseError",
71
+ "NotFoundError",
72
+ "PayloadTooLargeError",
73
+ "PermissionDeniedError",
74
+ "ProtectedBranchError",
75
+ "RateLimitedError",
76
+ "RetryPolicy",
77
+ "ReviewRequiredError",
78
+ "ServerError",
79
+ "StaleHeadError",
80
+ "UnavailableError",
81
+ "ValidationFailedError",
82
+ "__version__",
83
+ "error_from_response",
84
+ "new_idempotency_key",
85
+ "resolve_config",
86
+ ]