codeset 0.1.0a4__py3-none-any.whl → 0.1.0a6__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.

codeset/_constants.py CHANGED
@@ -5,10 +5,10 @@ import httpx
5
5
  RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
6
6
  OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
7
7
 
8
- # default timeout is 1 minute
9
- DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
10
- DEFAULT_MAX_RETRIES = 2
8
+ # default timeout is 5 minutes
9
+ DEFAULT_TIMEOUT = httpx.Timeout(timeout=300, connect=5.0)
10
+ DEFAULT_MAX_RETRIES = 0
11
11
  DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
12
12
 
13
- INITIAL_RETRY_DELAY = 0.5
14
- MAX_RETRY_DELAY = 8.0
13
+ INITIAL_RETRY_DELAY = 0.0
14
+ MAX_RETRY_DELAY = 0.0
codeset/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "codeset"
4
- __version__ = "0.1.0-alpha.4" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.6" # x-release-please-version
@@ -61,6 +61,7 @@ class SessionsResource(SyncAPIResource):
61
61
  def create(
62
62
  self,
63
63
  *,
64
+ dataset: str,
64
65
  sample_id: str,
65
66
  ttl_minutes: int | NotGiven = NOT_GIVEN,
66
67
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -74,6 +75,8 @@ class SessionsResource(SyncAPIResource):
74
75
  Create a new session
75
76
 
76
77
  Args:
78
+ dataset: Dataset name for the sample.
79
+
77
80
  sample_id: Identifier of the sample to use for this session.
78
81
 
79
82
  ttl_minutes: Time to live for the session in minutes (default: 30).
@@ -90,6 +93,7 @@ class SessionsResource(SyncAPIResource):
90
93
  "/sessions",
91
94
  body=maybe_transform(
92
95
  {
96
+ "dataset": dataset,
93
97
  "sample_id": sample_id,
94
98
  "ttl_minutes": ttl_minutes,
95
99
  },
@@ -297,6 +301,7 @@ class AsyncSessionsResource(AsyncAPIResource):
297
301
  async def create(
298
302
  self,
299
303
  *,
304
+ dataset: str,
300
305
  sample_id: str,
301
306
  ttl_minutes: int | NotGiven = NOT_GIVEN,
302
307
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -310,6 +315,8 @@ class AsyncSessionsResource(AsyncAPIResource):
310
315
  Create a new session
311
316
 
312
317
  Args:
318
+ dataset: Dataset name for the sample.
319
+
313
320
  sample_id: Identifier of the sample to use for this session.
314
321
 
315
322
  ttl_minutes: Time to live for the session in minutes (default: 30).
@@ -326,6 +333,7 @@ class AsyncSessionsResource(AsyncAPIResource):
326
333
  "/sessions",
327
334
  body=await async_maybe_transform(
328
335
  {
336
+ "dataset": dataset,
329
337
  "sample_id": sample_id,
330
338
  "ttl_minutes": ttl_minutes,
331
339
  },
@@ -8,6 +8,9 @@ __all__ = ["SessionCreateParams"]
8
8
 
9
9
 
10
10
  class SessionCreateParams(TypedDict, total=False):
11
+ dataset: Required[str]
12
+ """Dataset name for the sample."""
13
+
11
14
  sample_id: Required[str]
12
15
  """Identifier of the sample to use for this session."""
13
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codeset
3
- Version: 0.1.0a4
3
+ Version: 0.1.0a6
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
@@ -182,7 +182,7 @@ Error codes are as follows:
182
182
 
183
183
  ### Retries
184
184
 
185
- Certain errors are automatically retried 2 times by default, with a short exponential backoff.
185
+ Certain errors are automatically retried 0 times by default, with a short exponential backoff.
186
186
  Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
187
187
  429 Rate Limit, and >=500 Internal errors are all retried by default.
188
188
 
@@ -203,7 +203,7 @@ client.with_options(max_retries=5).health.check()
203
203
 
204
204
  ### Timeouts
205
205
 
206
- By default requests time out after 1 minute. You can configure this with a `timeout` option,
206
+ By default requests time out after 5 minutes. You can configure this with a `timeout` option,
207
207
  which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
208
208
 
209
209
  ```python
@@ -211,7 +211,7 @@ from codeset import Codeset
211
211
 
212
212
  # Configure the default for all requests:
213
213
  client = Codeset(
214
- # 20 seconds (default is 1 minute)
214
+ # 20 seconds (default is 5 minutes)
215
215
  timeout=20.0,
216
216
  )
217
217
 
@@ -2,7 +2,7 @@ codeset/__init__.py,sha256=EsK759s1z8FPFqxjNIVx1WaqbYYHOpI2xeHcSNyW30U,2587
2
2
  codeset/_base_client.py,sha256=AY78tq7Tul-Hwl1Lmw3MCuSJ9WeWTA6UikYi8NSPW4Q,66716
3
3
  codeset/_client.py,sha256=bjUU8sUoVdWxTXNrpLaijL-JwucihqzfeEglN_nmH_g,16585
4
4
  codeset/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
- codeset/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
5
+ codeset/_constants.py,sha256=SiR7F9XqRp2zFGI5kXnK7smZu4Ek80R8bg6EGeH0SqI,464
6
6
  codeset/_exceptions.py,sha256=b6V9pgGqb8KEwAif3Qw9PuGjOr3eCJo25n89ZWBKZlw,3222
7
7
  codeset/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
8
8
  codeset/_models.py,sha256=G1vczEodX0vUySeVKbF-mbzlaObNL1oVAYH4c65agRk,29131
@@ -11,7 +11,7 @@ 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
13
  codeset/_types.py,sha256=vWg2CtlXHiPre02gXyJkXvCkxVygqATc07iCsEZmceA,6198
14
- codeset/_version.py,sha256=Acz1be1iAze4JskltWneTi9drqEsRgMdep6zvhFbAGE,167
14
+ codeset/_version.py,sha256=OjGfmd-BTTam-B7wihchSZQ0RuodTypE8dZAy5UIDSg,167
15
15
  codeset/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  codeset/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
17
17
  codeset/_utils/_logs.py,sha256=3sgppSduJj3mlW7qLTrVdtoy3NXJnuu7MFZrpGzamJQ,777
@@ -28,7 +28,7 @@ codeset/resources/__init__.py,sha256=32sOQt72KXOla0dUQqu1djbaLIWbd6zukrIh9Gotws0
28
28
  codeset/resources/health.py,sha256=WaI8xSzaym_p5rIEHz2QJ2E5dYXnwHSXbqKdm1tq4Nc,4859
29
29
  codeset/resources/samples.py,sha256=b8u-QetzIrEtlCADnkD-mU_SubolN7YmTKytzlUkS4w,8731
30
30
  codeset/resources/sessions/__init__.py,sha256=NinDKd-EXVeconYzUm9S-pKs1VHxZUCWFsascKZLdRQ,1028
31
- codeset/resources/sessions/sessions.py,sha256=JUm83oJsglauM39_-lzO1EVGhFzFjzNLohhkE7rtZlY,23500
31
+ codeset/resources/sessions/sessions.py,sha256=CUD34p0HLjH7ankpOJm1xAu9EsGSFAlbpg0kRP8zKaA,23722
32
32
  codeset/resources/sessions/verify.py,sha256=76xpNzpqiGSdc5RNnnpft8OZPlKuQi-LHgAXaqjQO3Y,9334
33
33
  codeset/types/__init__.py,sha256=71dgu8C0vmb5wghxwZcav96WNPZsYcvh0UC2wm5AcVk,1277
34
34
  codeset/types/container_info.py,sha256=b0vVBnOx8mDIu35HWpGn65VtOxpJUl2Awn0p8q74v_8,664
@@ -40,7 +40,7 @@ codeset/types/session.py,sha256=FsBo5RmJ9KHKvwr_-QLoa4cTYGPHgXS-CR8Y7L6B5Iw,1120
40
40
  codeset/types/session_apply_diff_params.py,sha256=EaEqnk9jyl4UOx6IDKN4kBzOXrZhFC2sF7WcFXMwURs,344
41
41
  codeset/types/session_apply_diff_response.py,sha256=jzOYdMWcNzWHjDFkivjHJInp5R3KsoXoFGeqHMYxWbY,339
42
42
  codeset/types/session_close_response.py,sha256=_vWgm4IHWcwUuw4lmGolEG3CkIv0H0A5yf8eaWB4f-I,342
43
- codeset/types/session_create_params.py,sha256=bqiIZO6H8Y9FUsYbSj3ac5lItt0iUea2yTwBwfdud0I,437
43
+ codeset/types/session_create_params.py,sha256=cFl5O1jI5qAjh9SqfLRerHo10TnY4QIYwi9j1Fv70MY,504
44
44
  codeset/types/session_create_response.py,sha256=87vgZPPCI3qA4_Gc8oS32RzglhwGSf7fgYxXOplrSYM,494
45
45
  codeset/types/session_execute_command_params.py,sha256=VIRFXCnRe7Erl1TbJs8-St-Aqll39K5HujtfluzaaqU,436
46
46
  codeset/types/session_execute_command_response.py,sha256=vh-i_V3-VP7Fi2WnxYLNDPdSUBwqKsQJdQW-pum_SgY,471
@@ -50,7 +50,7 @@ codeset/types/sessions/__init__.py,sha256=hRiBeT3umo01iicnTjI3UOh_Q6AspqzyyG-OEt
50
50
  codeset/types/sessions/job_status.py,sha256=-BwrXSe6dZJaofc2J08HVu1croIV9-C3cURHR947PF4,279
51
51
  codeset/types/sessions/verify_start_response.py,sha256=Dk1iyafuj1IAL39VQji_znUUMxDXI8QXn2QKB-ME4uw,482
52
52
  codeset/types/sessions/verify_status_response.py,sha256=WI1QkwnsBAYvqjRzD4ewZ0685SwIhTjX6Hber3AadxY,1722
53
- codeset-0.1.0a4.dist-info/METADATA,sha256=njmfR8k1Iic6DXYoAebrgzm3CI2RSzqPZ2kdTRooUhc,13343
54
- codeset-0.1.0a4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
55
- codeset-0.1.0a4.dist-info/licenses/LICENSE,sha256=SzrebAd3MnL58zf3dEBLJvstQvQe33mCCY2TmzKEmY8,11337
56
- codeset-0.1.0a4.dist-info/RECORD,,
53
+ codeset-0.1.0a6.dist-info/METADATA,sha256=UQo1kb8h7uVsW8SZwvSKp10TBv6MfBwVmNrWXIkXXdk,13345
54
+ codeset-0.1.0a6.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
55
+ codeset-0.1.0a6.dist-info/licenses/LICENSE,sha256=SzrebAd3MnL58zf3dEBLJvstQvQe33mCCY2TmzKEmY8,11337
56
+ codeset-0.1.0a6.dist-info/RECORD,,