codeset 0.1.0a1__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 (56) hide show
  1. codeset/__init__.py +90 -0
  2. codeset/_base_client.py +1985 -0
  3. codeset/_client.py +430 -0
  4. codeset/_compat.py +219 -0
  5. codeset/_constants.py +14 -0
  6. codeset/_exceptions.py +108 -0
  7. codeset/_files.py +123 -0
  8. codeset/_models.py +805 -0
  9. codeset/_qs.py +150 -0
  10. codeset/_resource.py +43 -0
  11. codeset/_response.py +830 -0
  12. codeset/_streaming.py +333 -0
  13. codeset/_types.py +219 -0
  14. codeset/_utils/__init__.py +57 -0
  15. codeset/_utils/_logs.py +25 -0
  16. codeset/_utils/_proxy.py +65 -0
  17. codeset/_utils/_reflection.py +42 -0
  18. codeset/_utils/_resources_proxy.py +24 -0
  19. codeset/_utils/_streams.py +12 -0
  20. codeset/_utils/_sync.py +86 -0
  21. codeset/_utils/_transform.py +447 -0
  22. codeset/_utils/_typing.py +151 -0
  23. codeset/_utils/_utils.py +422 -0
  24. codeset/_version.py +4 -0
  25. codeset/lib/.keep +4 -0
  26. codeset/py.typed +0 -0
  27. codeset/resources/__init__.py +47 -0
  28. codeset/resources/health.py +135 -0
  29. codeset/resources/samples.py +233 -0
  30. codeset/resources/sessions/__init__.py +33 -0
  31. codeset/resources/sessions/sessions.py +618 -0
  32. codeset/resources/sessions/verify.py +248 -0
  33. codeset/types/__init__.py +19 -0
  34. codeset/types/container_info.py +30 -0
  35. codeset/types/error_info.py +13 -0
  36. codeset/types/health_check_response.py +19 -0
  37. codeset/types/sample_download_params.py +14 -0
  38. codeset/types/sample_list_response.py +41 -0
  39. codeset/types/session.py +37 -0
  40. codeset/types/session_apply_diff_params.py +12 -0
  41. codeset/types/session_apply_diff_response.py +13 -0
  42. codeset/types/session_close_response.py +10 -0
  43. codeset/types/session_create_params.py +15 -0
  44. codeset/types/session_create_response.py +19 -0
  45. codeset/types/session_execute_command_params.py +15 -0
  46. codeset/types/session_execute_command_response.py +19 -0
  47. codeset/types/session_list_response.py +18 -0
  48. codeset/types/session_status.py +7 -0
  49. codeset/types/sessions/__init__.py +7 -0
  50. codeset/types/sessions/job_status.py +7 -0
  51. codeset/types/sessions/verify_start_response.py +19 -0
  52. codeset/types/sessions/verify_status_response.py +66 -0
  53. codeset-0.1.0a1.dist-info/METADATA +397 -0
  54. codeset-0.1.0a1.dist-info/RECORD +56 -0
  55. codeset-0.1.0a1.dist-info/WHEEL +4 -0
  56. codeset-0.1.0a1.dist-info/licenses/LICENSE +201 -0
codeset/__init__.py ADDED
@@ -0,0 +1,90 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import typing as _t
4
+
5
+ from . import types
6
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
7
+ from ._utils import file_from_path
8
+ from ._client import Client, Stream, Codeset, Timeout, Transport, AsyncClient, AsyncStream, AsyncCodeset, RequestOptions
9
+ from ._models import BaseModel
10
+ from ._version import __title__, __version__
11
+ from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
12
+ from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
13
+ from ._exceptions import (
14
+ APIError,
15
+ CodesetError,
16
+ ConflictError,
17
+ NotFoundError,
18
+ APIStatusError,
19
+ RateLimitError,
20
+ APITimeoutError,
21
+ BadRequestError,
22
+ APIConnectionError,
23
+ AuthenticationError,
24
+ InternalServerError,
25
+ PermissionDeniedError,
26
+ UnprocessableEntityError,
27
+ APIResponseValidationError,
28
+ )
29
+ from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
30
+ from ._utils._logs import setup_logging as _setup_logging
31
+
32
+ __all__ = [
33
+ "types",
34
+ "__version__",
35
+ "__title__",
36
+ "NoneType",
37
+ "Transport",
38
+ "ProxiesTypes",
39
+ "NotGiven",
40
+ "NOT_GIVEN",
41
+ "Omit",
42
+ "CodesetError",
43
+ "APIError",
44
+ "APIStatusError",
45
+ "APITimeoutError",
46
+ "APIConnectionError",
47
+ "APIResponseValidationError",
48
+ "BadRequestError",
49
+ "AuthenticationError",
50
+ "PermissionDeniedError",
51
+ "NotFoundError",
52
+ "ConflictError",
53
+ "UnprocessableEntityError",
54
+ "RateLimitError",
55
+ "InternalServerError",
56
+ "Timeout",
57
+ "RequestOptions",
58
+ "Client",
59
+ "AsyncClient",
60
+ "Stream",
61
+ "AsyncStream",
62
+ "Codeset",
63
+ "AsyncCodeset",
64
+ "file_from_path",
65
+ "BaseModel",
66
+ "DEFAULT_TIMEOUT",
67
+ "DEFAULT_MAX_RETRIES",
68
+ "DEFAULT_CONNECTION_LIMITS",
69
+ "DefaultHttpxClient",
70
+ "DefaultAsyncHttpxClient",
71
+ "DefaultAioHttpClient",
72
+ ]
73
+
74
+ if not _t.TYPE_CHECKING:
75
+ from ._utils._resources_proxy import resources as resources
76
+
77
+ _setup_logging()
78
+
79
+ # Update the __module__ attribute for exported symbols so that
80
+ # error messages point to this module instead of the module
81
+ # it was originally defined in, e.g.
82
+ # codeset._exceptions.NotFoundError -> codeset.NotFoundError
83
+ __locals = locals()
84
+ for __name in __all__:
85
+ if not __name.startswith("__"):
86
+ try:
87
+ __locals[__name].__module__ = "codeset"
88
+ except (TypeError, AttributeError):
89
+ # Some of our exported symbols are builtins which we can't set attributes for.
90
+ pass