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
@@ -0,0 +1,397 @@
1
+ Metadata-Version: 2.3
2
+ Name: codeset
3
+ Version: 0.1.0a1
4
+ Summary: The official Python library for the codeset API
5
+ Project-URL: Homepage, https://github.com/codeset-ai/codeset-sdk
6
+ Project-URL: Repository, https://github.com/codeset-ai/codeset-sdk
7
+ Author: Codeset
8
+ License: Apache-2.0
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: MacOS
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Operating System :: POSIX
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.8
24
+ Requires-Dist: anyio<5,>=3.5.0
25
+ Requires-Dist: distro<2,>=1.7.0
26
+ Requires-Dist: httpx<1,>=0.23.0
27
+ Requires-Dist: pydantic<3,>=1.9.0
28
+ Requires-Dist: sniffio
29
+ Requires-Dist: typing-extensions<5,>=4.10
30
+ Provides-Extra: aiohttp
31
+ Requires-Dist: aiohttp; extra == 'aiohttp'
32
+ Requires-Dist: httpx-aiohttp>=0.1.6; extra == 'aiohttp'
33
+ Description-Content-Type: text/markdown
34
+
35
+ # Codeset Python API library
36
+
37
+ [![PyPI version](https://github.com/codeset-ai/codeset-sdk/tree/main/<https://img.shields.io/pypi/v/codeset.svg?label=pypi%20(stable)>)](https://pypi.org/project/codeset/)
38
+
39
+ The Codeset Python library provides convenient access to the Codeset REST API from any Python 3.8+
40
+ application. The library includes type definitions for all request params and response fields,
41
+ and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
42
+
43
+ It is generated with [Stainless](https://www.stainless.com/).
44
+
45
+ ## Documentation
46
+
47
+ The full API of this library can be found in [api.md](https://github.com/codeset-ai/codeset-sdk/tree/main/api.md).
48
+
49
+ ## Installation
50
+
51
+ ```sh
52
+ # install from PyPI
53
+ pip install --pre codeset
54
+ ```
55
+
56
+ ## Usage
57
+
58
+ The full API of this library can be found in [api.md](https://github.com/codeset-ai/codeset-sdk/tree/main/api.md).
59
+
60
+ ```python
61
+ import os
62
+ from codeset import Codeset
63
+
64
+ client = Codeset(
65
+ api_key=os.environ.get("CODESET_API_KEY"), # This is the default and can be omitted
66
+ )
67
+
68
+ response = client.health.check()
69
+ print(response.service)
70
+ ```
71
+
72
+ While you can provide an `api_key` keyword argument,
73
+ we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
74
+ to add `CODESET_API_KEY="My API Key"` to your `.env` file
75
+ so that your API Key is not stored in source control.
76
+
77
+ ## Async usage
78
+
79
+ Simply import `AsyncCodeset` instead of `Codeset` and use `await` with each API call:
80
+
81
+ ```python
82
+ import os
83
+ import asyncio
84
+ from codeset import AsyncCodeset
85
+
86
+ client = AsyncCodeset(
87
+ api_key=os.environ.get("CODESET_API_KEY"), # This is the default and can be omitted
88
+ )
89
+
90
+
91
+ async def main() -> None:
92
+ response = await client.health.check()
93
+ print(response.service)
94
+
95
+
96
+ asyncio.run(main())
97
+ ```
98
+
99
+ Functionality between the synchronous and asynchronous clients is otherwise identical.
100
+
101
+ ### With aiohttp
102
+
103
+ By default, the async client uses `httpx` for HTTP requests. However, for improved concurrency performance you may also use `aiohttp` as the HTTP backend.
104
+
105
+ You can enable this by installing `aiohttp`:
106
+
107
+ ```sh
108
+ # install from PyPI
109
+ pip install --pre codeset[aiohttp]
110
+ ```
111
+
112
+ Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
113
+
114
+ ```python
115
+ import os
116
+ import asyncio
117
+ from codeset import DefaultAioHttpClient
118
+ from codeset import AsyncCodeset
119
+
120
+
121
+ async def main() -> None:
122
+ async with AsyncCodeset(
123
+ api_key=os.environ.get("CODESET_API_KEY"), # This is the default and can be omitted
124
+ http_client=DefaultAioHttpClient(),
125
+ ) as client:
126
+ response = await client.health.check()
127
+ print(response.service)
128
+
129
+
130
+ asyncio.run(main())
131
+ ```
132
+
133
+ ## Using types
134
+
135
+ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
136
+
137
+ - Serializing back into JSON, `model.to_json()`
138
+ - Converting to a dictionary, `model.to_dict()`
139
+
140
+ Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
141
+
142
+ ## Handling errors
143
+
144
+ When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `codeset.APIConnectionError` is raised.
145
+
146
+ When the API returns a non-success status code (that is, 4xx or 5xx
147
+ response), a subclass of `codeset.APIStatusError` is raised, containing `status_code` and `response` properties.
148
+
149
+ All errors inherit from `codeset.APIError`.
150
+
151
+ ```python
152
+ import codeset
153
+ from codeset import Codeset
154
+
155
+ client = Codeset()
156
+
157
+ try:
158
+ client.health.check()
159
+ except codeset.APIConnectionError as e:
160
+ print("The server could not be reached")
161
+ print(e.__cause__) # an underlying Exception, likely raised within httpx.
162
+ except codeset.RateLimitError as e:
163
+ print("A 429 status code was received; we should back off a bit.")
164
+ except codeset.APIStatusError as e:
165
+ print("Another non-200-range status code was received")
166
+ print(e.status_code)
167
+ print(e.response)
168
+ ```
169
+
170
+ Error codes are as follows:
171
+
172
+ | Status Code | Error Type |
173
+ | ----------- | -------------------------- |
174
+ | 400 | `BadRequestError` |
175
+ | 401 | `AuthenticationError` |
176
+ | 403 | `PermissionDeniedError` |
177
+ | 404 | `NotFoundError` |
178
+ | 422 | `UnprocessableEntityError` |
179
+ | 429 | `RateLimitError` |
180
+ | >=500 | `InternalServerError` |
181
+ | N/A | `APIConnectionError` |
182
+
183
+ ### Retries
184
+
185
+ Certain errors are automatically retried 2 times by default, with a short exponential backoff.
186
+ Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
187
+ 429 Rate Limit, and >=500 Internal errors are all retried by default.
188
+
189
+ You can use the `max_retries` option to configure or disable retry settings:
190
+
191
+ ```python
192
+ from codeset import Codeset
193
+
194
+ # Configure the default for all requests:
195
+ client = Codeset(
196
+ # default is 2
197
+ max_retries=0,
198
+ )
199
+
200
+ # Or, configure per-request:
201
+ client.with_options(max_retries=5).health.check()
202
+ ```
203
+
204
+ ### Timeouts
205
+
206
+ By default requests time out after 1 minute. You can configure this with a `timeout` option,
207
+ which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
208
+
209
+ ```python
210
+ from codeset import Codeset
211
+
212
+ # Configure the default for all requests:
213
+ client = Codeset(
214
+ # 20 seconds (default is 1 minute)
215
+ timeout=20.0,
216
+ )
217
+
218
+ # More granular control:
219
+ client = Codeset(
220
+ timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
221
+ )
222
+
223
+ # Override per-request:
224
+ client.with_options(timeout=5.0).health.check()
225
+ ```
226
+
227
+ On timeout, an `APITimeoutError` is thrown.
228
+
229
+ Note that requests that time out are [retried twice by default](https://github.com/codeset-ai/codeset-sdk/tree/main/#retries).
230
+
231
+ ## Advanced
232
+
233
+ ### Logging
234
+
235
+ We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
236
+
237
+ You can enable logging by setting the environment variable `CODESET_LOG` to `info`.
238
+
239
+ ```shell
240
+ $ export CODESET_LOG=info
241
+ ```
242
+
243
+ Or to `debug` for more verbose logging.
244
+
245
+ ### How to tell whether `None` means `null` or missing
246
+
247
+ In an API response, a field may be explicitly `null`, or missing entirely; in either case, its value is `None` in this library. You can differentiate the two cases with `.model_fields_set`:
248
+
249
+ ```py
250
+ if response.my_field is None:
251
+ if 'my_field' not in response.model_fields_set:
252
+ print('Got json like {}, without a "my_field" key present at all.')
253
+ else:
254
+ print('Got json like {"my_field": null}.')
255
+ ```
256
+
257
+ ### Accessing raw response data (e.g. headers)
258
+
259
+ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
260
+
261
+ ```py
262
+ from codeset import Codeset
263
+
264
+ client = Codeset()
265
+ response = client.health.with_raw_response.check()
266
+ print(response.headers.get('X-My-Header'))
267
+
268
+ health = response.parse() # get the object that `health.check()` would have returned
269
+ print(health.service)
270
+ ```
271
+
272
+ These methods return an [`APIResponse`](https://github.com/codeset-ai/codeset-sdk/tree/main/src/codeset/_response.py) object.
273
+
274
+ The async client returns an [`AsyncAPIResponse`](https://github.com/codeset-ai/codeset-sdk/tree/main/src/codeset/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
275
+
276
+ #### `.with_streaming_response`
277
+
278
+ The above interface eagerly reads the full response body when you make the request, which may not always be what you want.
279
+
280
+ To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
281
+
282
+ ```python
283
+ with client.health.with_streaming_response.check() as response:
284
+ print(response.headers.get("X-My-Header"))
285
+
286
+ for line in response.iter_lines():
287
+ print(line)
288
+ ```
289
+
290
+ The context manager is required so that the response will reliably be closed.
291
+
292
+ ### Making custom/undocumented requests
293
+
294
+ This library is typed for convenient access to the documented API.
295
+
296
+ If you need to access undocumented endpoints, params, or response properties, the library can still be used.
297
+
298
+ #### Undocumented endpoints
299
+
300
+ To make requests to undocumented endpoints, you can make requests using `client.get`, `client.post`, and other
301
+ http verbs. Options on the client will be respected (such as retries) when making this request.
302
+
303
+ ```py
304
+ import httpx
305
+
306
+ response = client.post(
307
+ "/foo",
308
+ cast_to=httpx.Response,
309
+ body={"my_param": True},
310
+ )
311
+
312
+ print(response.headers.get("x-foo"))
313
+ ```
314
+
315
+ #### Undocumented request params
316
+
317
+ If you want to explicitly send an extra param, you can do so with the `extra_query`, `extra_body`, and `extra_headers` request
318
+ options.
319
+
320
+ #### Undocumented response properties
321
+
322
+ To access undocumented response properties, you can access the extra fields like `response.unknown_prop`. You
323
+ can also get all the extra fields on the Pydantic model as a dict with
324
+ [`response.model_extra`](https://docs.pydantic.dev/latest/api/base_model/#pydantic.BaseModel.model_extra).
325
+
326
+ ### Configuring the HTTP client
327
+
328
+ You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
329
+
330
+ - Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
331
+ - Custom [transports](https://www.python-httpx.org/advanced/transports/)
332
+ - Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
333
+
334
+ ```python
335
+ import httpx
336
+ from codeset import Codeset, DefaultHttpxClient
337
+
338
+ client = Codeset(
339
+ # Or use the `CODESET_BASE_URL` env var
340
+ base_url="http://my.test.server.example.com:8083",
341
+ http_client=DefaultHttpxClient(
342
+ proxy="http://my.test.proxy.example.com",
343
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
344
+ ),
345
+ )
346
+ ```
347
+
348
+ You can also customize the client on a per-request basis by using `with_options()`:
349
+
350
+ ```python
351
+ client.with_options(http_client=DefaultHttpxClient(...))
352
+ ```
353
+
354
+ ### Managing HTTP resources
355
+
356
+ By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
357
+
358
+ ```py
359
+ from codeset import Codeset
360
+
361
+ with Codeset() as client:
362
+ # make requests here
363
+ ...
364
+
365
+ # HTTP client is now closed
366
+ ```
367
+
368
+ ## Versioning
369
+
370
+ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
371
+
372
+ 1. Changes that only affect static types, without breaking runtime behavior.
373
+ 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
374
+ 3. Changes that we do not expect to impact the vast majority of users in practice.
375
+
376
+ We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
377
+
378
+ We are keen for your feedback; please open an [issue](https://www.github.com/codeset-ai/codeset-sdk/issues) with questions, bugs, or suggestions.
379
+
380
+ ### Determining the installed version
381
+
382
+ If you've upgraded to the latest version but aren't seeing any new features you were expecting then your python environment is likely still using an older version.
383
+
384
+ You can determine the version that is being used at runtime with:
385
+
386
+ ```py
387
+ import codeset
388
+ print(codeset.__version__)
389
+ ```
390
+
391
+ ## Requirements
392
+
393
+ Python 3.8 or higher.
394
+
395
+ ## Contributing
396
+
397
+ See [the contributing documentation](https://github.com/codeset-ai/codeset-sdk/tree/main/./CONTRIBUTING.md).
@@ -0,0 +1,56 @@
1
+ codeset/__init__.py,sha256=EsK759s1z8FPFqxjNIVx1WaqbYYHOpI2xeHcSNyW30U,2587
2
+ codeset/_base_client.py,sha256=AY78tq7Tul-Hwl1Lmw3MCuSJ9WeWTA6UikYi8NSPW4Q,66716
3
+ codeset/_client.py,sha256=bjUU8sUoVdWxTXNrpLaijL-JwucihqzfeEglN_nmH_g,16585
4
+ codeset/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
+ codeset/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
6
+ codeset/_exceptions.py,sha256=b6V9pgGqb8KEwAif3Qw9PuGjOr3eCJo25n89ZWBKZlw,3222
7
+ codeset/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
8
+ codeset/_models.py,sha256=G1vczEodX0vUySeVKbF-mbzlaObNL1oVAYH4c65agRk,29131
9
+ codeset/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
+ codeset/_resource.py,sha256=MhmvrwixEq6echG2IFv1gO_nE_zfFTNw65s0JjsMee0,1106
11
+ codeset/_response.py,sha256=lC6V1z6Az0X_Rk9MgwN8hOzYUSEwtp6_py_H3agR04A,28794
12
+ codeset/_streaming.py,sha256=HqkgFE-gv9S7T4QfGa5pD4suEOvQ8BHZRxJR_NQcXak,10104
13
+ codeset/_types.py,sha256=vWg2CtlXHiPre02gXyJkXvCkxVygqATc07iCsEZmceA,6198
14
+ codeset/_version.py,sha256=CAtm4KnL1IZaDmaAV2YzEP_E_wRE7HljYL7UvyUXlYk,167
15
+ codeset/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ codeset/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
17
+ codeset/_utils/_logs.py,sha256=3sgppSduJj3mlW7qLTrVdtoy3NXJnuu7MFZrpGzamJQ,777
18
+ codeset/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
19
+ codeset/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
20
+ codeset/_utils/_resources_proxy.py,sha256=A_aa4tqLkHtA6bVPnI0_F_KwWazqNhTzGYaboOFY36Q,594
21
+ codeset/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
22
+ codeset/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
23
+ codeset/_utils/_transform.py,sha256=n7kskEWz6o__aoNvhFoGVyDoalNe6mJwp-g7BWkdj88,15617
24
+ codeset/_utils/_typing.py,sha256=D0DbbNu8GnYQTSICnTSHDGsYXj8TcAKyhejb0XcnjtY,4602
25
+ codeset/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf4,12312
26
+ codeset/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
27
+ codeset/resources/__init__.py,sha256=32sOQt72KXOla0dUQqu1djbaLIWbd6zukrIh9Gotws0,1491
28
+ codeset/resources/health.py,sha256=WaI8xSzaym_p5rIEHz2QJ2E5dYXnwHSXbqKdm1tq4Nc,4859
29
+ codeset/resources/samples.py,sha256=b8u-QetzIrEtlCADnkD-mU_SubolN7YmTKytzlUkS4w,8731
30
+ codeset/resources/sessions/__init__.py,sha256=NinDKd-EXVeconYzUm9S-pKs1VHxZUCWFsascKZLdRQ,1028
31
+ codeset/resources/sessions/sessions.py,sha256=JUm83oJsglauM39_-lzO1EVGhFzFjzNLohhkE7rtZlY,23500
32
+ codeset/resources/sessions/verify.py,sha256=76xpNzpqiGSdc5RNnnpft8OZPlKuQi-LHgAXaqjQO3Y,9334
33
+ codeset/types/__init__.py,sha256=71dgu8C0vmb5wghxwZcav96WNPZsYcvh0UC2wm5AcVk,1277
34
+ codeset/types/container_info.py,sha256=b0vVBnOx8mDIu35HWpGn65VtOxpJUl2Awn0p8q74v_8,664
35
+ codeset/types/error_info.py,sha256=1yThCkLmcA_bA31pLlm4h-tk9TsmqnPb0yS5p1UQBPI,305
36
+ codeset/types/health_check_response.py,sha256=hHMXvlEIQj98rsbkiKSX2SZaaRl-3mVuAFKY5k1FM_c,437
37
+ codeset/types/sample_download_params.py,sha256=tRPvOupAg4rkWgdtQlWYKQHqbvTZIQYNM4u8TwLyuAE,346
38
+ codeset/types/sample_list_response.py,sha256=KtllR5nvU-XZTzDb2U_vlOcpIe9bDobI6mRleBUyAos,1182
39
+ codeset/types/session.py,sha256=8r1iO3jlKI6TW4Ws7BibUGYnOzbBum5cuPN4CGXxMZ8,1020
40
+ codeset/types/session_apply_diff_params.py,sha256=EaEqnk9jyl4UOx6IDKN4kBzOXrZhFC2sF7WcFXMwURs,344
41
+ codeset/types/session_apply_diff_response.py,sha256=jzOYdMWcNzWHjDFkivjHJInp5R3KsoXoFGeqHMYxWbY,339
42
+ codeset/types/session_close_response.py,sha256=byhoy9KhwCB1njuGgGVMuvUHjS2vm9WR1mQtaKcyTEM,267
43
+ codeset/types/session_create_params.py,sha256=bqiIZO6H8Y9FUsYbSj3ac5lItt0iUea2yTwBwfdud0I,437
44
+ codeset/types/session_create_response.py,sha256=87vgZPPCI3qA4_Gc8oS32RzglhwGSf7fgYxXOplrSYM,494
45
+ codeset/types/session_execute_command_params.py,sha256=VIRFXCnRe7Erl1TbJs8-St-Aqll39K5HujtfluzaaqU,436
46
+ codeset/types/session_execute_command_response.py,sha256=vh-i_V3-VP7Fi2WnxYLNDPdSUBwqKsQJdQW-pum_SgY,471
47
+ codeset/types/session_list_response.py,sha256=i0ldW4L6arvJ3jPYExKBOX5sod8IuNvLt69EfjseXIs,423
48
+ codeset/types/session_status.py,sha256=4CueysO0OhBDKgAiVUqnOHIG5VVtbVxFWxaYTLJuXwo,249
49
+ codeset/types/sessions/__init__.py,sha256=hRiBeT3umo01iicnTjI3UOh_Q6AspqzyyG-OEtUiAck,329
50
+ codeset/types/sessions/job_status.py,sha256=-BwrXSe6dZJaofc2J08HVu1croIV9-C3cURHR947PF4,279
51
+ codeset/types/sessions/verify_start_response.py,sha256=Dk1iyafuj1IAL39VQji_znUUMxDXI8QXn2QKB-ME4uw,482
52
+ codeset/types/sessions/verify_status_response.py,sha256=WI1QkwnsBAYvqjRzD4ewZ0685SwIhTjX6Hber3AadxY,1722
53
+ codeset-0.1.0a1.dist-info/METADATA,sha256=ZrHIrlvu-4rS-1Bd06T6Py0LpTxgwgZzOdjYqOyJPEU,13343
54
+ codeset-0.1.0a1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
55
+ codeset-0.1.0a1.dist-info/licenses/LICENSE,sha256=SzrebAd3MnL58zf3dEBLJvstQvQe33mCCY2TmzKEmY8,11337
56
+ codeset-0.1.0a1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.26.3
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Codeset
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.