codeset 0.1.0a13__py3-none-any.whl → 0.1.0a14__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.

Potentially problematic release.


This version of codeset might be problematic. Click here for more details.

@@ -13,7 +13,7 @@ from .verify import (
13
13
  AsyncVerifyResourceWithStreamingResponse,
14
14
  )
15
15
  from ...types import session_create_params, session_str_replace_params, session_execute_command_params
16
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
16
+ from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
17
17
  from ..._utils import maybe_transform, async_maybe_transform
18
18
  from ..._compat import cached_property
19
19
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -63,13 +63,13 @@ class SessionsResource(SyncAPIResource):
63
63
  *,
64
64
  dataset: str,
65
65
  sample_id: str,
66
- ttl_minutes: int | NotGiven = NOT_GIVEN,
66
+ ttl_minutes: int | Omit = omit,
67
67
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
68
68
  # The extra values given here take precedence over values defined on the client or passed to this method.
69
69
  extra_headers: Headers | None = None,
70
70
  extra_query: Query | None = None,
71
71
  extra_body: Body | None = None,
72
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
72
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
73
73
  ) -> SessionCreateResponse:
74
74
  """
75
75
  Create a new session
@@ -114,7 +114,7 @@ class SessionsResource(SyncAPIResource):
114
114
  extra_headers: Headers | None = None,
115
115
  extra_query: Query | None = None,
116
116
  extra_body: Body | None = None,
117
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
117
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
118
118
  ) -> Session:
119
119
  """
120
120
  Get session details
@@ -146,7 +146,7 @@ class SessionsResource(SyncAPIResource):
146
146
  extra_headers: Headers | None = None,
147
147
  extra_query: Query | None = None,
148
148
  extra_body: Body | None = None,
149
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
149
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
150
150
  ) -> SessionListResponse:
151
151
  """List environment sessions"""
152
152
  return self._get(
@@ -166,7 +166,7 @@ class SessionsResource(SyncAPIResource):
166
166
  extra_headers: Headers | None = None,
167
167
  extra_query: Query | None = None,
168
168
  extra_body: Body | None = None,
169
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
169
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
170
170
  ) -> SessionCloseResponse:
171
171
  """
172
172
  Close/delete an environment session
@@ -195,13 +195,13 @@ class SessionsResource(SyncAPIResource):
195
195
  session_id: str,
196
196
  *,
197
197
  command: str,
198
- command_timeout: int | NotGiven = NOT_GIVEN,
198
+ command_timeout: int | Omit = omit,
199
199
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
200
200
  # The extra values given here take precedence over values defined on the client or passed to this method.
201
201
  extra_headers: Headers | None = None,
202
202
  extra_query: Query | None = None,
203
203
  extra_body: Body | None = None,
204
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
204
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
205
205
  ) -> SessionExecuteCommandResponse:
206
206
  """
207
207
  Execute a bash command in an environment
@@ -248,7 +248,7 @@ class SessionsResource(SyncAPIResource):
248
248
  extra_headers: Headers | None = None,
249
249
  extra_query: Query | None = None,
250
250
  extra_body: Body | None = None,
251
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
251
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
252
252
  ) -> SessionStrReplaceResponse:
253
253
  """
254
254
  Replace a string in a file within the session environment
@@ -316,13 +316,13 @@ class AsyncSessionsResource(AsyncAPIResource):
316
316
  *,
317
317
  dataset: str,
318
318
  sample_id: str,
319
- ttl_minutes: int | NotGiven = NOT_GIVEN,
319
+ ttl_minutes: int | Omit = omit,
320
320
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
321
321
  # The extra values given here take precedence over values defined on the client or passed to this method.
322
322
  extra_headers: Headers | None = None,
323
323
  extra_query: Query | None = None,
324
324
  extra_body: Body | None = None,
325
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
325
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
326
326
  ) -> SessionCreateResponse:
327
327
  """
328
328
  Create a new session
@@ -367,7 +367,7 @@ class AsyncSessionsResource(AsyncAPIResource):
367
367
  extra_headers: Headers | None = None,
368
368
  extra_query: Query | None = None,
369
369
  extra_body: Body | None = None,
370
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
370
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
371
371
  ) -> Session:
372
372
  """
373
373
  Get session details
@@ -399,7 +399,7 @@ class AsyncSessionsResource(AsyncAPIResource):
399
399
  extra_headers: Headers | None = None,
400
400
  extra_query: Query | None = None,
401
401
  extra_body: Body | None = None,
402
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
402
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
403
403
  ) -> SessionListResponse:
404
404
  """List environment sessions"""
405
405
  return await self._get(
@@ -419,7 +419,7 @@ class AsyncSessionsResource(AsyncAPIResource):
419
419
  extra_headers: Headers | None = None,
420
420
  extra_query: Query | None = None,
421
421
  extra_body: Body | None = None,
422
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
422
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
423
423
  ) -> SessionCloseResponse:
424
424
  """
425
425
  Close/delete an environment session
@@ -448,13 +448,13 @@ class AsyncSessionsResource(AsyncAPIResource):
448
448
  session_id: str,
449
449
  *,
450
450
  command: str,
451
- command_timeout: int | NotGiven = NOT_GIVEN,
451
+ command_timeout: int | Omit = omit,
452
452
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
453
453
  # The extra values given here take precedence over values defined on the client or passed to this method.
454
454
  extra_headers: Headers | None = None,
455
455
  extra_query: Query | None = None,
456
456
  extra_body: Body | None = None,
457
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
457
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
458
458
  ) -> SessionExecuteCommandResponse:
459
459
  """
460
460
  Execute a bash command in an environment
@@ -501,7 +501,7 @@ class AsyncSessionsResource(AsyncAPIResource):
501
501
  extra_headers: Headers | None = None,
502
502
  extra_query: Query | None = None,
503
503
  extra_body: Body | None = None,
504
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
504
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
505
505
  ) -> SessionStrReplaceResponse:
506
506
  """
507
507
  Replace a string in a file within the session environment
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from ..._types import Body, Query, Headers, NotGiven, not_given
8
8
  from ..._compat import cached_property
9
9
  from ..._resource import SyncAPIResource, AsyncAPIResource
10
10
  from ..._response import (
@@ -49,7 +49,7 @@ class VerifyResource(SyncAPIResource):
49
49
  extra_headers: Headers | None = None,
50
50
  extra_query: Query | None = None,
51
51
  extra_body: Body | None = None,
52
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
52
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
53
53
  ) -> VerifyStartResponse:
54
54
  """
55
55
  Start verification (oracle) in a session - async
@@ -83,7 +83,7 @@ class VerifyResource(SyncAPIResource):
83
83
  extra_headers: Headers | None = None,
84
84
  extra_query: Query | None = None,
85
85
  extra_body: Body | None = None,
86
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
86
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
87
87
  ) -> VerifyStatusResponse:
88
88
  """
89
89
  Get a verification job, including the result if it's completed
@@ -139,7 +139,7 @@ class AsyncVerifyResource(AsyncAPIResource):
139
139
  extra_headers: Headers | None = None,
140
140
  extra_query: Query | None = None,
141
141
  extra_body: Body | None = None,
142
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
142
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
143
143
  ) -> VerifyStartResponse:
144
144
  """
145
145
  Start verification (oracle) in a session - async
@@ -173,7 +173,7 @@ class AsyncVerifyResource(AsyncAPIResource):
173
173
  extra_headers: Headers | None = None,
174
174
  extra_query: Query | None = None,
175
175
  extra_body: Body | None = None,
176
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
176
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
177
177
  ) -> VerifyStatusResponse:
178
178
  """
179
179
  Get a verification job, including the result if it's completed
codeset/types/__init__.py CHANGED
@@ -6,6 +6,7 @@ from .session import Session as Session
6
6
  from .error_info import ErrorInfo as ErrorInfo
7
7
  from .container_info import ContainerInfo as ContainerInfo
8
8
  from .session_status import SessionStatus as SessionStatus
9
+ from .sample_list_params import SampleListParams as SampleListParams
9
10
  from .sample_list_response import SampleListResponse as SampleListResponse
10
11
  from .health_check_response import HealthCheckResponse as HealthCheckResponse
11
12
  from .session_create_params import SessionCreateParams as SessionCreateParams
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import TypedDict
7
+
8
+ __all__ = ["SampleListParams"]
9
+
10
+
11
+ class SampleListParams(TypedDict, total=False):
12
+ dataset: Optional[str]
13
+ """Filter samples by dataset name"""
codeset/types/session.py CHANGED
@@ -33,6 +33,9 @@ class Session(BaseModel):
33
33
  status: SessionStatus
34
34
  """Current status of the session."""
35
35
 
36
+ user_id: str
37
+ """User ID who owns this session."""
38
+
36
39
  container_info: Optional[ContainerInfo] = None
37
40
  """Information about a container."""
38
41
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codeset
3
- Version: 0.1.0a13
3
+ Version: 0.1.0a14
4
4
  Summary: The official Python library for the codeset API
5
5
  Project-URL: Homepage, https://github.com/codeset-ai/codeset-sdk
6
6
  Project-URL: Repository, https://github.com/codeset-ai/codeset-sdk
@@ -1,42 +1,45 @@
1
- codeset/__init__.py,sha256=EsK759s1z8FPFqxjNIVx1WaqbYYHOpI2xeHcSNyW30U,2587
2
- codeset/_base_client.py,sha256=7SxpGHrQOcc5u9ITv8sdVNWqTXmZU7VA9_LnlGTviC0,67036
3
- codeset/_client.py,sha256=6LKFSTiFmMNlcgfv2XSAOdgt6gMntJ5o4oVRfdJC6Gk,16631
4
- codeset/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
1
+ codeset/__init__.py,sha256=bCjaeGGvG-8IR-LHnLeZwkKv9qVWMgtPGaoviEF1Pts,2633
2
+ codeset/_base_client.py,sha256=9m787ZxSExBGO-JvBP795LQ3RYx39x5PzaPMsujmFzw,67048
3
+ codeset/_client.py,sha256=8O2aoX1oaT8w3rojNmSbOO1TgW6z6P61Md3LgxAE7uI,16616
4
+ codeset/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
5
5
  codeset/_constants.py,sha256=SiR7F9XqRp2zFGI5kXnK7smZu4Ek80R8bg6EGeH0SqI,464
6
6
  codeset/_exceptions.py,sha256=b6V9pgGqb8KEwAif3Qw9PuGjOr3eCJo25n89ZWBKZlw,3222
7
7
  codeset/_files.py,sha256=KnEzGi_O756MvKyJ4fOCW_u3JhOeWPQ4RsmDvqihDQU,3545
8
- codeset/_models.py,sha256=KvjsMfb88XZlFUKVoOxr8OyDj47MhoH2OKqWNEbBhk4,30010
9
- codeset/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
8
+ codeset/_models.py,sha256=lKnskYPONAWDvWo8tmbbVk7HmG7UOsI0Nve0vSMmkRc,30452
9
+ codeset/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
10
10
  codeset/_resource.py,sha256=MhmvrwixEq6echG2IFv1gO_nE_zfFTNw65s0JjsMee0,1106
11
11
  codeset/_response.py,sha256=lC6V1z6Az0X_Rk9MgwN8hOzYUSEwtp6_py_H3agR04A,28794
12
12
  codeset/_streaming.py,sha256=HqkgFE-gv9S7T4QfGa5pD4suEOvQ8BHZRxJR_NQcXak,10104
13
- codeset/_types.py,sha256=vWg2CtlXHiPre02gXyJkXvCkxVygqATc07iCsEZmceA,6198
14
- codeset/_version.py,sha256=VxoFkex2iRLL14V07Cw8LOXhpnDtGejEMIrRUjqYc_k,168
13
+ codeset/_types.py,sha256=VRDtyYVMs3WfFHJBcoUb5Vxjs5sAe0mQWYP-BnLyMQg,7237
14
+ codeset/_version.py,sha256=SrFbDKm5k_IPZL4roF7Qax7mT7E4HKeKrWb4Ig7dt5U,168
15
15
  codeset/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- codeset/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
16
+ codeset/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
+ codeset/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
18
+ codeset/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204
17
19
  codeset/_utils/_logs.py,sha256=3sgppSduJj3mlW7qLTrVdtoy3NXJnuu7MFZrpGzamJQ,777
18
20
  codeset/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
19
21
  codeset/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
20
22
  codeset/_utils/_resources_proxy.py,sha256=A_aa4tqLkHtA6bVPnI0_F_KwWazqNhTzGYaboOFY36Q,594
21
23
  codeset/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
22
24
  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
25
+ codeset/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,15951
26
+ codeset/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
27
+ codeset/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
26
28
  codeset/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
27
29
  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/health.py,sha256=yjMq6lObrPoUCL71YteI-N9WbV7vvXnvvD60Di-iX7Y,4859
31
+ codeset/resources/samples.py,sha256=nC3FoVC7OgLTbwvXuLbO3hbHMohELiqCEl1MMuy6qHM,9925
30
32
  codeset/resources/sessions/__init__.py,sha256=NinDKd-EXVeconYzUm9S-pKs1VHxZUCWFsascKZLdRQ,1028
31
- codeset/resources/sessions/sessions.py,sha256=Se3gT9SvCNvkxf8l8OgTlyZ6fSVnGXbtn4E1zzg-CAo,24591
32
- codeset/resources/sessions/verify.py,sha256=76xpNzpqiGSdc5RNnnpft8OZPlKuQi-LHgAXaqjQO3Y,9334
33
- codeset/types/__init__.py,sha256=PqKDloLnkQiANbkitDnbce-fwvBb-srBK9JcL0nDRy8,1283
33
+ codeset/resources/sessions/sessions.py,sha256=GlxXAhgpLaNVsIyAyRIzZQrIFraVfFnlK2jVvmu65Oc,24567
34
+ codeset/resources/sessions/verify.py,sha256=G5sXSbTQHQ-FYGo8yfKHM91olilYn2GR3pP_3uDSIOs,9334
35
+ codeset/types/__init__.py,sha256=QqhNk1L9Q45Wi-B8UqZD1TDm6sBRWBxU1wNkaAwUMa4,1352
34
36
  codeset/types/container_info.py,sha256=hhcVMX2nUmuaSTDBiSnJGQZQVYTlbDG57WUxwXazX2M,618
35
37
  codeset/types/error_info.py,sha256=1yThCkLmcA_bA31pLlm4h-tk9TsmqnPb0yS5p1UQBPI,305
36
38
  codeset/types/health_check_response.py,sha256=hHMXvlEIQj98rsbkiKSX2SZaaRl-3mVuAFKY5k1FM_c,437
37
39
  codeset/types/sample_download_params.py,sha256=tRPvOupAg4rkWgdtQlWYKQHqbvTZIQYNM4u8TwLyuAE,346
40
+ codeset/types/sample_list_params.py,sha256=OPtSgytRJH4m_9_qjBzxCpST8pTOFovgzXNupcqnxJY,341
38
41
  codeset/types/sample_list_response.py,sha256=KtllR5nvU-XZTzDb2U_vlOcpIe9bDobI6mRleBUyAos,1182
39
- codeset/types/session.py,sha256=-isUdFqbxVTMg2wsFmjrVgfFPpMtvw9PW4YVDIOlijo,1177
42
+ codeset/types/session.py,sha256=94SPbObawjAtw1itb6GXYG4TV3sBxITIiofETsED9bU,1236
40
43
  codeset/types/session_close_response.py,sha256=_vWgm4IHWcwUuw4lmGolEG3CkIv0H0A5yf8eaWB4f-I,342
41
44
  codeset/types/session_create_params.py,sha256=cFl5O1jI5qAjh9SqfLRerHo10TnY4QIYwi9j1Fv70MY,504
42
45
  codeset/types/session_create_response.py,sha256=87vgZPPCI3qA4_Gc8oS32RzglhwGSf7fgYxXOplrSYM,494
@@ -50,7 +53,7 @@ codeset/types/sessions/__init__.py,sha256=hRiBeT3umo01iicnTjI3UOh_Q6AspqzyyG-OEt
50
53
  codeset/types/sessions/job_status.py,sha256=347Rz0GmlCYv5yeHJnsG-Ddr5xkpKvX2sHXYRz0opXI,262
51
54
  codeset/types/sessions/verify_start_response.py,sha256=Dk1iyafuj1IAL39VQji_znUUMxDXI8QXn2QKB-ME4uw,482
52
55
  codeset/types/sessions/verify_status_response.py,sha256=hjYWo5nJdsznnPWmfVF0T5Hw9WfB8b06VtkYqhCMX0k,1983
53
- codeset-0.1.0a13.dist-info/METADATA,sha256=q7ZIN0a552jGd7D_k0ICVfIhzu7_uxfCRGPw_848oQo,13382
54
- codeset-0.1.0a13.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
55
- codeset-0.1.0a13.dist-info/licenses/LICENSE,sha256=SzrebAd3MnL58zf3dEBLJvstQvQe33mCCY2TmzKEmY8,11337
56
- codeset-0.1.0a13.dist-info/RECORD,,
56
+ codeset-0.1.0a14.dist-info/METADATA,sha256=qHRczh3uGlEgywUxVowWJ-zReVI675jT9_hKJMIqtrE,13382
57
+ codeset-0.1.0a14.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
58
+ codeset-0.1.0a14.dist-info/licenses/LICENSE,sha256=SzrebAd3MnL58zf3dEBLJvstQvQe33mCCY2TmzKEmY8,11337
59
+ codeset-0.1.0a14.dist-info/RECORD,,