codeset 0.1.0a4__tar.gz → 0.1.0a5__tar.gz

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.

Files changed (93) hide show
  1. codeset-0.1.0a5/.release-please-manifest.json +3 -0
  2. {codeset-0.1.0a4 → codeset-0.1.0a5}/CHANGELOG.md +8 -0
  3. {codeset-0.1.0a4 → codeset-0.1.0a5}/PKG-INFO +4 -4
  4. {codeset-0.1.0a4 → codeset-0.1.0a5}/README.md +3 -3
  5. {codeset-0.1.0a4 → codeset-0.1.0a5}/pyproject.toml +1 -1
  6. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_constants.py +5 -5
  7. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_version.py +1 -1
  8. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_client.py +28 -28
  9. codeset-0.1.0a4/.release-please-manifest.json +0 -3
  10. {codeset-0.1.0a4 → codeset-0.1.0a5}/.gitignore +0 -0
  11. {codeset-0.1.0a4 → codeset-0.1.0a5}/CONTRIBUTING.md +0 -0
  12. {codeset-0.1.0a4 → codeset-0.1.0a5}/LICENSE +0 -0
  13. {codeset-0.1.0a4 → codeset-0.1.0a5}/SECURITY.md +0 -0
  14. {codeset-0.1.0a4 → codeset-0.1.0a5}/api.md +0 -0
  15. {codeset-0.1.0a4 → codeset-0.1.0a5}/bin/check-release-environment +0 -0
  16. {codeset-0.1.0a4 → codeset-0.1.0a5}/bin/publish-pypi +0 -0
  17. {codeset-0.1.0a4 → codeset-0.1.0a5}/examples/.keep +0 -0
  18. {codeset-0.1.0a4 → codeset-0.1.0a5}/mypy.ini +0 -0
  19. {codeset-0.1.0a4 → codeset-0.1.0a5}/noxfile.py +0 -0
  20. {codeset-0.1.0a4 → codeset-0.1.0a5}/release-please-config.json +0 -0
  21. {codeset-0.1.0a4 → codeset-0.1.0a5}/requirements-dev.lock +0 -0
  22. {codeset-0.1.0a4 → codeset-0.1.0a5}/requirements.lock +0 -0
  23. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/__init__.py +0 -0
  24. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_base_client.py +0 -0
  25. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_client.py +0 -0
  26. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_compat.py +0 -0
  27. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_exceptions.py +0 -0
  28. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_files.py +0 -0
  29. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_models.py +0 -0
  30. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_qs.py +0 -0
  31. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_resource.py +0 -0
  32. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_response.py +0 -0
  33. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_streaming.py +0 -0
  34. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_types.py +0 -0
  35. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/__init__.py +0 -0
  36. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_logs.py +0 -0
  37. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_proxy.py +0 -0
  38. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_reflection.py +0 -0
  39. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_resources_proxy.py +0 -0
  40. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_streams.py +0 -0
  41. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_sync.py +0 -0
  42. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_transform.py +0 -0
  43. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_typing.py +0 -0
  44. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/_utils/_utils.py +0 -0
  45. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/lib/.keep +0 -0
  46. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/py.typed +0 -0
  47. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/resources/__init__.py +0 -0
  48. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/resources/health.py +0 -0
  49. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/resources/samples.py +0 -0
  50. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/resources/sessions/__init__.py +0 -0
  51. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/resources/sessions/sessions.py +0 -0
  52. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/resources/sessions/verify.py +0 -0
  53. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/__init__.py +0 -0
  54. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/container_info.py +0 -0
  55. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/error_info.py +0 -0
  56. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/health_check_response.py +0 -0
  57. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/sample_download_params.py +0 -0
  58. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/sample_list_response.py +0 -0
  59. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session.py +0 -0
  60. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_apply_diff_params.py +0 -0
  61. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_apply_diff_response.py +0 -0
  62. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_close_response.py +0 -0
  63. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_create_params.py +0 -0
  64. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_create_response.py +0 -0
  65. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_execute_command_params.py +0 -0
  66. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_execute_command_response.py +0 -0
  67. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_list_response.py +0 -0
  68. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/session_status.py +0 -0
  69. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/sessions/__init__.py +0 -0
  70. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/sessions/job_status.py +0 -0
  71. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/sessions/verify_start_response.py +0 -0
  72. {codeset-0.1.0a4 → codeset-0.1.0a5}/src/codeset/types/sessions/verify_status_response.py +0 -0
  73. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/__init__.py +0 -0
  74. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/api_resources/__init__.py +0 -0
  75. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/api_resources/sessions/__init__.py +0 -0
  76. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/api_resources/sessions/test_verify.py +0 -0
  77. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/api_resources/test_health.py +0 -0
  78. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/api_resources/test_samples.py +0 -0
  79. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/api_resources/test_sessions.py +0 -0
  80. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/conftest.py +0 -0
  81. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/sample_file.txt +0 -0
  82. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_deepcopy.py +0 -0
  83. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_extract_files.py +0 -0
  84. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_files.py +0 -0
  85. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_models.py +0 -0
  86. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_qs.py +0 -0
  87. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_required_args.py +0 -0
  88. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_response.py +0 -0
  89. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_streaming.py +0 -0
  90. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_transform.py +0 -0
  91. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_utils/test_proxy.py +0 -0
  92. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/test_utils/test_typing.py +0 -0
  93. {codeset-0.1.0a4 → codeset-0.1.0a5}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.5"
3
+ }
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.5 (2025-07-01)
4
+
5
+ Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/codeset-ai/codeset-sdk/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([57c47e1](https://github.com/codeset-ai/codeset-sdk/commit/57c47e1c1ac3be473855e7c5f12fef74f582064f))
10
+
3
11
  ## 0.1.0-alpha.4 (2025-06-30)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/codeset-ai/codeset-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codeset
3
- Version: 0.1.0a4
3
+ Version: 0.1.0a5
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
 
@@ -148,7 +148,7 @@ Error codes are as follows:
148
148
 
149
149
  ### Retries
150
150
 
151
- Certain errors are automatically retried 2 times by default, with a short exponential backoff.
151
+ Certain errors are automatically retried 0 times by default, with a short exponential backoff.
152
152
  Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
153
153
  429 Rate Limit, and >=500 Internal errors are all retried by default.
154
154
 
@@ -169,7 +169,7 @@ client.with_options(max_retries=5).health.check()
169
169
 
170
170
  ### Timeouts
171
171
 
172
- By default requests time out after 1 minute. You can configure this with a `timeout` option,
172
+ By default requests time out after 5 minutes. You can configure this with a `timeout` option,
173
173
  which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
174
174
 
175
175
  ```python
@@ -177,7 +177,7 @@ from codeset import Codeset
177
177
 
178
178
  # Configure the default for all requests:
179
179
  client = Codeset(
180
- # 20 seconds (default is 1 minute)
180
+ # 20 seconds (default is 5 minutes)
181
181
  timeout=20.0,
182
182
  )
183
183
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codeset"
3
- version = "0.1.0-alpha.4"
3
+ version = "0.1.0-alpha.5"
4
4
  description = "The official Python library for the codeset API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -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
@@ -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.5" # x-release-please-version
@@ -93,7 +93,7 @@ class TestCodeset:
93
93
  # options that have a default are overridden correctly
94
94
  copied = self.client.copy(max_retries=7)
95
95
  assert copied.max_retries == 7
96
- assert self.client.max_retries == 2
96
+ assert self.client.max_retries == 0
97
97
 
98
98
  copied2 = copied.copy(max_retries=6)
99
99
  assert copied2.max_retries == 6
@@ -692,21 +692,21 @@ class TestCodeset:
692
692
  "remaining_retries,retry_after,timeout",
693
693
  [
694
694
  [3, "20", 20],
695
- [3, "0", 0.5],
696
- [3, "-10", 0.5],
695
+ [3, "0", 0],
696
+ [3, "-10", 0],
697
697
  [3, "60", 60],
698
- [3, "61", 0.5],
698
+ [3, "61", 0],
699
699
  [3, "Fri, 29 Sep 2023 16:26:57 GMT", 20],
700
- [3, "Fri, 29 Sep 2023 16:26:37 GMT", 0.5],
701
- [3, "Fri, 29 Sep 2023 16:26:27 GMT", 0.5],
700
+ [3, "Fri, 29 Sep 2023 16:26:37 GMT", 0],
701
+ [3, "Fri, 29 Sep 2023 16:26:27 GMT", 0],
702
702
  [3, "Fri, 29 Sep 2023 16:27:37 GMT", 60],
703
- [3, "Fri, 29 Sep 2023 16:27:38 GMT", 0.5],
704
- [3, "99999999999999999999999999999999999", 0.5],
705
- [3, "Zun, 29 Sep 2023 16:26:27 GMT", 0.5],
706
- [3, "", 0.5],
707
- [2, "", 0.5 * 2.0],
708
- [1, "", 0.5 * 4.0],
709
- [-1100, "", 8], # test large number potentially overflowing
703
+ [3, "Fri, 29 Sep 2023 16:27:38 GMT", 0],
704
+ [3, "99999999999999999999999999999999999", 0],
705
+ [3, "Zun, 29 Sep 2023 16:26:27 GMT", 0],
706
+ [3, "", 0],
707
+ [2, "", 0 * 2.0],
708
+ [1, "", 0 * 4.0],
709
+ [-1100, "", 0], # test large number potentially overflowing
710
710
  ],
711
711
  )
712
712
  @mock.patch("time.time", mock.MagicMock(return_value=1696004797))
@@ -716,7 +716,7 @@ class TestCodeset:
716
716
  headers = httpx.Headers({"retry-after": retry_after})
717
717
  options = FinalRequestOptions(method="get", url="/foo", max_retries=3)
718
718
  calculated = client._calculate_retry_timeout(remaining_retries, options, headers)
719
- assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
719
+ assert calculated == pytest.approx(timeout, 0 * 0.875) # pyright: ignore[reportUnknownMemberType]
720
720
 
721
721
  @mock.patch("codeset._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
722
722
  @pytest.mark.respx(base_url=base_url)
@@ -901,7 +901,7 @@ class TestAsyncCodeset:
901
901
  # options that have a default are overridden correctly
902
902
  copied = self.client.copy(max_retries=7)
903
903
  assert copied.max_retries == 7
904
- assert self.client.max_retries == 2
904
+ assert self.client.max_retries == 0
905
905
 
906
906
  copied2 = copied.copy(max_retries=6)
907
907
  assert copied2.max_retries == 6
@@ -1515,21 +1515,21 @@ class TestAsyncCodeset:
1515
1515
  "remaining_retries,retry_after,timeout",
1516
1516
  [
1517
1517
  [3, "20", 20],
1518
- [3, "0", 0.5],
1519
- [3, "-10", 0.5],
1518
+ [3, "0", 0],
1519
+ [3, "-10", 0],
1520
1520
  [3, "60", 60],
1521
- [3, "61", 0.5],
1521
+ [3, "61", 0],
1522
1522
  [3, "Fri, 29 Sep 2023 16:26:57 GMT", 20],
1523
- [3, "Fri, 29 Sep 2023 16:26:37 GMT", 0.5],
1524
- [3, "Fri, 29 Sep 2023 16:26:27 GMT", 0.5],
1523
+ [3, "Fri, 29 Sep 2023 16:26:37 GMT", 0],
1524
+ [3, "Fri, 29 Sep 2023 16:26:27 GMT", 0],
1525
1525
  [3, "Fri, 29 Sep 2023 16:27:37 GMT", 60],
1526
- [3, "Fri, 29 Sep 2023 16:27:38 GMT", 0.5],
1527
- [3, "99999999999999999999999999999999999", 0.5],
1528
- [3, "Zun, 29 Sep 2023 16:26:27 GMT", 0.5],
1529
- [3, "", 0.5],
1530
- [2, "", 0.5 * 2.0],
1531
- [1, "", 0.5 * 4.0],
1532
- [-1100, "", 8], # test large number potentially overflowing
1526
+ [3, "Fri, 29 Sep 2023 16:27:38 GMT", 0],
1527
+ [3, "99999999999999999999999999999999999", 0],
1528
+ [3, "Zun, 29 Sep 2023 16:26:27 GMT", 0],
1529
+ [3, "", 0],
1530
+ [2, "", 0 * 2.0],
1531
+ [1, "", 0 * 4.0],
1532
+ [-1100, "", 0], # test large number potentially overflowing
1533
1533
  ],
1534
1534
  )
1535
1535
  @mock.patch("time.time", mock.MagicMock(return_value=1696004797))
@@ -1540,7 +1540,7 @@ class TestAsyncCodeset:
1540
1540
  headers = httpx.Headers({"retry-after": retry_after})
1541
1541
  options = FinalRequestOptions(method="get", url="/foo", max_retries=3)
1542
1542
  calculated = client._calculate_retry_timeout(remaining_retries, options, headers)
1543
- assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
1543
+ assert calculated == pytest.approx(timeout, 0 * 0.875) # pyright: ignore[reportUnknownMemberType]
1544
1544
 
1545
1545
  @mock.patch("codeset._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
1546
1546
  @pytest.mark.respx(base_url=base_url)
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.0-alpha.4"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes