codeocean 0.9.0__tar.gz → 0.9.1__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.
Files changed (24) hide show
  1. {codeocean-0.9.0 → codeocean-0.9.1}/CHANGELOG.md +3 -1
  2. {codeocean-0.9.0 → codeocean-0.9.1}/PKG-INFO +1 -1
  3. {codeocean-0.9.0 → codeocean-0.9.1}/pyproject.toml +1 -1
  4. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/capsule.py +32 -1
  5. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/data_asset.py +24 -2
  6. {codeocean-0.9.0 → codeocean-0.9.1}/.flake8 +0 -0
  7. {codeocean-0.9.0 → codeocean-0.9.1}/.gitignore +0 -0
  8. {codeocean-0.9.0 → codeocean-0.9.1}/LICENSE +0 -0
  9. {codeocean-0.9.0 → codeocean-0.9.1}/README.md +0 -0
  10. {codeocean-0.9.0 → codeocean-0.9.1}/RELEASE.md +0 -0
  11. {codeocean-0.9.0 → codeocean-0.9.1}/examples/create_data_asset.py +0 -0
  12. {codeocean-0.9.0 → codeocean-0.9.1}/examples/run_capsule.py +0 -0
  13. {codeocean-0.9.0 → codeocean-0.9.1}/examples/run_pipeline.py +0 -0
  14. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/__init__.py +0 -0
  15. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/client.py +0 -0
  16. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/components.py +0 -0
  17. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/computation.py +0 -0
  18. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/enum.py +0 -0
  19. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/error.py +0 -0
  20. {codeocean-0.9.0 → codeocean-0.9.1}/src/codeocean/folder.py +0 -0
  21. {codeocean-0.9.0 → codeocean-0.9.1}/tests/__init__.py +0 -0
  22. {codeocean-0.9.0 → codeocean-0.9.1}/tests/test_client.py +0 -0
  23. {codeocean-0.9.0 → codeocean-0.9.1}/tests/test_error.py +0 -0
  24. {codeocean-0.9.0 → codeocean-0.9.1}/tests/test_package.py +0 -0
@@ -1,10 +1,12 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ ## 0.9.1 (2025-08-29)
5
+ - [#56](https://github.com/codeocean/codeocean-sdk-python/pull/56) fix: update query description in search APIs
6
+
4
7
  ## 0.9.0 (2025-08-05)
5
8
  - [#47](https://github.com/codeocean/codeocean-sdk-python/pull/47) feat: add error handling
6
9
 
7
-
8
10
  ## 0.8.0 (2025-07-11)
9
11
  - [#50](https://github.com/codeocean/codeocean-sdk-python/pull/50) feat: Add Min-Server-Version header support
10
12
  - [#49](https://github.com/codeocean/codeocean-sdk-python/pull/49) feat: Identify AI agents in API requests
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codeocean
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Code Ocean Python SDK
5
5
  Project-URL: Homepage, https://github.com/codeocean/codeocean-sdk-python
6
6
  Project-URL: Issues, https://github.com/codeocean/codeocean-sdk-python/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "codeocean"
7
- version = "0.9.0"
7
+ version = "0.9.1"
8
8
  authors = [
9
9
  { name="Code Ocean", email="dev@codeocean.com" },
10
10
  ]
@@ -140,7 +140,38 @@ class CapsuleSearchParams:
140
140
  query: Optional[str] = dataclass_field(
141
141
  default=None,
142
142
  metadata={
143
- "description": "Search query in free text or structured format (name:... tag:...)"
143
+ "description": """Search expression supporting free text and field:value filters.
144
+ Valid fields:
145
+ - id
146
+ - name
147
+ - doi
148
+ - tag
149
+ - field
150
+ - affiliation
151
+ - journal
152
+ - article
153
+ - author
154
+
155
+ Free text:
156
+ - Matches across weighted fields (name, tags, description, authors, etc.)
157
+
158
+ Syntax rules:
159
+ - Same field repeated = OR
160
+ - Different fields = AND
161
+ - Quotes = exact phrase
162
+ - No explicit OR operator
163
+ - No wildcards (*)
164
+ - Not case sensitive
165
+
166
+ Notes:
167
+ - "description" is not directly searchable; it is covered by free-text matching.
168
+
169
+ Examples:
170
+ - name:RNA-seq tag:genomics
171
+ - name:"single cell analysis"
172
+ - Synergy
173
+ - name:Synergy
174
+ """
144
175
  },
145
176
  )
146
177
  next_token: Optional[str] = dataclass_field(
@@ -538,8 +538,30 @@ class DataAssetSearchParams:
538
538
  query: Optional[str] = field(
539
539
  default=None,
540
540
  metadata={
541
- "description": "Search query in free text or structured format "
542
- "(name:... tag:... run_script:... commit_id:...)",
541
+ "description": """Search expression supporting free text and field:value filters.
542
+ Valid fields:
543
+ - name
544
+ - tag
545
+ - run_script
546
+ - commit_id
547
+ - contained_data_id
548
+
549
+ Free text:
550
+ - Matches across weighted fields (name, tags, description, custom metadata)
551
+
552
+ Syntax rules:
553
+ - Same field repeated = OR
554
+ - Different fields = AND
555
+ - Quotes = exact phrase
556
+ - No explicit OR operator
557
+ - No wildcards (*)
558
+ - Not case sensitive
559
+
560
+ Examples:
561
+ - name:RNA-seq tag:genomics
562
+ - name:"analysis pipeline"
563
+ - name:Synergy
564
+ """
543
565
  },
544
566
  )
545
567
  next_token: Optional[str] = field(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes