querri 1.0.2__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.
Files changed (64) hide show
  1. querri/__init__.py +51 -0
  2. querri/_auth.py +818 -0
  3. querri/_base_client.py +379 -0
  4. querri/_client.py +395 -0
  5. querri/_config.py +140 -0
  6. querri/_convenience.py +538 -0
  7. querri/_exceptions.py +180 -0
  8. querri/_pagination.py +278 -0
  9. querri/_streaming.py +663 -0
  10. querri/_user_client.py +193 -0
  11. querri/_version.py +1 -0
  12. querri/cli/__init__.py +21 -0
  13. querri/cli/_app.py +246 -0
  14. querri/cli/_context.py +216 -0
  15. querri/cli/_image.py +234 -0
  16. querri/cli/_output.py +293 -0
  17. querri/cli/audit.py +68 -0
  18. querri/cli/auth.py +556 -0
  19. querri/cli/chat.py +1255 -0
  20. querri/cli/chats.py +358 -0
  21. querri/cli/dashboards.py +294 -0
  22. querri/cli/embed.py +220 -0
  23. querri/cli/files.py +214 -0
  24. querri/cli/keys.py +304 -0
  25. querri/cli/policies.py +424 -0
  26. querri/cli/projects.py +916 -0
  27. querri/cli/sharing.py +403 -0
  28. querri/cli/sources.py +532 -0
  29. querri/cli/steps.py +123 -0
  30. querri/cli/usage.py +99 -0
  31. querri/cli/users.py +223 -0
  32. querri/cli/views.py +449 -0
  33. querri/cli/whoami.py +78 -0
  34. querri/py.typed +0 -0
  35. querri/resources/__init__.py +1 -0
  36. querri/resources/audit.py +119 -0
  37. querri/resources/dashboards.py +295 -0
  38. querri/resources/embed.py +268 -0
  39. querri/resources/files.py +145 -0
  40. querri/resources/keys.py +191 -0
  41. querri/resources/policies.py +492 -0
  42. querri/resources/projects.py +808 -0
  43. querri/resources/sharing.py +330 -0
  44. querri/resources/sources.py +511 -0
  45. querri/resources/usage.py +106 -0
  46. querri/resources/users.py +303 -0
  47. querri/resources/views.py +347 -0
  48. querri/types/__init__.py +104 -0
  49. querri/types/audit.py +21 -0
  50. querri/types/chat.py +51 -0
  51. querri/types/dashboard.py +51 -0
  52. querri/types/data.py +61 -0
  53. querri/types/embed.py +38 -0
  54. querri/types/file.py +18 -0
  55. querri/types/key.py +36 -0
  56. querri/types/policy.py +105 -0
  57. querri/types/project.py +158 -0
  58. querri/types/sharing.py +19 -0
  59. querri/types/usage.py +39 -0
  60. querri/types/user.py +33 -0
  61. querri-1.0.2.dist-info/METADATA +310 -0
  62. querri-1.0.2.dist-info/RECORD +64 -0
  63. querri-1.0.2.dist-info/WHEEL +4 -0
  64. querri-1.0.2.dist-info/entry_points.txt +2 -0
querri/__init__.py ADDED
@@ -0,0 +1,51 @@
1
+ """Querri Python SDK — API client for the Querri data analysis platform."""
2
+
3
+ from ._client import AsyncQuerri, Querri
4
+ from ._exceptions import (
5
+ APIError,
6
+ AuthenticationError,
7
+ ConfigError,
8
+ ConflictError,
9
+ NotFoundError,
10
+ PermissionError,
11
+ QuerriError,
12
+ RateLimitError,
13
+ ServerError,
14
+ StreamCancelledError,
15
+ StreamError,
16
+ StreamTimeoutError,
17
+ ValidationError,
18
+ )
19
+ from ._pagination import AsyncCursorPage, SyncCursorPage
20
+ from ._streaming import AsyncChatStream, ChatStream, ChatStreamEvent
21
+ from ._user_client import AsyncUserQuerri, UserQuerri
22
+ from ._version import __version__
23
+
24
+ __all__ = [
25
+ "Querri",
26
+ "AsyncQuerri",
27
+ "UserQuerri",
28
+ "AsyncUserQuerri",
29
+ "__version__",
30
+ # Exceptions
31
+ "QuerriError",
32
+ "APIError",
33
+ "AuthenticationError",
34
+ "PermissionError",
35
+ "NotFoundError",
36
+ "ValidationError",
37
+ "ConflictError",
38
+ "RateLimitError",
39
+ "ServerError",
40
+ "StreamError",
41
+ "StreamTimeoutError",
42
+ "StreamCancelledError",
43
+ "ConfigError",
44
+ # Streaming
45
+ "ChatStream",
46
+ "AsyncChatStream",
47
+ "ChatStreamEvent",
48
+ # Pagination
49
+ "SyncCursorPage",
50
+ "AsyncCursorPage",
51
+ ]