isaacus 0.1.5__tar.gz → 0.2.0__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 (71) hide show
  1. isaacus-0.2.0/.release-please-manifest.json +3 -0
  2. {isaacus-0.1.5 → isaacus-0.2.0}/CHANGELOG.md +25 -0
  3. {isaacus-0.1.5 → isaacus-0.2.0}/PKG-INFO +3 -6
  4. {isaacus-0.1.5 → isaacus-0.2.0}/README.md +2 -5
  5. {isaacus-0.1.5 → isaacus-0.2.0}/pyproject.toml +1 -1
  6. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_models.py +1 -1
  7. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_transform.py +1 -1
  8. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_version.py +1 -1
  9. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/classifications/universal_classification.py +4 -1
  10. isaacus-0.1.5/.release-please-manifest.json +0 -3
  11. {isaacus-0.1.5 → isaacus-0.2.0}/.gitignore +0 -0
  12. {isaacus-0.1.5 → isaacus-0.2.0}/CONTRIBUTING.md +0 -0
  13. {isaacus-0.1.5 → isaacus-0.2.0}/LICENSE +0 -0
  14. {isaacus-0.1.5 → isaacus-0.2.0}/SECURITY.md +0 -0
  15. {isaacus-0.1.5 → isaacus-0.2.0}/api.md +0 -0
  16. {isaacus-0.1.5 → isaacus-0.2.0}/bin/check-release-environment +0 -0
  17. {isaacus-0.1.5 → isaacus-0.2.0}/bin/publish-pypi +0 -0
  18. {isaacus-0.1.5 → isaacus-0.2.0}/examples/.keep +0 -0
  19. {isaacus-0.1.5 → isaacus-0.2.0}/mypy.ini +0 -0
  20. {isaacus-0.1.5 → isaacus-0.2.0}/noxfile.py +0 -0
  21. {isaacus-0.1.5 → isaacus-0.2.0}/release-please-config.json +0 -0
  22. {isaacus-0.1.5 → isaacus-0.2.0}/requirements-dev.lock +0 -0
  23. {isaacus-0.1.5 → isaacus-0.2.0}/requirements.lock +0 -0
  24. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/__init__.py +0 -0
  25. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_base_client.py +0 -0
  26. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_client.py +0 -0
  27. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_compat.py +0 -0
  28. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_constants.py +0 -0
  29. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_exceptions.py +0 -0
  30. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_files.py +0 -0
  31. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_qs.py +0 -0
  32. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_resource.py +0 -0
  33. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_response.py +0 -0
  34. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_streaming.py +0 -0
  35. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_types.py +0 -0
  36. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/__init__.py +0 -0
  37. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_logs.py +0 -0
  38. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_proxy.py +0 -0
  39. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_reflection.py +0 -0
  40. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_streams.py +0 -0
  41. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_sync.py +0 -0
  42. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_typing.py +0 -0
  43. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_utils.py +0 -0
  44. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/lib/.keep +0 -0
  45. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/py.typed +0 -0
  46. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/resources/__init__.py +0 -0
  47. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/resources/classifications/__init__.py +0 -0
  48. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/resources/classifications/classifications.py +0 -0
  49. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/resources/classifications/universal.py +0 -0
  50. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/__init__.py +0 -0
  51. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/classifications/__init__.py +0 -0
  52. {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/classifications/universal_create_params.py +0 -0
  53. {isaacus-0.1.5 → isaacus-0.2.0}/tests/__init__.py +0 -0
  54. {isaacus-0.1.5 → isaacus-0.2.0}/tests/api_resources/__init__.py +0 -0
  55. {isaacus-0.1.5 → isaacus-0.2.0}/tests/api_resources/classifications/__init__.py +0 -0
  56. {isaacus-0.1.5 → isaacus-0.2.0}/tests/api_resources/classifications/test_universal.py +0 -0
  57. {isaacus-0.1.5 → isaacus-0.2.0}/tests/conftest.py +0 -0
  58. {isaacus-0.1.5 → isaacus-0.2.0}/tests/sample_file.txt +0 -0
  59. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_client.py +0 -0
  60. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_deepcopy.py +0 -0
  61. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_extract_files.py +0 -0
  62. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_files.py +0 -0
  63. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_models.py +0 -0
  64. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_qs.py +0 -0
  65. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_required_args.py +0 -0
  66. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_response.py +0 -0
  67. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_streaming.py +0 -0
  68. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_transform.py +0 -0
  69. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_utils/test_proxy.py +0 -0
  70. {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_utils/test_typing.py +0 -0
  71. {isaacus-0.1.5 → isaacus-0.2.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.2.0"
3
+ }
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0 (2025-03-30)
4
+
5
+ Full Changelog: [v0.1.6...v0.2.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.1.6...v0.2.0)
6
+
7
+ ### ⚠ BREAKING CHANGES
8
+
9
+ * **api:** started sorting chunks by score and added `index` field ([#45](https://github.com/isaacus-dev/isaacus-python/issues/45))
10
+
11
+ ### Features
12
+
13
+ * **api:** started sorting chunks by score and added `index` field ([#45](https://github.com/isaacus-dev/isaacus-python/issues/45)) ([c9999cd](https://github.com/isaacus-dev/isaacus-python/commit/c9999cd77abfe0101a3d30536261a43404cfef6d))
14
+
15
+
16
+ ### Chores
17
+
18
+ * fix typos ([#43](https://github.com/isaacus-dev/isaacus-python/issues/43)) ([0667577](https://github.com/isaacus-dev/isaacus-python/commit/066757702f47e403a06cf057f20faa5fa955b135))
19
+
20
+ ## 0.1.6 (2025-03-18)
21
+
22
+ Full Changelog: [v0.1.5...v0.1.6](https://github.com/isaacus-dev/isaacus-python/compare/v0.1.5...v0.1.6)
23
+
24
+ ### Chores
25
+
26
+ * update SDK settings ([#40](https://github.com/isaacus-dev/isaacus-python/issues/40)) ([6423efc](https://github.com/isaacus-dev/isaacus-python/commit/6423efc8ef532dabfe1f7213da5a9e27860a63a9))
27
+
3
28
  ## 0.1.5 (2025-03-17)
4
29
 
5
30
  Full Changelog: [v0.1.4...v0.1.5](https://github.com/isaacus-dev/isaacus-python/compare/v0.1.4...v0.1.5)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: isaacus
3
- Version: 0.1.5
3
+ Version: 0.2.0
4
4
  Summary: The official Python library for the isaacus API
5
5
  Project-URL: Homepage, https://github.com/isaacus-dev/isaacus-python
6
6
  Project-URL: Repository, https://github.com/isaacus-dev/isaacus-python
@@ -46,13 +46,10 @@ The REST API documentation can be found on [docs.isaacus.com](https://docs.isaac
46
46
  ## Installation
47
47
 
48
48
  ```sh
49
- # install from the production repo
50
- pip install git+ssh://git@github.com/isaacus-dev/isaacus-python.git
49
+ # install from PyPI
50
+ pip install isaacus
51
51
  ```
52
52
 
53
- > [!NOTE]
54
- > Once this package is [published to PyPI](https://app.stainless.com/docs/guides/publish), this will become: `pip install isaacus`
55
-
56
53
  ## Usage
57
54
 
58
55
  The full API of this library can be found in [api.md](https://github.com/isaacus-dev/isaacus-python/tree/main/api.md).
@@ -15,13 +15,10 @@ The REST API documentation can be found on [docs.isaacus.com](https://docs.isaac
15
15
  ## Installation
16
16
 
17
17
  ```sh
18
- # install from the production repo
19
- pip install git+ssh://git@github.com/isaacus-dev/isaacus-python.git
18
+ # install from PyPI
19
+ pip install isaacus
20
20
  ```
21
21
 
22
- > [!NOTE]
23
- > Once this package is [published to PyPI](https://app.stainless.com/docs/guides/publish), this will become: `pip install isaacus`
24
-
25
22
  ## Usage
26
23
 
27
24
  The full API of this library can be found in [api.md](api.md).
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "isaacus"
3
- version = "0.1.5"
3
+ version = "0.2.0"
4
4
  description = "The official Python library for the isaacus API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -681,7 +681,7 @@ def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:
681
681
  setattr(typ, "__pydantic_config__", config) # noqa: B010
682
682
 
683
683
 
684
- # our use of subclasssing here causes weirdness for type checkers,
684
+ # our use of subclassing here causes weirdness for type checkers,
685
685
  # so we just pretend that we don't subclass
686
686
  if TYPE_CHECKING:
687
687
  GenericModel = BaseModel
@@ -126,7 +126,7 @@ def _get_annotated_type(type_: type) -> type | None:
126
126
  def _maybe_transform_key(key: str, type_: type) -> str:
127
127
  """Transform the given `data` based on the annotations provided in `type_`.
128
128
 
129
- Note: this function only looks at `Annotated` types that contain `PropertInfo` metadata.
129
+ Note: this function only looks at `Annotated` types that contain `PropertyInfo` metadata.
130
130
  """
131
131
  annotated_type = _get_annotated_type(type_)
132
132
  if annotated_type is None:
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "isaacus"
4
- __version__ = "0.1.5" # x-release-please-version
4
+ __version__ = "0.2.0" # x-release-please-version
@@ -11,6 +11,9 @@ class Chunk(BaseModel):
11
11
  end: int
12
12
  """The end index of the chunk in the original text."""
13
13
 
14
+ index: int
15
+ """The index of the chunk in the list of chunks."""
16
+
14
17
  score: float
15
18
  """
16
19
  The model's score of the likelihood that the query expressed about the chunk is
@@ -37,7 +40,7 @@ class UniversalClassification(BaseModel):
37
40
  """
38
41
  The text as broken into chunks by
39
42
  [semchunk](https://github.com/isaacus-dev/semchunk), each chunk with its own
40
- confidence score.
43
+ confidence score, ordered from highest to lowest score.
41
44
 
42
45
  If no chunking occurred, this will be `null`.
43
46
  """
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.5"
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
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