codeset 0.1.0a16__tar.gz → 0.1.0a17__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 (100) hide show
  1. codeset-0.1.0a17/.release-please-manifest.json +3 -0
  2. {codeset-0.1.0a16 → codeset-0.1.0a17}/CHANGELOG.md +9 -0
  3. {codeset-0.1.0a16 → codeset-0.1.0a17}/PKG-INFO +1 -1
  4. {codeset-0.1.0a16 → codeset-0.1.0a17}/pyproject.toml +1 -1
  5. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_version.py +1 -1
  6. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/resources/samples.py +38 -4
  7. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/sample_list_params.py +9 -0
  8. codeset-0.1.0a17/src/codeset/types/sample_list_response.py +91 -0
  9. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/api_resources/test_samples.py +6 -0
  10. codeset-0.1.0a16/.release-please-manifest.json +0 -3
  11. codeset-0.1.0a16/src/codeset/types/sample_list_response.py +0 -41
  12. {codeset-0.1.0a16 → codeset-0.1.0a17}/.gitignore +0 -0
  13. {codeset-0.1.0a16 → codeset-0.1.0a17}/CONTRIBUTING.md +0 -0
  14. {codeset-0.1.0a16 → codeset-0.1.0a17}/LICENSE +0 -0
  15. {codeset-0.1.0a16 → codeset-0.1.0a17}/README.md +0 -0
  16. {codeset-0.1.0a16 → codeset-0.1.0a17}/SECURITY.md +0 -0
  17. {codeset-0.1.0a16 → codeset-0.1.0a17}/api.md +0 -0
  18. {codeset-0.1.0a16 → codeset-0.1.0a17}/bin/check-release-environment +0 -0
  19. {codeset-0.1.0a16 → codeset-0.1.0a17}/bin/publish-pypi +0 -0
  20. {codeset-0.1.0a16 → codeset-0.1.0a17}/examples/.keep +0 -0
  21. {codeset-0.1.0a16 → codeset-0.1.0a17}/noxfile.py +0 -0
  22. {codeset-0.1.0a16 → codeset-0.1.0a17}/release-please-config.json +0 -0
  23. {codeset-0.1.0a16 → codeset-0.1.0a17}/requirements-dev.lock +0 -0
  24. {codeset-0.1.0a16 → codeset-0.1.0a17}/requirements.lock +0 -0
  25. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/__init__.py +0 -0
  26. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_base_client.py +0 -0
  27. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_client.py +0 -0
  28. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_compat.py +0 -0
  29. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_constants.py +0 -0
  30. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_exceptions.py +0 -0
  31. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_files.py +0 -0
  32. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_models.py +0 -0
  33. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_qs.py +0 -0
  34. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_resource.py +0 -0
  35. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_response.py +0 -0
  36. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_streaming.py +0 -0
  37. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_types.py +0 -0
  38. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/__init__.py +0 -0
  39. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_compat.py +0 -0
  40. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_datetime_parse.py +0 -0
  41. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_logs.py +0 -0
  42. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_proxy.py +0 -0
  43. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_reflection.py +0 -0
  44. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_resources_proxy.py +0 -0
  45. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_streams.py +0 -0
  46. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_sync.py +0 -0
  47. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_transform.py +0 -0
  48. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_typing.py +0 -0
  49. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/_utils/_utils.py +0 -0
  50. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/lib/.keep +0 -0
  51. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/py.typed +0 -0
  52. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/resources/__init__.py +0 -0
  53. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/resources/datasets.py +0 -0
  54. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/resources/health.py +0 -0
  55. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/resources/sessions/__init__.py +0 -0
  56. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/resources/sessions/sessions.py +0 -0
  57. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/resources/sessions/verify.py +0 -0
  58. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/__init__.py +0 -0
  59. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/container_info.py +0 -0
  60. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/dataset_list_response.py +0 -0
  61. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/error_info.py +0 -0
  62. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/health_check_response.py +0 -0
  63. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/sample_download_params.py +0 -0
  64. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session.py +0 -0
  65. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_close_response.py +0 -0
  66. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_create_params.py +0 -0
  67. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_create_response.py +0 -0
  68. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_execute_command_params.py +0 -0
  69. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_execute_command_response.py +0 -0
  70. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_list_response.py +0 -0
  71. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_status.py +0 -0
  72. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_str_replace_params.py +0 -0
  73. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/session_str_replace_response.py +0 -0
  74. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/sessions/__init__.py +0 -0
  75. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/sessions/job_status.py +0 -0
  76. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/sessions/verify_start_response.py +0 -0
  77. {codeset-0.1.0a16 → codeset-0.1.0a17}/src/codeset/types/sessions/verify_status_response.py +0 -0
  78. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/__init__.py +0 -0
  79. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/api_resources/__init__.py +0 -0
  80. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/api_resources/sessions/__init__.py +0 -0
  81. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/api_resources/sessions/test_verify.py +0 -0
  82. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/api_resources/test_datasets.py +0 -0
  83. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/api_resources/test_health.py +0 -0
  84. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/api_resources/test_sessions.py +0 -0
  85. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/conftest.py +0 -0
  86. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/sample_file.txt +0 -0
  87. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_client.py +0 -0
  88. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_deepcopy.py +0 -0
  89. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_extract_files.py +0 -0
  90. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_files.py +0 -0
  91. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_models.py +0 -0
  92. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_qs.py +0 -0
  93. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_required_args.py +0 -0
  94. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_response.py +0 -0
  95. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_streaming.py +0 -0
  96. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_transform.py +0 -0
  97. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_utils/test_datetime_parse.py +0 -0
  98. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_utils/test_proxy.py +0 -0
  99. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/test_utils/test_typing.py +0 -0
  100. {codeset-0.1.0a16 → codeset-0.1.0a17}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.17"
3
+ }
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.17 (2025-10-13)
4
+
5
+ Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/codeset-ai/codeset-sdk/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([144e105](https://github.com/codeset-ai/codeset-sdk/commit/144e1055278e5a11e3c9632ab6e8849012e280be))
10
+ * **api:** api update ([8f37713](https://github.com/codeset-ai/codeset-sdk/commit/8f37713404d39a21d5fd4f0b4a1a93d059511391))
11
+
3
12
  ## 0.1.0-alpha.16 (2025-10-12)
4
13
 
5
14
  Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/codeset-ai/codeset-sdk/compare/v0.1.0-alpha.15...v0.1.0-alpha.16)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codeset
3
- Version: 0.1.0a16
3
+ Version: 0.1.0a17
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "codeset"
3
- version = "0.1.0-alpha.16"
3
+ version = "0.1.0-alpha.17"
4
4
  description = "The official Python library for the codeset API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.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.16" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.17" # x-release-please-version
@@ -47,6 +47,9 @@ class SamplesResource(SyncAPIResource):
47
47
  self,
48
48
  *,
49
49
  dataset: Optional[str] | Omit = omit,
50
+ page: Optional[int] | Omit = omit,
51
+ page_size: Optional[int] | Omit = omit,
52
+ search: Optional[str] | Omit = omit,
50
53
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
54
  # The extra values given here take precedence over values defined on the client or passed to this method.
52
55
  extra_headers: Headers | None = None,
@@ -55,11 +58,17 @@ class SamplesResource(SyncAPIResource):
55
58
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
56
59
  ) -> SampleListResponse:
57
60
  """
58
- List available samples, optionally filtered by dataset
61
+ List available samples with optional pagination, optionally filtered by dataset
59
62
 
60
63
  Args:
61
64
  dataset: Filter samples by dataset name
62
65
 
66
+ page: Page number (1-based). If not provided, returns all samples
67
+
68
+ page_size: Number of samples per page (max 100). If not provided, returns all samples
69
+
70
+ search: Search for samples by instance_id
71
+
63
72
  extra_headers: Send extra headers
64
73
 
65
74
  extra_query: Add additional query parameters to the request
@@ -75,7 +84,15 @@ class SamplesResource(SyncAPIResource):
75
84
  extra_query=extra_query,
76
85
  extra_body=extra_body,
77
86
  timeout=timeout,
78
- query=maybe_transform({"dataset": dataset}, sample_list_params.SampleListParams),
87
+ query=maybe_transform(
88
+ {
89
+ "dataset": dataset,
90
+ "page": page,
91
+ "page_size": page_size,
92
+ "search": search,
93
+ },
94
+ sample_list_params.SampleListParams,
95
+ ),
79
96
  ),
80
97
  cast_to=SampleListResponse,
81
98
  )
@@ -146,6 +163,9 @@ class AsyncSamplesResource(AsyncAPIResource):
146
163
  self,
147
164
  *,
148
165
  dataset: Optional[str] | Omit = omit,
166
+ page: Optional[int] | Omit = omit,
167
+ page_size: Optional[int] | Omit = omit,
168
+ search: Optional[str] | Omit = omit,
149
169
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
150
170
  # The extra values given here take precedence over values defined on the client or passed to this method.
151
171
  extra_headers: Headers | None = None,
@@ -154,11 +174,17 @@ class AsyncSamplesResource(AsyncAPIResource):
154
174
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
155
175
  ) -> SampleListResponse:
156
176
  """
157
- List available samples, optionally filtered by dataset
177
+ List available samples with optional pagination, optionally filtered by dataset
158
178
 
159
179
  Args:
160
180
  dataset: Filter samples by dataset name
161
181
 
182
+ page: Page number (1-based). If not provided, returns all samples
183
+
184
+ page_size: Number of samples per page (max 100). If not provided, returns all samples
185
+
186
+ search: Search for samples by instance_id
187
+
162
188
  extra_headers: Send extra headers
163
189
 
164
190
  extra_query: Add additional query parameters to the request
@@ -174,7 +200,15 @@ class AsyncSamplesResource(AsyncAPIResource):
174
200
  extra_query=extra_query,
175
201
  extra_body=extra_body,
176
202
  timeout=timeout,
177
- query=await async_maybe_transform({"dataset": dataset}, sample_list_params.SampleListParams),
203
+ query=await async_maybe_transform(
204
+ {
205
+ "dataset": dataset,
206
+ "page": page,
207
+ "page_size": page_size,
208
+ "search": search,
209
+ },
210
+ sample_list_params.SampleListParams,
211
+ ),
178
212
  ),
179
213
  cast_to=SampleListResponse,
180
214
  )
@@ -11,3 +11,12 @@ __all__ = ["SampleListParams"]
11
11
  class SampleListParams(TypedDict, total=False):
12
12
  dataset: Optional[str]
13
13
  """Filter samples by dataset name"""
14
+
15
+ page: Optional[int]
16
+ """Page number (1-based). If not provided, returns all samples"""
17
+
18
+ page_size: Optional[int]
19
+ """Number of samples per page (max 100). If not provided, returns all samples"""
20
+
21
+ search: Optional[str]
22
+ """Search for samples by instance_id"""
@@ -0,0 +1,91 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["SampleListResponse", "Sample"]
10
+
11
+
12
+ class Sample(BaseModel):
13
+ base_commit: str
14
+ """Base commit hash for the sample."""
15
+
16
+ environment_setup_commit: str
17
+ """Environment setup commit hash for the sample."""
18
+
19
+ fail_to_fail: List[str]
20
+ """List of test names that remained FAIL to FAIL."""
21
+
22
+ fail_to_pass: List[str]
23
+ """List of test names that changed from FAIL to PASS."""
24
+
25
+ hints_text: str
26
+ """Hints text for the sample (concatenated issue comments)."""
27
+
28
+ instance_id: str
29
+ """Instance identifier for the sample (e.g., 'psf\\__\\__requests-1234')."""
30
+
31
+ language: str
32
+ """Primary programming language of the sample."""
33
+
34
+ non_code_patch: str
35
+ """Non-code patch for the sample."""
36
+
37
+ pass_to_pass: List[str]
38
+ """List of test names that remained PASS to PASS."""
39
+
40
+ patch: str
41
+ """Code patch (diff) that fixes the bug for the sample."""
42
+
43
+ problem_statement: str
44
+ """Problem statement for the sample (issue title + body)."""
45
+
46
+ repo: str
47
+ """Repository full name for the sample (e.g., 'psf/requests')."""
48
+
49
+ sample_id: str
50
+ """Unique identifier for the sample (e.g., 'traccar-1')."""
51
+
52
+ test_patch: str
53
+ """Test patch (diff) for the sample."""
54
+
55
+ verifier: Literal["test_suite", "static_analysis", "linter", "custom"]
56
+ """The type of verifier used for this sample."""
57
+
58
+ created_at: Optional[datetime] = None
59
+ """Timestamp when the sample was created (UTC)."""
60
+
61
+ dataset: Optional[str] = None
62
+ """Dataset name for the sample."""
63
+
64
+ description: Optional[str] = None
65
+ """A brief description of the sample."""
66
+
67
+ latest: Optional[bool] = None
68
+ """Whether this is the latest version."""
69
+
70
+ version: Optional[int] = None
71
+ """Version number of the sample."""
72
+
73
+ version_description: Optional[str] = None
74
+ """Description of this version."""
75
+
76
+
77
+ class SampleListResponse(BaseModel):
78
+ has_more: bool
79
+ """Indicates if more pages of results are available."""
80
+
81
+ page: int
82
+ """Current page number (1-based)."""
83
+
84
+ page_size: int
85
+ """Number of samples per page."""
86
+
87
+ samples: List[Sample]
88
+ """List of samples for the current page."""
89
+
90
+ total_count: int
91
+ """Total number of samples available."""
@@ -28,6 +28,9 @@ class TestSamples:
28
28
  def test_method_list_with_all_params(self, client: Codeset) -> None:
29
29
  sample = client.samples.list(
30
30
  dataset="dataset",
31
+ page=1,
32
+ page_size=1,
33
+ search="search",
31
34
  )
32
35
  assert_matches_type(SampleListResponse, sample, path=["response"])
33
36
 
@@ -132,6 +135,9 @@ class TestAsyncSamples:
132
135
  async def test_method_list_with_all_params(self, async_client: AsyncCodeset) -> None:
133
136
  sample = await async_client.samples.list(
134
137
  dataset="dataset",
138
+ page=1,
139
+ page_size=1,
140
+ search="search",
135
141
  )
136
142
  assert_matches_type(SampleListResponse, sample, path=["response"])
137
143
 
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.0-alpha.16"
3
- }
@@ -1,41 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List, Optional
4
- from datetime import datetime
5
- from typing_extensions import Literal, TypeAlias
6
-
7
- from .._models import BaseModel
8
-
9
- __all__ = ["SampleListResponse", "SampleListResponseItem"]
10
-
11
-
12
- class SampleListResponseItem(BaseModel):
13
- language: str
14
- """Primary programming language of the sample."""
15
-
16
- sample_id: str
17
- """Unique identifier for the sample (e.g., 'traccar-1')."""
18
-
19
- verifier: Literal["test_suite", "static_analysis", "linter", "custom"]
20
- """The type of verifier used for this sample."""
21
-
22
- created_at: Optional[datetime] = None
23
- """Timestamp when the sample was created (UTC)."""
24
-
25
- dataset: Optional[str] = None
26
- """Dataset name for the sample."""
27
-
28
- description: Optional[str] = None
29
- """A brief description of the sample."""
30
-
31
- latest: Optional[bool] = None
32
- """Whether this is the latest version."""
33
-
34
- version: Optional[int] = None
35
- """Version number of the sample."""
36
-
37
- version_description: Optional[str] = None
38
- """Description of this version."""
39
-
40
-
41
- SampleListResponse: TypeAlias = List[SampleListResponseItem]
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