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.
- isaacus-0.2.0/.release-please-manifest.json +3 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/CHANGELOG.md +25 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/PKG-INFO +3 -6
- {isaacus-0.1.5 → isaacus-0.2.0}/README.md +2 -5
- {isaacus-0.1.5 → isaacus-0.2.0}/pyproject.toml +1 -1
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_models.py +1 -1
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_transform.py +1 -1
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_version.py +1 -1
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/classifications/universal_classification.py +4 -1
- isaacus-0.1.5/.release-please-manifest.json +0 -3
- {isaacus-0.1.5 → isaacus-0.2.0}/.gitignore +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/CONTRIBUTING.md +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/LICENSE +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/SECURITY.md +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/api.md +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/bin/check-release-environment +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/bin/publish-pypi +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/examples/.keep +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/mypy.ini +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/noxfile.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/release-please-config.json +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/requirements-dev.lock +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/requirements.lock +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_base_client.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_client.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_compat.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_constants.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_exceptions.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_files.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_qs.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_resource.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_response.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_streaming.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_types.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_logs.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_proxy.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_reflection.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_streams.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_sync.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_typing.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/_utils/_utils.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/lib/.keep +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/py.typed +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/resources/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/resources/classifications/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/resources/classifications/classifications.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/resources/classifications/universal.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/classifications/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/classifications/universal_create_params.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/api_resources/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/api_resources/classifications/__init__.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/api_resources/classifications/test_universal.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/conftest.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/sample_file.txt +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_client.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_deepcopy.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_extract_files.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_files.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_models.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_qs.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_required_args.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_response.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_streaming.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_transform.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_utils/test_proxy.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/test_utils/test_typing.py +0 -0
- {isaacus-0.1.5 → isaacus-0.2.0}/tests/utils.py +0 -0
@@ -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.
|
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
|
50
|
-
pip install
|
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
|
19
|
-
pip install
|
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).
|
@@ -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
|
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 `
|
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:
|
{isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/classifications/universal_classification.py
RENAMED
@@ -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
|
"""
|
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
|
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
|
{isaacus-0.1.5 → isaacus-0.2.0}/src/isaacus/types/classifications/universal_create_params.py
RENAMED
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
|