hash
stringlengths 40
40
| authorName
stringclasses 42
values | authorEmail
stringclasses 41
values | date
timestamp[ms]date 2021-07-26 09:52:55
2025-07-18 10:19:56
| subject
stringlengths 11
116
| diff
stringlengths 0
987k
|
---|---|---|---|---|---|
cf79aee59cb74b067987238cfbf0be493428b802
|
Remy
| 2025-07-18T10:19:56 |
fix(infra): resources optimization (#3225)
|
diff --git a/chart/env/prod.yaml b/chart/env/prod.yaml
index 18862dd7..b7ca3a2e 100644
--- a/chart/env/prod.yaml
+++ b/chart/env/prod.yaml
@@ -347,2 +347,2 @@ api:
- cpu: 4
- memory: "14Gi"
+ cpu: "900m"
+ memory: "4Gi"
@@ -350,2 +350,2 @@ api:
- cpu: 4
- memory: "14Gi"
+ cpu: "1500m"
+ memory: "6Gi"
@@ -516,2 +516,2 @@ workers:
- cpu: 2
- memory: "14Gi"
+ cpu: "1200m"
+ memory: "10Gi"
|
|
9efbe6f23800c645e1f4a486d5d32dd2c577237a
|
ccl-core
| 2025-07-17T20:55:29 |
Include Audio features in HuggingFace. (#3224)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index cf37c0b0..0922bb65 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -8 +8 @@ from typing import Any, Optional, Union
-from datasets import ClassLabel, Image, LargeList, List, Value
+from datasets import Audio, ClassLabel, Image, LargeList, List, Value
@@ -141,0 +142,10 @@ def feature_to_croissant_field(
+ elif isinstance(feature, Audio):
+ source = get_source(distribution_name, column, add_transform, json_path)
+ if sample_rate := feature.get("sampling_rate"):
+ source["sampling_rate"] = sample_rate
+ return {
+ "@type": "cr:Field",
+ "@id": field_name,
+ "dataType": "sc:AudioObject",
+ "source": source,
+ }
|
|
03e368d7022cf9d07135d00fcc769a43e34c4f4f
|
ccl-core
| 2025-07-17T18:15:15 |
Escape subfields. (#3220)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index 6dfcaacf..cf37c0b0 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -9,0 +10,23 @@ from datasets import ClassLabel, Image, LargeList, List, Value
+NAME_PATTERN_REGEX = "[^a-zA-Z0-9\\-_\\.]"
+JSONPATH_PATTERN_REGEX = re.compile(r"^[a-zA-Z0-9_]+$")
+
+
+def escape_ids(id_to_escape: str, ids: set[str]) -> str:
+ """Escapes IDs and names in Croissant.
+
+ Reasons:
+ - `/` are used in the syntax as delimiters. So we replace them.
+ - Two FileObject/FileSet/RecordSet/Fields cannot have the same ID. So we append a postfix in case it happens.
+
+ Args:
+ id_to_escape: The initial non-escaped ID.
+ ids: The set of already existing IDs.
+ Returns:
+ `str`: The escaped, unique ID or name.
+ """
+ escaped_id = re.sub(NAME_PATTERN_REGEX, "_", id_to_escape)
+ while escaped_id in ids:
+ escaped_id = f"{escaped_id}_0"
+ ids.add(escaped_id)
+ return escaped_id
+
@@ -69,6 +92,6 @@ def escape_jsonpath_key(feature_name: str) -> str:
- if "/" in feature_name or "'" in feature_name or "]" in feature_name or "[" in feature_name:
- escaped_name = re.sub(r"(?<!\\)'", r"\'", feature_name)
- escaped_name = re.sub(r"(?<!\\)\[", r"\[", escaped_name)
- escaped_name = re.sub(r"(?<!\\)\]", r"\]", escaped_name)
- return f"['{escaped_name}']"
- return feature_name
+ if JSONPATH_PATTERN_REGEX.match(feature_name):
+ return feature_name
+ escaped_name = re.sub(r"(?<!\\)'", r"\'", feature_name)
+ escaped_name = re.sub(r"(?<!\\)\[", r"\[", escaped_name)
+ escaped_name = re.sub(r"(?<!\\)\]", r"\]", escaped_name)
+ return f"['{escaped_name}']"
@@ -94,0 +118 @@ def feature_to_croissant_field(
+ existing_ids: set[str],
@@ -135 +159 @@ def feature_to_croissant_field(
- f"{field_name}/{subfeature_name}",
+ f"{field_name}/{escape_ids(subfeature_name, existing_ids)}",
@@ -137,0 +162 @@ def feature_to_croissant_field(
+ existing_ids=existing_ids,
@@ -158 +183,7 @@ def feature_to_croissant_field(
- distribution_name, field_name, column, sub_feature, add_transform=True, json_path=json_path
+ distribution_name,
+ field_name,
+ column,
+ sub_feature,
+ existing_ids=existing_ids,
+ add_transform=True,
+ json_path=json_path,
diff --git a/libs/libcommon/tests/test_croissant_utils.py b/libs/libcommon/tests/test_croissant_utils.py
index 082d7748..1a2d1b45 100644
--- a/libs/libcommon/tests/test_croissant_utils.py
+++ b/libs/libcommon/tests/test_croissant_utils.py
@@ -11,0 +12 @@ from libcommon.croissant_utils import (
+ escape_ids,
@@ -36,0 +38,18 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
[email protected](
+ "id_to_escape, ids, expected_id",
+ [
+ ("valid_id", {"other", "other2"}, "valid_id"),
+ ("id with spaces", set(), "id_with_spaces"),
+ ("a/b/c", set(), "a_b_c"),
+ ("a/b/c", {"a_b_c"}, "a_b_c_0"),
+ ("a/b/c", {"a_b_c", "a_b_c_0"}, "a_b_c_0_0"),
+ ("a@#$b", set(), "a___b"),
+ ("", set(), ""),
+ ("", {""}, "_0"),
+ ],
+)
+def test_escape_ids(id_to_escape: str, ids: set[str], expected_id: str) -> None:
+ """Tests the expected_id function with various inputs."""
+ assert escape_ids(id_to_escape, ids=ids.copy()) == expected_id
+
+
@@ -45,0 +65 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
+ ("feature with spaces", "['feature with spaces']"),
@@ -104 +124 @@ def test_escape_jsonpath_key(feature_name: str, expected_output: str) -> None:
- "transform": [{"jsonPath": "sub-field"}, {"jsonPath": "sub-sub-field"}],
+ "transform": [{"jsonPath": "['sub-field']"}, {"jsonPath": "['sub-sub-field']"}],
@@ -118 +138,3 @@ def test_feature_to_croissant_field(hf_datasets_feature: Any, croissant_field: A
- feature_to_croissant_field("distribution_name", "field_name", "column_name", hf_datasets_feature)
+ feature_to_croissant_field(
+ "distribution_name", "field_name", "column_name", hf_datasets_feature, existing_ids=set()
+ )
diff --git a/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py b/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
index 7b8b2b1e..4bb911a5 100644
--- a/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
+++ b/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
@@ -12 +12 @@ from libcommon.constants import CROISSANT_MAX_CONFIGS
-from libcommon.croissant_utils import feature_to_croissant_field, get_record_set
+from libcommon.croissant_utils import escape_ids, feature_to_croissant_field, get_record_set
@@ -21,22 +20,0 @@ from worker.job_runners.dataset.dataset_job_runner import DatasetJobRunner
-NAME_PATTERN_REGEX = "[^a-zA-Z0-9\\-_\\.]"
-
-
-def _escape_name(name: str, names: set[str]) -> str:
- """Escapes names and IDs in Croissant.
-
- Reasons:
- - `/` are used in the syntax as delimiters. So we replace them.
- - Two FileObject/FileSet/RecordSet/Fields cannot have the same ID. So we append a postfix in case it happens.
-
- Args:
- name: The initial non-escaped name.
- names: The set of already existing names.
- Returns:
- `str`: The escaped name.
- """
- escaped_name = re.sub(NAME_PATTERN_REGEX, "_", name)
- while escaped_name in names:
- escaped_name = f"{escaped_name}_0"
- names.add(escaped_name)
- return escaped_name
-
@@ -58 +36 @@ def get_croissant_crumbs_from_dataset_infos(
- names: set[str] = set(repo_name)
+ ids: set[str] = set(repo_name)
@@ -79 +57 @@ def get_croissant_crumbs_from_dataset_infos(
- distribution_name = _escape_name(f"parquet-files-for-config-{config}", names)
+ distribution_name = escape_ids(f"parquet-files-for-config-{config}", ids)
@@ -93 +71 @@ def get_croissant_crumbs_from_dataset_infos(
- record_set_name = _escape_name(record_set_name, names)
+ record_set_name = escape_ids(record_set_name, ids)
@@ -134,2 +112,2 @@ def get_croissant_crumbs_from_dataset_infos(
- field_name = f"{record_set_name}/{_escape_name(column, fields_names)}"
- field = feature_to_croissant_field(distribution_name, field_name, column, feature)
+ field_name = f"{record_set_name}/{escape_ids(column, fields_names)}"
+ field = feature_to_croissant_field(distribution_name, field_name, column, feature, ids)
|
|
9680713930ec0dcb755414debed0de1cdaf03ef1
|
Arjun Jagdale
| 2025-07-17T15:00:39 |
refactor(tests): use HfApi.update_repo_settings to simplify gated dataset test setup (#3206)
|
diff --git a/jobs/cache_maintenance/tests/utils.py b/jobs/cache_maintenance/tests/utils.py
index 78ccf145..9c97dd19 100644
--- a/jobs/cache_maintenance/tests/utils.py
+++ b/jobs/cache_maintenance/tests/utils.py
@@ -8 +8 @@ from pathlib import Path
-from typing import Any, Optional, Union
+from typing import Literal, Optional, cast
@@ -10,0 +11 @@ import requests
+from huggingface_hub import HfApi
@@ -14,2 +14,0 @@ from huggingface_hub.constants import (
- REPO_TYPES,
- REPO_TYPES_URL_PREFIXES,
@@ -17,2 +15,0 @@ from huggingface_hub.constants import (
-from huggingface_hub.hf_api import HfApi
-from huggingface_hub.utils import hf_raise_for_status
@@ -41,68 +37,0 @@ def get_default_config_split() -> tuple[str, str]:
-def update_repo_settings(
- *,
- repo_id: str,
- private: Optional[bool] = None,
- gated: Optional[str] = None,
- token: Optional[str] = None,
- organization: Optional[str] = None,
- repo_type: Optional[str] = None,
- name: Optional[str] = None,
-) -> Any:
- """Update the settings of a repository.
- Args:
- repo_id (`str`, *optional*):
- A namespace (user or an organization) and a repo name separated
- by a `/`.
- <Tip>
- Version added: 0.5
- </Tip>
- private (`bool`, *optional*):
- Whether the repo should be private.
- gated (`str`, *optional*):
- Whether the repo should request user access.
- Possible values are 'auto' and 'manual'
- token (`str`, *optional*):
- An authentication token (See https://huggingface.co/settings/token)
- repo_type (`str`, *optional*):
- Set to `"dataset"` or `"space"` if uploading to a dataset or
- space, `None` or `"model"` if uploading to a model.
-
- Raises:
- [~`huggingface_hub.utils.RepositoryNotFoundError`]:
- If the repository to download from cannot be found. This may be because it doesn't exist,
- or because it is set to `private` and you do not have access.
-
- Returns:
- `Any`: The HTTP response in json.
- """
- if repo_type not in REPO_TYPES:
- raise ValueError("Invalid repo type")
-
- organization, name = repo_id.split("/") if "/" in repo_id else (None, repo_id)
-
- if organization is None:
- namespace = hf_api.whoami(token)["name"]
- else:
- namespace = organization
-
- path_prefix = f"{hf_api.endpoint}/api/"
- if repo_type in REPO_TYPES_URL_PREFIXES:
- path_prefix += REPO_TYPES_URL_PREFIXES[repo_type]
-
- path = f"{path_prefix}{namespace}/{name}/settings"
-
- json: dict[str, Union[bool, str]] = {}
- if private is not None:
- json["private"] = private
- if gated is not None:
- json["gated"] = gated
-
- r = requests.put(
- path,
- headers={"authorization": f"Bearer {token}"},
- json=json,
- )
- hf_raise_for_status(r)
- return r.json()
-
-
@@ -120 +49,6 @@ def create_empty_hub_dataset_repo(
- update_repo_settings(repo_id=repo_id, token=CI_USER_TOKEN, gated=gated, repo_type=DATASET)
+ HfApi(endpoint=CI_HUB_ENDPOINT).update_repo_settings(
+ repo_id=repo_id,
+ token=CI_USER_TOKEN,
+ gated=cast(Literal["auto", "manual", False], gated),
+ repo_type=DATASET,
+ )
diff --git a/services/admin/tests/fixtures/hub.py b/services/admin/tests/fixtures/hub.py
index 9ad7a675..4f52abb4 100644
--- a/services/admin/tests/fixtures/hub.py
+++ b/services/admin/tests/fixtures/hub.py
@@ -9 +9 @@ from contextlib import contextmanager, suppress
-from typing import Any, Literal, Optional, TypedDict, Union
+from typing import Literal, Optional, TypedDict, cast
@@ -13,3 +13 @@ import requests
-from huggingface_hub.constants import REPO_TYPES, REPO_TYPES_URL_PREFIXES
-from huggingface_hub.hf_api import HfApi
-from huggingface_hub.utils import hf_raise_for_status
+from huggingface_hub import HfApi
@@ -24,69 +21,0 @@ CI_HUB_ENDPOINT = "https://hub-ci.huggingface.co"
-def update_repo_settings(
- hf_api: HfApi,
- repo_id: str,
- *,
- private: Optional[bool] = None,
- gated: Optional[str] = None,
- token: Optional[str] = None,
- organization: Optional[str] = None,
- repo_type: Optional[str] = None,
- name: Optional[str] = None,
-) -> Any:
- """Update the settings of a repository.
- Args:
- repo_id (`str`, *optional*):
- A namespace (user or an organization) and a repo name separated
- by a `/`.
- <Tip>
- Version added: 0.5
- </Tip>
- private (`bool`, *optional*):
- Whether the repo should be private.
- gated (`str`, *optional*):
- Whether the repo should request user access.
- Possible values are 'auto' and 'manual'
- token (`str`, *optional*):
- An authentication token (See https://huggingface.co/settings/token)
- repo_type (`str`, *optional*):
- Set to `"dataset"` or `"space"` if uploading to a dataset or
- space, `None` or `"model"` if uploading to a model.
-
- Raises:
- [~`huggingface_hub.utils.RepositoryNotFoundError`]:
- If the repository to download from cannot be found. This may be because it doesn't exist,
- or because it is set to `private` and you do not have access.
-
- Returns:
- `Any`: The HTTP response in json.
- """
- if repo_type not in REPO_TYPES:
- raise ValueError("Invalid repo type")
-
- organization, name = repo_id.split("/") if "/" in repo_id else (None, repo_id)
-
- if organization is None:
- namespace = hf_api.whoami(token=token)["name"]
- else:
- namespace = organization
-
- path_prefix = f"{hf_api.endpoint}/api/"
- if repo_type in REPO_TYPES_URL_PREFIXES:
- path_prefix += REPO_TYPES_URL_PREFIXES[repo_type]
-
- path = f"{path_prefix}{namespace}/{name}/settings"
-
- json: dict[str, Union[bool, str]] = {}
- if private is not None:
- json["private"] = private
- if gated is not None:
- json["gated"] = gated
-
- r = requests.put(
- path,
- headers={"authorization": f"Bearer {token}"},
- json=json,
- )
- hf_raise_for_status(r)
- return r.json()
-
-
@@ -145 +74,6 @@ def create_hf_dataset_repo(
- update_repo_settings(hf_api, repo_id, token=hf_token, gated=gated, repo_type="dataset")
+ hf_api.update_repo_settings(
+ repo_id=repo_id,
+ token=hf_token,
+ gated=cast(Literal["auto", "manual", False], gated),
+ repo_type="dataset",
+ )
diff --git a/services/worker/tests/fixtures/hub.py b/services/worker/tests/fixtures/hub.py
index c9f9fe5a..45ceacec 100644
--- a/services/worker/tests/fixtures/hub.py
+++ b/services/worker/tests/fixtures/hub.py
@@ -11 +11 @@ from pathlib import Path
-from typing import Any, Literal, Optional, TypedDict, Union
+from typing import Any, Literal, Optional, TypedDict, cast
@@ -16,3 +16 @@ from datasets import Dataset, Features, Value
-from huggingface_hub.constants import REPO_TYPES, REPO_TYPES_URL_PREFIXES
-from huggingface_hub.hf_api import HfApi
-from huggingface_hub.utils import hf_raise_for_status
+from huggingface_hub import HfApi
@@ -35,69 +32,0 @@ def get_default_config_split() -> tuple[str, str]:
-def update_repo_settings(
- *,
- repo_id: str,
- private: Optional[bool] = None,
- gated: Optional[str] = None,
- token: Optional[str] = None,
- organization: Optional[str] = None,
- repo_type: Optional[str] = None,
- name: Optional[str] = None,
-) -> Any:
- """Update the settings of a repository.
-
- Args:
- repo_id (`str`, *optional*):
- A namespace (user or an organization) and a repo name separated
- by a `/`.
- <Tip>
- Version added: 0.5
- </Tip>
- private (`bool`, *optional*):
- Whether the repo should be private.
- gated (`str`, *optional*):
- Whether the repo should request user access.
- Possible values are 'auto' and 'manual'
- token (`str`, *optional*):
- An authentication token (See https://huggingface.co/settings/token)
- repo_type (`str`, *optional*):
- Set to `"dataset"` or `"space"` if uploading to a dataset or
- space, `None` or `"model"` if uploading to a model.
-
- Raises:
- [~`huggingface_hub.utils.RepositoryNotFoundError`]:
- If the repository to download from cannot be found. This may be because it doesn't exist,
- or because it is set to `private` and you do not have access.
-
- Returns:
- `Any`: The HTTP response in json.
- """
- if repo_type not in REPO_TYPES:
- raise ValueError("Invalid repo type")
-
- organization, name = repo_id.split("/") if "/" in repo_id else (None, repo_id)
-
- if organization is None:
- namespace = hf_api.whoami(token)["name"]
- else:
- namespace = organization
-
- path_prefix = f"{hf_api.endpoint}/api/"
- if repo_type in REPO_TYPES_URL_PREFIXES:
- path_prefix += REPO_TYPES_URL_PREFIXES[repo_type]
-
- path = f"{path_prefix}{namespace}/{name}/settings"
-
- json: dict[str, Union[bool, str]] = {}
- if private is not None:
- json["private"] = private
- if gated is not None:
- json["gated"] = gated
-
- r = requests.put(
- path,
- headers={"authorization": f"Bearer {token}"},
- json=json,
- )
- hf_raise_for_status(r)
- return r.json()
-
-
@@ -127,0 +57 @@ def create_hub_dataset_repo(
+
@@ -129 +59,7 @@ def create_hub_dataset_repo(
- update_repo_settings(repo_id=repo_id, token=CI_USER_TOKEN, gated=gated, repo_type=DATASET)
+ HfApi(endpoint=CI_HUB_ENDPOINT).update_repo_settings(
+ repo_id=repo_id,
+ token=CI_USER_TOKEN,
+ gated=cast(Literal["auto", "manual", False], gated),
+ repo_type=DATASET,
+ )
+
|
|
640f1f3c923543d8f6c5bebb185c45d79f00ff48
|
Quentin Lhoest
| 2025-07-15T14:17:39 |
bump datasets for json (#3222)
|
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index fa10d964..3774e774 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -695,2 +695,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1536 +1536 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index 1aeb29a5..b16ded80 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -627,2 +627,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1213 +1213 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index aa0f31f9..effd4f82 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -627,2 +627,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1213 +1213 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index 89931b71..8b3a63bd 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -617,2 +617,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1227 +1227 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index 62f3c019..70c98c80 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -653,2 +653,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -4159 +4159 @@ python-versions = "3.9.18"
-content-hash = "8acfdbeec70806a00f966dbe44aefd78ba26fb0ad8a9418bef5c89545ff8d36d"
+content-hash = "60fe3d4c81ea146fca20eed29f519967db250f7e252aa1da37ed2e3cc3db6a24"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index c93891c1..1c3de4a8 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12 +12 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index 73a3665c..7bace3f3 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -642,2 +642,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1309 +1309 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index 38a0a608..e0bd0b7a 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -642,2 +642,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1329 +1329 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index dd3eb8d0..6e38dfe6 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -650,2 +650,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1297 +1297 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index d5f52cbe..2e0f44fe 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -629,2 +629,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1280 +1280 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index db5a416c..f46c3e3b 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -642,2 +642,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1356 +1356 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index 0d675879..e5685e11 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -585 +585 @@ name = "datasets"
-version = "4.0.0.dev0"
+version = "4.0.1.dev0"
@@ -606,0 +607 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
+torch = {version = ">=2.7.0", optional = true, markers = "extra == \"audio\""}
@@ -612 +613 @@ xxhash = "*"
-audio = ["soundfile (>=0.12.1)", "torchcodec (>=0.4.0)"]
+audio = ["soundfile (>=0.12.1)", "torch (>=2.7.0)", "torchcodec (>=0.4.0)"]
@@ -629,2 +630,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1200 +1200,0 @@ files = [
-markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1276 +1276 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
@@ -1449 +1448,0 @@ files = [
-markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1597 +1595,0 @@ groups = ["main"]
-markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3125 +3122,0 @@ groups = ["main"]
-markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3216 +3213 @@ groups = ["main"]
-markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
+markers = "sys_platform != \"darwin\" and platform_machine == \"aarch64\" or sys_platform != \"linux\" and sys_platform != \"darwin\""
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index 56e309ea..efd08801 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -950,2 +950,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
-resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
+resolved_reference = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44"
@@ -1679 +1679 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a4384dc9484ae9c3100f0fc594cd7773a5b8b44", extras = ["audio", "vision"]}
|
|
7f717292da41f8ac1cd8e2890f0890d670b7562a
|
Quentin Lhoest
| 2025-07-15T14:15:27 |
Allow search to download xet files (#3221)
|
diff --git a/chart/templates/_env/_envDatasetsBased.tpl b/chart/templates/_env/_envDatasetsBased.tpl
deleted file mode 100644
index 5ff79854..00000000
--- a/chart/templates/_env/_envDatasetsBased.tpl
+++ /dev/null
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: Apache-2.0
-# Copyright 2022 The HuggingFace Authors.
-
-{{- define "envDatasetsBased" -}}
-# the size should remain so small that we don't need to worry about putting it on an external storage
-# note that the /tmp directory is not shared among the pods
-- name: HF_MODULES_CACHE
- value: "/tmp/modules-cache"
-- name: HF_DATASETS_TRUST_REMOTE_CODE
- value: "0"
-{{- end -}}
-
diff --git a/chart/templates/services/search/_container.tpl b/chart/templates/services/search/_container.tpl
index 5d9f8f05..a24f1a9a 100644
--- a/chart/templates/services/search/_container.tpl
+++ b/chart/templates/services/search/_container.tpl
@@ -18,0 +19,3 @@
+ - name: HF_HOME
+ value: "/tmp/hf"
+ # ^ensure the temporary files are created in /tmp, which is writable
diff --git a/chart/templates/worker/_container.tpl b/chart/templates/worker/_container.tpl
index 3064be80..191d8b6a 100644
--- a/chart/templates/worker/_container.tpl
+++ b/chart/templates/worker/_container.tpl
@@ -13 +12,0 @@
- {{ include "envDatasetsBased" . | nindent 2 }}
|
|
49d78b9cdd7dc38ea398ff624a9b2eebbe32b4af
|
Arjun Dinesh Jagdale
| 2025-07-11T18:31:36 |
test: add unit tests for get_previous_step_or_raise (#1908) (#3218)
|
diff --git a/libs/libcommon/tests/test_simple_cache.py b/libs/libcommon/tests/test_simple_cache.py
index 11ad0d32..9434fc21 100644
--- a/libs/libcommon/tests/test_simple_cache.py
+++ b/libs/libcommon/tests/test_simple_cache.py
@@ -31,0 +32 @@ from libcommon.simple_cache import (
+ get_previous_step_or_raise,
@@ -58 +59,3 @@ from .utils import (
-def cache_mongo_resource_autouse(cache_mongo_resource: CacheMongoResource) -> CacheMongoResource:
+def cache_mongo_resource_autouse(
+ cache_mongo_resource: CacheMongoResource,
+) -> CacheMongoResource:
@@ -75 +78,5 @@ def test_insert_null_values() -> None:
- kind=kind, dataset=dataset_a, dataset_git_revision=dataset_git_revision_a, config=config, split=split
+ kind=kind,
+ dataset=dataset_a,
+ dataset_git_revision=dataset_git_revision_a,
+ config=config,
+ split=split,
@@ -261 +268,7 @@ def test_upsert_response_types() -> None:
- now.year, now.month, now.day, now.hour, now.minute, now.second, now.microsecond // 1000 * 1000
+ now.year,
+ now.month,
+ now.day,
+ now.hour,
+ now.minute,
+ now.second,
+ now.microsecond // 1000 * 1000,
@@ -797 +810,2 @@ NAMES_RESPONSE_OK = ResponseSpec(
- content={NAMES_FIELD: [{NAME_FIELD: name} for name in NAMES]}, http_status=HTTPStatus.OK
+ content={NAMES_FIELD: [{NAME_FIELD: name} for name in NAMES]},
+ http_status=HTTPStatus.OK,
@@ -933,0 +948,64 @@ def test_get_datasets_with_last_updated_kind(entries: list[Entry], expected_data
+
+
+def test_get_previous_step_or_raise_success() -> None:
+ kind = CACHE_KIND
+ dataset = DATASET_NAME
+ config = "test_config"
+ split = "test_split"
+ content = {"key": "value"}
+
+ upsert_response(
+ kind=kind,
+ dataset=dataset,
+ dataset_git_revision=REVISION_NAME,
+ config=config,
+ split=split,
+ content=content,
+ http_status=HTTPStatus.OK,
+ )
+
+ try:
+ response = get_previous_step_or_raise(kind=kind, dataset=dataset, config=config, split=split)
+ assert response["http_status"] == HTTPStatus.OK
+ assert response["content"] == content
+ finally:
+ delete_response(kind=kind, dataset=dataset, config=config, split=split)
+
+
+def test_get_previous_step_or_raise_not_found() -> None:
+ kind = "missing_kind"
+ dataset = "missing_dataset"
+ config = "missing_config"
+ split = "missing_split"
+
+ delete_response(kind=kind, dataset=dataset, config=config, split=split)
+ with pytest.raises(CachedArtifactNotFoundError):
+ get_previous_step_or_raise(kind=kind, dataset=dataset, config=config, split=split)
+
+
+def test_get_previous_step_or_raise_error_status() -> None:
+ kind = CACHE_KIND
+ dataset = "error_dataset"
+ config = "error_config"
+ split = "error_split"
+ content = {"error": "failure"}
+
+ upsert_response(
+ kind=kind,
+ dataset=dataset,
+ dataset_git_revision=REVISION_NAME,
+ config=config,
+ split=split,
+ content=content,
+ http_status=HTTPStatus.INTERNAL_SERVER_ERROR,
+ error_code="some_error",
+ details={"error": "failure"},
+ )
+
+ try:
+ with pytest.raises(CachedArtifactError) as exc_info:
+ get_previous_step_or_raise(kind=kind, dataset=dataset, config=config, split=split)
+ assert exc_info.value.cache_entry_with_details["http_status"] == HTTPStatus.INTERNAL_SERVER_ERROR
+ assert exc_info.value.cache_entry_with_details["content"] == content
+ finally:
+ delete_response(kind=kind, dataset=dataset, config=config, split=split)
|
|
7fa92d676a9986694e82b19d21b7db5d92054df3
|
Arjun Dinesh Jagdale
| 2025-07-11T13:40:42 |
refactor(config): replace get_empty_str_list with CONSTANT.copy in ParquetAndInfoConfig (#1522) (#3219)
|
diff --git a/libs/libcommon/src/libcommon/orchestrator.py b/libs/libcommon/src/libcommon/orchestrator.py
index aa8c9039..b21d4738 100644
--- a/libs/libcommon/src/libcommon/orchestrator.py
+++ b/libs/libcommon/src/libcommon/orchestrator.py
@@ -124,0 +125,3 @@ class Task(ABC):
+DEFAULT_JOB_INFOS: list[JobInfo] = []
+
+
@@ -127 +130 @@ class CreateJobsTask(Task):
- job_infos: list[JobInfo] = field(default_factory=list)
+ job_infos: list[JobInfo] = field(default_factory=DEFAULT_JOB_INFOS.copy)
@@ -250 +253,3 @@ class DeleteDatasetParquetRefBranchTask(Task):
- repo_id=self.dataset, branch="refs/convert/parquet", repo_type="dataset"
+ repo_id=self.dataset,
+ branch="refs/convert/parquet",
+ repo_type="dataset",
@@ -280 +285,3 @@ class DeleteDatasetDuckdbRefBranchTask(Task):
- repo_id=self.dataset, branch="refs/convert/duckdb", repo_type="dataset"
+ repo_id=self.dataset,
+ branch="refs/convert/duckdb",
+ repo_type="dataset",
@@ -311 +318,3 @@ class UpdateRevisionOfDatasetCacheEntriesTask(Task):
- dataset=self.dataset, old_revision=self.old_revision, new_revision=self.new_revision
+ dataset=self.dataset,
+ old_revision=self.old_revision,
+ new_revision=self.new_revision,
@@ -693 +702,4 @@ class DatasetBackfillPlan(Plan):
- self, processing_step: ProcessingStep, config: Optional[str] = None, split: Optional[str] = None
+ self,
+ processing_step: ProcessingStep,
+ config: Optional[str] = None,
+ split: Optional[str] = None,
@@ -846 +858,4 @@ class DatasetBackfillPlan(Plan):
- difficulty = min(DEFAULT_DIFFICULTY_MAX, difficulty + failed_runs * DIFFICULTY_BONUS_BY_FAILED_RUNS)
+ difficulty = min(
+ DEFAULT_DIFFICULTY_MAX,
+ difficulty + failed_runs * DIFFICULTY_BONUS_BY_FAILED_RUNS,
+ )
@@ -963 +978,3 @@ class SmartDatasetUpdatePlan(Plan):
- dataset=self.dataset, old_revision=self.old_revision, new_revision=self.revision
+ dataset=self.dataset,
+ old_revision=self.old_revision,
+ new_revision=self.revision,
@@ -1007 +1024,5 @@ class SmartDatasetUpdatePlan(Plan):
- f"datasets/{self.dataset}/README.md", revision=self.revision, mode="r", newline="", encoding="utf-8"
+ f"datasets/{self.dataset}/README.md",
+ revision=self.revision,
+ mode="r",
+ newline="",
+ encoding="utf-8",
@@ -1063 +1084,3 @@ def remove_dataset(
- dataset: str, storage_clients: Optional[list[StorageClient]] = None, committer_hf_token: Optional[str] = None
+ dataset: str,
+ storage_clients: Optional[list[StorageClient]] = None,
+ committer_hf_token: Optional[str] = None,
@@ -1076 +1099,5 @@ def remove_dataset(
- plan = DatasetRemovalPlan(dataset=dataset, storage_clients=storage_clients, committer_hf_token=committer_hf_token)
+ plan = DatasetRemovalPlan(
+ dataset=dataset,
+ storage_clients=storage_clients,
+ committer_hf_token=committer_hf_token,
+ )
@@ -1236 +1263,4 @@ def finish_job(
- kind=processing_step.cache_kind, dataset=params["dataset"], config=params["config"], split=params["split"]
+ kind=processing_step.cache_kind,
+ dataset=params["dataset"],
+ config=params["config"],
+ split=params["split"],
@@ -1276 +1306,3 @@ def has_pending_ancestor_jobs(
- dataset: str, processing_step_name: str, processing_graph: ProcessingGraph = processing_graph
+ dataset: str,
+ processing_step_name: str,
+ processing_graph: ProcessingGraph = processing_graph,
diff --git a/services/worker/src/worker/config.py b/services/worker/src/worker/config.py
index dd888d54..3116279a 100644
--- a/services/worker/src/worker/config.py
+++ b/services/worker/src/worker/config.py
@@ -56,4 +55,0 @@ WORKER_STATE_FILE_PATH = None
-def get_empty_str_list() -> list[str]:
- return []
-
-
@@ -84 +80,2 @@ class WorkerConfig:
- name="HEARTBEAT_INTERVAL_SECONDS", default=WORKER_HEARTBEAT_INTERVAL_SECONDS
+ name="HEARTBEAT_INTERVAL_SECONDS",
+ default=WORKER_HEARTBEAT_INTERVAL_SECONDS,
@@ -87 +84,2 @@ class WorkerConfig:
- name="KILL_LONG_JOB_INTERVAL_SECONDS", default=WORKER_KILL_LONG_JOB_INTERVAL_SECONDS
+ name="KILL_LONG_JOB_INTERVAL_SECONDS",
+ default=WORKER_KILL_LONG_JOB_INTERVAL_SECONDS,
@@ -90 +88,2 @@ class WorkerConfig:
- name="KILL_ZOMBIES_INTERVAL_SECONDS", default=WORKER_KILL_ZOMBIES_INTERVAL_SECONDS
+ name="KILL_ZOMBIES_INTERVAL_SECONDS",
+ default=WORKER_KILL_ZOMBIES_INTERVAL_SECONDS,
@@ -93 +92,2 @@ class WorkerConfig:
- name="MAX_JOB_DURATION_SECONDS", default=WORKER_MAX_JOB_DURATION_SECONDS
+ name="MAX_JOB_DURATION_SECONDS",
+ default=WORKER_MAX_JOB_DURATION_SECONDS,
@@ -170 +170,4 @@ class OptInOutUrlsScanConfig:
- columns_max_number=env.int(name="COLUMNS_MAX_NUMBER", default=OPT_IN_OUT_URLS_SCAN_COLUMNS_MAX_NUMBER),
+ columns_max_number=env.int(
+ name="COLUMNS_MAX_NUMBER",
+ default=OPT_IN_OUT_URLS_SCAN_COLUMNS_MAX_NUMBER,
+ ),
@@ -172 +175,2 @@ class OptInOutUrlsScanConfig:
- name="MAX_CONCURRENT_REQUESTS_NUMBER", default=OPT_IN_OUT_URLS_SCAN_MAX_CONCURRENT_REQUESTS_NUMBER
+ name="MAX_CONCURRENT_REQUESTS_NUMBER",
+ default=OPT_IN_OUT_URLS_SCAN_MAX_CONCURRENT_REQUESTS_NUMBER,
@@ -175 +179,2 @@ class OptInOutUrlsScanConfig:
- name="MAX_REQUESTS_PER_SECOND", default=OPT_IN_OUT_URLS_SCAN_MAX_REQUESTS_PER_SECOND
+ name="MAX_REQUESTS_PER_SECOND",
+ default=OPT_IN_OUT_URLS_SCAN_MAX_REQUESTS_PER_SECOND,
@@ -181 +186,2 @@ class OptInOutUrlsScanConfig:
- name="URLS_NUMBER_PER_BATCH", default=OPT_IN_OUT_URLS_SCAN_URLS_NUMBER_PER_BATCH
+ name="URLS_NUMBER_PER_BATCH",
+ default=OPT_IN_OUT_URLS_SCAN_URLS_NUMBER_PER_BATCH,
@@ -203 +209,10 @@ class PresidioEntitiesScanConfig:
- name="COLUMNS_MAX_NUMBER", default=PRESIDIO_ENTITIES_SCAN_COLUMNS_MAX_NUMBER
+ name="COLUMNS_MAX_NUMBER",
+ default=PRESIDIO_ENTITIES_SCAN_COLUMNS_MAX_NUMBER,
+ ),
+ max_text_length=env.int(
+ name="MAX_TEXT_LENGTH",
+ default=PRESIDIO_ENTITIES_SCAN_MAX_TEXT_LENGTH,
+ ),
+ rows_max_number=env.int(
+ name="ROWS_MAX_NUMBER",
+ default=PRESIDIO_ENTITIES_SCAN_ROWS_MAX_NUMBER,
@@ -205,2 +219,0 @@ class PresidioEntitiesScanConfig:
- max_text_length=env.int(name="MAX_TEXT_LENGTH", default=PRESIDIO_ENTITIES_SCAN_MAX_TEXT_LENGTH),
- rows_max_number=env.int(name="ROWS_MAX_NUMBER", default=PRESIDIO_ENTITIES_SCAN_ROWS_MAX_NUMBER),
@@ -216,0 +230 @@ PARQUET_AND_INFO_URL_TEMPLATE = "/datasets/%s/resolve/%s/%s"
+PARQUET_AND_INFO_FULLY_CONVERTED_DATASETS: list[str] = []
@@ -226,0 +241 @@ class ParquetAndInfoConfig:
+ fully_converted_datasets: list[str] = field(default_factory=PARQUET_AND_INFO_FULLY_CONVERTED_DATASETS.copy)
@@ -235 +250,2 @@ class ParquetAndInfoConfig:
- name="MAX_DATASET_SIZE_BYTES", default=PARQUET_AND_INFO_MAX_DATASET_SIZE_BYTES
+ name="MAX_DATASET_SIZE_BYTES",
+ default=PARQUET_AND_INFO_MAX_DATASET_SIZE_BYTES,
@@ -238 +254,2 @@ class ParquetAndInfoConfig:
- name="MAX_ROW_GROUP_BYTE_SIZE_FOR_COPY", default=PARQUET_AND_INFO_MAX_ROW_GROUP_BYTE_SIZE_FOR_COPY
+ name="MAX_ROW_GROUP_BYTE_SIZE_FOR_COPY",
+ default=PARQUET_AND_INFO_MAX_ROW_GROUP_BYTE_SIZE_FOR_COPY,
@@ -305 +322,4 @@ class DescriptiveStatisticsConfig:
- parquet_revision = env.str(name="PARQUET_AND_INFO_TARGET_REVISION", default=PARQUET_AND_INFO_TARGET_REVISION)
+ parquet_revision = env.str(
+ name="PARQUET_AND_INFO_TARGET_REVISION",
+ default=PARQUET_AND_INFO_TARGET_REVISION,
+ )
@@ -308 +328,4 @@ class DescriptiveStatisticsConfig:
- cache_directory=env.str(name="CACHE_DIRECTORY", default=DESCRIPTIVE_STATISTICS_CACHE_DIRECTORY),
+ cache_directory=env.str(
+ name="CACHE_DIRECTORY",
+ default=DESCRIPTIVE_STATISTICS_CACHE_DIRECTORY,
+ ),
@@ -311 +334,2 @@ class DescriptiveStatisticsConfig:
- name="MAX_SPLIT_SIZE_BYTES", default=DESCRIPTIVE_STATISTICS_MAX_SPLIT_SIZE_BYTES
+ name="MAX_SPLIT_SIZE_BYTES",
+ default=DESCRIPTIVE_STATISTICS_MAX_SPLIT_SIZE_BYTES,
|
|
bae070f2cbc3d2e74f1e4f9fa89afd2131b197b1
|
Quentin Lhoest
| 2025-07-09T11:42:18 |
worker loop timeout (#3216)
|
diff --git a/services/worker/src/worker/executor.py b/services/worker/src/worker/executor.py
index ae798233..a66b3376 100644
--- a/services/worker/src/worker/executor.py
+++ b/services/worker/src/worker/executor.py
@@ -76 +76 @@ class WorkerExecutor:
- return OutputExecutor(start_worker_loop_command, banner, timeout=20)
+ return OutputExecutor(start_worker_loop_command, banner, timeout=60)
|
|
a8ae77a6980456bb1f37c2c76da1b8c578d6e694
|
Quentin Lhoest
| 2025-07-09T11:31:05 |
fix fixed length list (#3215)
|
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index cdb63553..362cf266 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -1271 +1271,2 @@ def backward_compat_features(
- return [backward_compat_features(features_dict["feature"])]
+ if "length" not in features_dict or int(features_dict["length"]) == -1:
+ return [backward_compat_features(features_dict["feature"])]
|
|
94932935611a05a5f9c9de70aced7deb8400562f
|
Quentin Lhoest
| 2025-07-09T10:39:16 |
Backward compat list (#3214)
|
diff --git a/.github/workflows/_e2e_tests.yml b/.github/workflows/_e2e_tests.yml
index 94a95153..68355768 100644
--- a/.github/workflows/_e2e_tests.yml
+++ b/.github/workflows/_e2e_tests.yml
@@ -9 +9 @@ env:
- poetry-version: "1.8.2"
+ poetry-version: "2.1.3"
diff --git a/.github/workflows/_quality-python.yml b/.github/workflows/_quality-python.yml
index 36bd80fa..e8695d7f 100644
--- a/.github/workflows/_quality-python.yml
+++ b/.github/workflows/_quality-python.yml
@@ -15 +15 @@ env:
- poetry-version: "1.8.2"
+ poetry-version: "2.1.3"
@@ -37 +37 @@ jobs:
- run: poetry lock --no-update --check
+ run: poetry check
diff --git a/.github/workflows/_unit-tests-python.yml b/.github/workflows/_unit-tests-python.yml
index 7bf907f4..704b4814 100644
--- a/.github/workflows/_unit-tests-python.yml
+++ b/.github/workflows/_unit-tests-python.yml
@@ -17 +17 @@ env:
- poetry-version: "1.8.2"
+ poetry-version: "2.1.3"
diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md
index c5aacd8c..205de3ad 100644
--- a/DEVELOPER_GUIDE.md
+++ b/DEVELOPER_GUIDE.md
@@ -40 +40 @@ Install Poetry with [pipx](https://pipx.pypa.io/stable/installation/):
-pipx install poetry==1.8.2
+pipx install poetry==2.1.3
@@ -45,2 +45,2 @@ poetry --version
-pipx install poetry==1.8.2 [email protected]
[email protected] --version
+pipx install poetry==2.1.3 [email protected]
[email protected] --version
@@ -56 +56 @@ or
[email protected] env use 3.9.18
[email protected] env use 3.9.18
@@ -113 +113 @@ Install Poetry with [pipx](https://pipx.pypa.io/stable/installation/):
-pipx install poetry==1.8.2
+pipx install poetry==2.1.3
@@ -118,2 +118,2 @@ poetry --version
-pipx install poetry==1.8.2 [email protected]
[email protected] --version
+pipx install poetry==2.1.3 [email protected]
[email protected] --version
@@ -142 +142 @@ or
[email protected] env use 3.9.18
[email protected] env use 3.9.18
diff --git a/docs/Makefile b/docs/Makefile
index 3ae2424d..0b1945da 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -2 +2 @@ BUILD_DIR?=~/tmp/doc-dataset-viewer
-POETRY := $(shell command -v [email protected] 2> /dev/null)
+POETRY := $(shell command -v [email protected] 2> /dev/null)
diff --git a/docs/poetry.lock b/docs/poetry.lock
index 817b93a8..04ca2616 100644
--- a/docs/poetry.lock
+++ b/docs/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -19 +20 @@ tests = ["attrs[tests-no-zope]", "zope.interface"]
-tests-no-zope = ["cloudpickle", "cloudpickle", "hypothesis", "hypothesis", "mypy (>=0.971,<0.990)", "mypy (>=0.971,<0.990)", "pympler", "pympler", "pytest (>=4.3.0)", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-mypy-plugins", "pytest-xdist[psutil]", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "hypothesis", "mypy (>=0.971,<0.990) ; platform_python_implementation == \"CPython\"", "mypy (>=0.971,<0.990) ; platform_python_implementation == \"CPython\"", "pympler", "pympler", "pytest (>=4.3.0)", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]", "pytest-xdist[psutil]"]
@@ -26,0 +28 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -63 +65 @@ colorama = ["colorama (>=0.4.3)"]
-d = ["aiohttp (>=3.7.4)", "aiohttp (>=3.7.4,!=3.9.0)"]
+d = ["aiohttp (>=3.7.4) ; sys_platform != \"win32\" or implementation_name != \"pypy\"", "aiohttp (>=3.7.4,!=3.9.0) ; sys_platform == \"win32\" and implementation_name == \"pypy\""]
@@ -72,0 +75 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -83,0 +87 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -182,0 +187 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -196,0 +202,2 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main"]
+markers = "platform_system == \"Windows\""
@@ -207,0 +215 @@ python-versions = "*"
+groups = ["main"]
@@ -221,0 +230 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -230 +239 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8)", "pyt
-typing = ["typing-extensions (>=4.8)"]
+typing = ["typing-extensions (>=4.8) ; python_version < \"3.11\""]
@@ -237,0 +247 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -272,0 +283 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -286,0 +298 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -296 +308 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -303,0 +316 @@ python-versions = "*"
+groups = ["main"]
@@ -327,0 +341 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -361,0 +376 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -372,0 +388 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -391,0 +408 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -411,0 +429 @@ python-versions = "*"
+groups = ["main"]
@@ -422,0 +441 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -443,0 +463 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -454,0 +475 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -465,0 +487 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -480,0 +503 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -516,0 +540,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"win32\" and platform_python_implementation != \"PyPy\""
@@ -539,0 +565 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -588,0 +615 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -609,0 +637 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -620,0 +649 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -631,0 +661 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -651,0 +682 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -666,0 +698 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -677,0 +710 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -684 +717 @@ files = [
-brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"]
+brotli = ["brotli (>=1.0.9) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\""]
@@ -694,0 +728 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -730 +764 @@ watchmedo = ["PyYAML (>=3.10)"]
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/e2e/poetry.lock b/e2e/poetry.lock
index 35a109d0..ca9951a2 100644
--- a/e2e/poetry.lock
+++ b/e2e/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -22,2 +23,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -31,0 +33 @@ python-versions = "*"
+groups = ["dev"]
@@ -42,0 +45 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -63,0 +67 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -74,0 +79 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -158,0 +164,2 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["dev"]
+markers = "platform_system == \"Windows\" or sys_platform == \"win32\""
@@ -169,0 +177 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -191,0 +200 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -202,0 +212 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -216,0 +227 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -231,0 +243 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -266,0 +279 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -280,0 +294 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -290 +304 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -297,0 +312 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -369,0 +385 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -380 +396 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -383 +399 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -390,0 +407 @@ python-versions = ">=3.8.0"
+groups = ["dev"]
@@ -425,0 +443 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -436,0 +455 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -447,0 +467 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -464,0 +485 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -482,0 +504 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -502,0 +525 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -528,0 +552 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -597,0 +622 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -616,0 +642 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -627,0 +654 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -675 +702 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -678 +705 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -685,0 +713 @@ python-versions = "*"
+groups = ["dev"]
@@ -757,0 +786 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -804,0 +834 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -815,0 +846 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -831,0 +863 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -842,0 +875 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -853,0 +887 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -864,0 +899 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -878,0 +914 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -906,0 +943 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -925,0 +963 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -940,0 +979 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -954,0 +994 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -961 +1001 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -968,0 +1009 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -982,0 +1024 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1004,0 +1047 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1024,0 +1068 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -1073,0 +1118 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1094,0 +1140 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1112,0 +1159 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1138,0 +1186 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -1149,0 +1198 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -1160,0 +1210 @@ python-versions = "*"
+groups = ["dev"]
@@ -1171,0 +1222 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1185,0 +1237 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -1204,0 +1257 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -1215,0 +1269 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1226,0 +1281 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1246,0 +1302 @@ python-versions = "*"
+groups = ["dev"]
@@ -1260,0 +1317 @@ python-versions = "*"
+groups = ["dev"]
@@ -1271,0 +1329 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1282,0 +1341 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1296,0 +1356 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1303 +1363 @@ files = [
-brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"]
+brotli = ["brotli (>=1.0.9) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\""]
@@ -1313,0 +1374 @@ python-versions = "*"
+groups = ["dev"]
@@ -1320 +1381 @@ files = [
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index ff139b0e..fa10d964 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -51,0 +55 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -141 +145 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -148,0 +153 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -162,0 +168 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -176,0 +183 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -199,0 +207 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -210,0 +219 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -223 +232 @@ doc = ["Sphinx", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -231,0 +241 @@ python-versions = "*"
+groups = ["main"]
@@ -242,0 +253 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -253,0 +265 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -264 +276 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -271,0 +284 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -281,0 +295 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -300,0 +315 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -311,0 +327 @@ python-versions = "*"
+groups = ["main"]
@@ -387,0 +404 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -471,0 +489 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -485,0 +504 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main"]
@@ -496,0 +516 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -570,0 +591 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -619,0 +641 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -630,0 +653 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -655 +678 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\""]
@@ -657 +680 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -664,2 +687,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -672,2 +695,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -680,0 +704 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -691,0 +716 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -705,0 +731 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -725,0 +752 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -785,0 +813 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -806,0 +835 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -820,0 +850 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -839,0 +870 @@ python-versions = "*"
+groups = ["main"]
@@ -849,0 +881 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -858 +890 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -865,0 +898 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -912 +945 @@ files = [
-all = ["brotli (>=1.0.1)", "brotlicffi (>=0.8.0)", "fs (>=2.2.0,<3)", "lxml (>=4.0,<5)", "lz4 (>=1.7.4.2)", "matplotlib", "munkres", "scipy", "skia-pathops (>=0.5.0)", "sympy", "uharfbuzz (>=0.23.0)", "unicodedata2 (>=15.0.0)", "xattr", "zopfli (>=0.1.4)"]
+all = ["brotli (>=1.0.1) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\"", "fs (>=2.2.0,<3)", "lxml (>=4.0,<5)", "lz4 (>=1.7.4.2)", "matplotlib", "munkres ; platform_python_implementation == \"PyPy\"", "scipy ; platform_python_implementation != \"PyPy\"", "skia-pathops (>=0.5.0)", "sympy", "uharfbuzz (>=0.23.0)", "unicodedata2 (>=15.0.0) ; python_version <= \"3.11\"", "xattr ; sys_platform == \"darwin\"", "zopfli (>=0.1.4)"]
@@ -914 +947 @@ graphite = ["lz4 (>=1.7.4.2)"]
-interpolatable = ["munkres", "scipy"]
+interpolatable = ["munkres ; platform_python_implementation == \"PyPy\"", "scipy ; platform_python_implementation != \"PyPy\""]
@@ -920 +953 @@ symfont = ["sympy"]
-type1 = ["xattr"]
+type1 = ["xattr ; sys_platform == \"darwin\""]
@@ -922,2 +955,2 @@ ufo = ["fs (>=2.2.0,<3)"]
-unicode = ["unicodedata2 (>=15.0.0)"]
-woff = ["brotli (>=1.0.1)", "brotlicffi (>=0.8.0)", "zopfli (>=0.1.4)"]
+unicode = ["unicodedata2 (>=15.0.0) ; python_version <= \"3.11\""]
+woff = ["brotli (>=1.0.1) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\"", "zopfli (>=0.1.4)"]
@@ -930,0 +964 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1013,0 +1048 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1052,0 +1088 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1094,0 +1131 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1113,0 +1151 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1124,0 +1163 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1196,0 +1236,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1216,0 +1258 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1237,0 +1280 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1250 +1293 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1260,0 +1304 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1297,0 +1342 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -1308,0 +1354 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1319 +1365 @@ docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker
-testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"]
+testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7) ; platform_python_implementation != \"PyPy\"", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8 ; python_version < \"3.12\"", "pytest-mypy (>=0.9.1) ; platform_python_implementation != \"PyPy\""]
@@ -1326,0 +1373 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1343,0 +1391 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1354,0 +1403 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1365,0 +1415 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1384,0 +1435 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1461,0 +1513 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1476,0 +1529 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1483 +1536 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1497 +1550 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1525,0 +1579 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1556,0 +1611 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1586,0 +1642 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1610,0 +1667 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1669,0 +1727 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1689,0 +1748 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1751,0 +1811 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1762,0 +1823 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1773,0 +1835 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1787,0 +1850,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1796 +1860 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1804,0 +1869 @@ python-versions = "*"
+groups = ["main"]
@@ -1876,0 +1942 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1959,0 +2026 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1985,0 +2053 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2003,0 +2072 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2037,0 +2107 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2082,0 +2153 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2141,0 +2213 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2152,0 +2225 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2221,0 +2295 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2232 +2306 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2241,0 +2316 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2257,0 +2333 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2335 +2411 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2340 +2416 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2343,0 +2420 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2345,7 +2422,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2362 +2439 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2377 +2454 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2386,0 +2464 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2407,0 +2486 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2421,0 +2501 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2440 +2520 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2447,0 +2528 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2495,0 +2577 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2506,0 +2589 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2525,0 +2609 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2642,0 +2727 @@ python-versions = "*"
+groups = ["main"]
@@ -2653,0 +2739 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2660 +2746 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2668,0 +2755 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2678,0 +2766 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2769,3 +2857,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2781,0 +2870 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2824,0 +2914 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2841,0 +2932 @@ python-versions = ">=3.6.8"
+groups = ["main"]
@@ -2855,0 +2947 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2877,0 +2970 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2913,0 +3007 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2927,0 +3022 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2941,0 +3037 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2955,0 +3052 @@ python-versions = "*"
+groups = ["main"]
@@ -2966,0 +3064 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3015,0 +3114 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3036,0 +3136 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -3054,0 +3155 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3080,0 +3182 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -3100,0 +3203 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3145,0 +3249 @@ python-versions = "<3.13,>=3.9"
+groups = ["main"]
@@ -3181,0 +3286 @@ python-versions = ">=2.7"
+groups = ["main"]
@@ -3188 +3293 @@ files = [
-dev = ["Django (>=1.11)", "check-manifest", "colorama (<=0.4.1)", "coverage", "flake8", "nose2", "readme-renderer (<25.0)", "tox", "wheel", "zest.releaser[recommended]"]
+dev = ["Django (>=1.11)", "check-manifest", "colorama (<=0.4.1) ; python_version == \"3.4\"", "coverage", "flake8", "nose2", "readme-renderer (<25.0) ; python_version == \"3.4\"", "tox", "wheel", "zest.releaser[recommended]"]
@@ -3196,0 +3302 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3207,0 +3314 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main"]
@@ -3218,0 +3326 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3229,0 +3338 @@ python-versions = "*"
+groups = ["main"]
@@ -3251,0 +3361 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3288,0 +3399 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3306,0 +3418 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -3321,0 +3434,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3338,0 +3453 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3349,0 +3465 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3360,0 +3477 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -3371,0 +3489,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3397,0 +3517,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3423,0 +3545,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3449,0 +3573 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3473,0 +3598 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3493,0 +3619 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3517,0 +3644 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3528,0 +3656 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3539,0 +3668 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main"]
@@ -3546,2 +3675,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3555,0 +3685 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3566 +3696 @@ h11 = ">=0.8"
-standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
+standard = ["colorama (>=0.4) ; sys_platform == \"win32\"", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1) ; sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\"", "watchfiles (>=0.13)", "websockets (>=10.4)"]
@@ -3573,0 +3704 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3652,0 +3784 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3731,0 +3864 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3838,0 +3972 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3925,0 +4060 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3933 +4068 @@ doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linke
-test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
+test = ["big-O", "importlib-resources ; python_version < \"3.9\"", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
@@ -3936 +4071 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools",
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/jobs/cache_maintenance/Dockerfile b/jobs/cache_maintenance/Dockerfile
index c7b67b50..77c12968 100644
--- a/jobs/cache_maintenance/Dockerfile
+++ b/jobs/cache_maintenance/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -29 +29 @@ WORKDIR /src/jobs/cache_maintenance/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index 5ab9525e..1aeb29a5 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -178 +184 @@ doc = ["Sphinx (>=6.1.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "s
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -236,0 +247 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -250,2 +261,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -259,0 +271 @@ python-versions = "*"
+groups = ["dev"]
@@ -270,0 +283 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -289,0 +303 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -310,0 +325 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -321,0 +337 @@ python-versions = "*"
+groups = ["main"]
@@ -397,0 +414 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -481,0 +499 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -485,0 +504 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -492,0 +512 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -541,0 +562 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -563,0 +585 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -588 +610 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\""]
@@ -590 +612 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -597,2 +619,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -605,2 +627,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -613,0 +636 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -624,0 +648 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -635,0 +660 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -649,0 +675 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -669,0 +696 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -729,0 +757 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -750,0 +779 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -764,0 +794 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -773 +803 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -780,0 +811 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -863,0 +895 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -902,0 +935 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -916,0 +950 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -926 +960 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -933,0 +968 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1005,0 +1041,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1025,0 +1063 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1036 +1074 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1039 +1077 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1046,0 +1085 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1083,0 +1123 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1094,0 +1135 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1105,0 +1147 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1109,0 +1152 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1122,0 +1166 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1133,0 +1178 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1144,0 +1190 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1159,0 +1206 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1166 +1213 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1180 +1227 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1208,0 +1256 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1239,0 +1288 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1257,0 +1307 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1277,0 +1328 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1307,0 +1359 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1333,0 +1386 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1395,0 +1449 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1402,0 +1457 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1422,0 +1478 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1441,0 +1498 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1452,0 +1510 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1500 +1558 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1503 +1561 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1510,0 +1569 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1521,0 +1581 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1535,0 +1596,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1544 +1606 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1552,0 +1615 @@ python-versions = "*"
+groups = ["main", "dev"]
@@ -1624,0 +1688 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1707,0 +1772 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1733,0 +1799 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1780,0 +1847 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1791,0 +1859 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1809,0 +1878 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1843,0 +1913 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1888,0 +1959 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1947,0 +2019 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1963,0 +2036 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1974,0 +2048 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2043,0 +2118 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2054,0 +2130 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2065 +2141 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2074,0 +2151 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2090,0 +2168 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2168 +2246 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2176,0 +2255 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2187,0 +2267 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2201,0 +2282 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2229,0 +2311 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2248,0 +2331 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2260 +2343 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2263,0 +2347 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2265,7 +2349,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2282 +2366 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2297 +2381 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2306,0 +2391 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2327,0 +2413 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2341,0 +2428 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2360 +2447 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2367,0 +2455 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2381,0 +2470 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2429,0 +2519 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2440,0 +2531 @@ python-versions = "*"
+groups = ["main"]
@@ -2451,0 +2543 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2458 +2550 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2465,0 +2558 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2556,3 +2649,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2568,0 +2662 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2611,0 +2706 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2628,0 +2724 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2642,0 +2739 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2664,0 +2762 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2686,0 +2785 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2706,0 +2806 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2720,0 +2821 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2734,0 +2836 @@ python-versions = "*"
+groups = ["main"]
@@ -2745,0 +2848 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2794,0 +2898 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2815,0 +2920 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -2833,0 +2939 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2859,0 +2966 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -2879,0 +2987 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2924,0 +3033 @@ python-versions = "<3.13,>=3.9"
+groups = ["main"]
@@ -2960,0 +3070 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -2971,0 +3082 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -2982,0 +3094 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2993,0 +3106 @@ python-versions = "*"
+groups = ["dev"]
@@ -3004,0 +3118 @@ python-versions = "*"
+groups = ["main"]
@@ -3026,0 +3141 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3063,0 +3179 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3081,0 +3198 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -3096,0 +3214 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3110,0 +3229,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3127,0 +3248 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3146,0 +3268 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3157,0 +3280 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3168,0 +3292 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3179,0 +3304,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3205,0 +3332,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3231,0 +3360,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3257,0 +3388 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3281,0 +3413 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3301,0 +3434 @@ python-versions = "*"
+groups = ["dev"]
@@ -3315,0 +3449 @@ python-versions = "*"
+groups = ["dev"]
@@ -3326,0 +3461 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3337,0 +3473 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3348,0 +3485 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3362,0 +3500 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3369,2 +3507,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3378,0 +3517 @@ python-versions = "*"
+groups = ["dev"]
@@ -3389,0 +3529 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3468,0 +3609 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3575,0 +3717 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3658 +3800 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/jobs/mongodb_migration/Dockerfile b/jobs/mongodb_migration/Dockerfile
index a5dad9b9..d4c28055 100644
--- a/jobs/mongodb_migration/Dockerfile
+++ b/jobs/mongodb_migration/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -29 +29 @@ WORKDIR /src/jobs/mongodb_migration/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index 3e673ca4..aa0f31f9 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -178 +184 @@ doc = ["Sphinx (>=6.1.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "s
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -236,0 +247 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -250,2 +261,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -259,0 +271 @@ python-versions = "*"
+groups = ["dev"]
@@ -270,0 +283 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -289,0 +303 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -310,0 +325 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -321,0 +337 @@ python-versions = "*"
+groups = ["main"]
@@ -397,0 +414 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -481,0 +499 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -485,0 +504 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -492,0 +512 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -541,0 +562 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -563,0 +585 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -588 +610 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\""]
@@ -590 +612 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -597,2 +619,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -605,2 +627,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -613,0 +636 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -624,0 +648 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -635,0 +660 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -649,0 +675 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -669,0 +696 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -729,0 +757 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -750,0 +779 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -764,0 +794 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -773 +803 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -780,0 +811 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -863,0 +895 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -902,0 +935 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -916,0 +950 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -926 +960 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -933,0 +968 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1005,0 +1041,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1025,0 +1063 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1036 +1074 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1039 +1077 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1046,0 +1085 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1083,0 +1123 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1094,0 +1135 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1105,0 +1147 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1109,0 +1152 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1122,0 +1166 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1133,0 +1178 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1144,0 +1190 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1159,0 +1206 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1166 +1213 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1180 +1227 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1208,0 +1256 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1239,0 +1288 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1257,0 +1307 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1277,0 +1328 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1307,0 +1359 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1333,0 +1386 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1395,0 +1449 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1402,0 +1457 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1422,0 +1478 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1441,0 +1498 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1452,0 +1510 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1500 +1558 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1503 +1561 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1510,0 +1569 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1521,0 +1581 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1535,0 +1596,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1544 +1606 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1552,0 +1615 @@ python-versions = "*"
+groups = ["main", "dev"]
@@ -1624,0 +1688 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1707,0 +1772 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1733,0 +1799 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1780,0 +1847 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1791,0 +1859 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1809,0 +1878 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1843,0 +1913 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1888,0 +1959 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1947,0 +2019 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1963,0 +2036 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1974,0 +2048 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2043,0 +2118 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2054,0 +2130 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2065 +2141 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2074,0 +2151 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2090,0 +2168 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2168 +2246 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2176,0 +2255 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2187,0 +2267 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2201,0 +2282 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2229,0 +2311 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2248,0 +2331 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2260 +2343 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2263,0 +2347 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2265,7 +2349,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2282 +2366 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2297 +2381 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2306,0 +2391 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2327,0 +2413 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2341,0 +2428 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2360 +2447 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2367,0 +2455 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2381,0 +2470 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2429,0 +2519 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2440,0 +2531 @@ python-versions = "*"
+groups = ["main"]
@@ -2451,0 +2543 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2458 +2550 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2465,0 +2558 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2556,3 +2649,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2568,0 +2662 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2611,0 +2706 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2628,0 +2724 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2642,0 +2739 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2664,0 +2762 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2686,0 +2785 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2706,0 +2806 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2720,0 +2821 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2734,0 +2836 @@ python-versions = "*"
+groups = ["main"]
@@ -2745,0 +2848 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2794,0 +2898 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2815,0 +2920 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -2833,0 +2939 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2859,0 +2966 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -2879,0 +2987 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2924,0 +3033 @@ python-versions = "<3.13,>=3.9"
+groups = ["main"]
@@ -2960,0 +3070 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -2971,0 +3082 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -2982,0 +3094 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2993,0 +3106 @@ python-versions = "*"
+groups = ["dev"]
@@ -3004,0 +3118 @@ python-versions = "*"
+groups = ["main"]
@@ -3026,0 +3141 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3063,0 +3179 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3081,0 +3198 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -3096,0 +3214 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3110,0 +3229,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3127,0 +3248 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3146,0 +3268 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3157,0 +3280 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3168,0 +3292 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3179,0 +3304,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3205,0 +3332,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3231,0 +3360,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3257,0 +3388 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3281,0 +3413 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3301,0 +3434 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3312,0 +3446 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3323,0 +3458 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3337,0 +3473 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3344,2 +3480,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3353,0 +3490 @@ python-versions = "*"
+groups = ["dev"]
@@ -3364,0 +3502 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3443,0 +3582 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3550,0 +3690 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3633 +3773 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index 32a6de29..89931b71 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -178 +184 @@ doc = ["Sphinx (>=7)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)"]
-test = ["anyio[trio]", "coverage[toml] (>=7)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=7)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -240,2 +250,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -249,0 +260 @@ python-versions = "*"
+groups = ["dev"]
@@ -260,0 +272 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -279,0 +292 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -300,0 +314 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -311,0 +326 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -375,0 +391 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -474,0 +491 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -478,0 +496 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -485,0 +504 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -534,0 +554 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -556,0 +577 @@ python-versions = ">=3.9.0"
+groups = ["main"]
@@ -581 +602 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -588,2 +609,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -596,2 +617,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -604,0 +626 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -615,0 +638 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -629,0 +653 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -649,0 +674 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -709,0 +735 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -727,0 +754 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -748,0 +776 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -762,0 +791 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -771 +800 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -778,0 +808 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -848,0 +879 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -887,0 +919 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -901,0 +934 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -911 +944 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -918,0 +952 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -929,0 +964 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1001,0 +1037,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1021,0 +1059 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1032 +1070 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1035 +1073 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1042,0 +1081 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1063,0 +1103 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1076 +1116 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1086,0 +1127 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1123,0 +1165 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1134,0 +1177 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1145,0 +1189 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1149,0 +1194 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1162,0 +1208 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1173,0 +1220 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1180 +1227 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1194 +1241 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1222,0 +1270 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1240,0 +1289 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1260,0 +1310 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1286,0 +1337 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1338,0 +1390 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1345,0 +1398 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1365,0 +1419 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1384,0 +1439 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1395,0 +1451 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1443 +1499 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1446 +1502 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1453,0 +1510 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1464,0 +1522 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1478,0 +1537,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1487 +1547 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1495,0 +1556 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1560,0 +1622 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1643,0 +1706 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1671,0 +1735 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1718,0 +1783 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1729,0 +1795 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1747,0 +1814 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1792,0 +1860 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1851,0 +1920 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1868,0 +1938 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1879,0 +1950 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1948,0 +2020 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -1959,0 +2032 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1970 +2043 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -1979,0 +2053 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1995,0 +2070 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2073 +2148 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2081,0 +2157 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2092,0 +2169 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2106,0 +2184 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2134,0 +2213 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2153,0 +2233 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2165 +2245 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2168,0 +2249 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2170,7 +2251,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2187 +2268 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2202 +2283 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2211,0 +2293 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2225,0 +2308 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2244 +2327 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2251,0 +2335 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2265,0 +2350 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2313,0 +2399 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2324,0 +2411 @@ python-versions = "*"
+groups = ["main"]
@@ -2335,0 +2423 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2342 +2430 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2349,0 +2438 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2369,0 +2459 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2460,3 +2550,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2472,0 +2563 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2515,0 +2607 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2532,0 +2625 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2546,0 +2640 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2568,0 +2663 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2590,0 +2686 @@ python-versions = ">=3.8,<4.0"
+groups = ["dev"]
@@ -2604,0 +2701 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2624,0 +2722 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2638,0 +2737 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2652,0 +2752 @@ python-versions = "*"
+groups = ["main"]
@@ -2663,0 +2764 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2712,0 +2814 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2733,0 +2836 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -2751,0 +2855 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2777,0 +2882 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -2797,0 +2903 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -2808,0 +2915 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2819,0 +2927 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2830,0 +2939 @@ python-versions = "*"
+groups = ["dev"]
@@ -2841,0 +2951 @@ python-versions = "*"
+groups = ["main"]
@@ -2863,0 +2974 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2881,0 +2993 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -2896,0 +3009 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2910,0 +3024,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -2927,0 +3043 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2946,0 +3063 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -2957,0 +3075 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2968,0 +3087,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -2994,0 +3115,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3020,0 +3143,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3046,0 +3171 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3070,0 +3196 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3090,0 +3217 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3101,0 +3229 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3112,0 +3241 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3126,0 +3256 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3133,2 +3263,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3142,0 +3273 @@ python-versions = "*"
+groups = ["dev"]
@@ -3153,0 +3285 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3170,0 +3303 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3249,0 +3383 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3343,0 +3478 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3426 +3561 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index f0cc4dac..62f3c019 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -165,0 +171 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -178 +184 @@ doc = ["Sphinx (>=6.1.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "s
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -240,2 +250,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -249,0 +260 @@ python-versions = "*"
+groups = ["dev"]
@@ -260,0 +272 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -279,0 +292 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -298,0 +312 @@ python-versions = ">=3.8,<4.0"
+groups = ["dev"]
@@ -315,0 +330 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -336,0 +352 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -347,0 +364 @@ python-versions = "*"
+groups = ["main", "dev"]
@@ -413,0 +431 @@ files = [
+markers = {dev = "platform_python_implementation != \"PyPy\""}
@@ -423,0 +442 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -507,0 +527 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -511,0 +532 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -518,0 +540 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -567,0 +590 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -589,0 +613 @@ python-versions = ">=3.9.0"
+groups = ["main"]
@@ -614 +638 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -621,2 +645,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -629,2 +653,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -637,0 +662 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -648,0 +674 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -663,0 +690 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -683,0 +711 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -743,0 +772 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -764,0 +794 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -778,0 +809 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -787 +818 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -794,0 +826 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -877,0 +910 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -916,0 +950 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -930,0 +965 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -940 +975 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -947,0 +983 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -958,0 +995 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1030,0 +1068,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1050,0 +1090 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1061 +1101 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1064 +1104 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1071,0 +1112 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1092,0 +1134 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1106 +1148 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1116,0 +1159 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1153,0 +1197 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1164,0 +1209 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1175,0 +1221 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1179,0 +1226 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1192,0 +1240 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1203,0 +1252 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1221,0 +1271 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1241,0 +1292 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1267,0 +1319 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1319,0 +1372 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1326,0 +1380 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1346,0 +1401 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1365,0 +1421 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1376,0 +1433 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1424 +1481 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1427 +1484 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1434,0 +1492 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1445,0 +1504 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1459,0 +1519 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1508,0 +1569,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1517 +1579 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1525,0 +1588 @@ python-versions = "*"
+groups = ["dev"]
@@ -1597,0 +1661 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1680,0 +1745 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1704,0 +1770 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1751,0 +1818 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1762,0 +1830 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1780,0 +1849 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1825,0 +1895 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1884,0 +1955 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1900,0 +1972 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1911,0 +1984 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1980,0 +2054 @@ python-versions = ">=3.8,<3.12"
+groups = ["dev"]
@@ -1994,0 +2069 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2005,0 +2081 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2016 +2092 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2025,0 +2102 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2041,0 +2119 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2119 +2197 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2127,0 +2206 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2138,0 +2218 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2152,0 +2233 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2180,0 +2262 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2199,0 +2282 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2211 +2294 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2214,0 +2298 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2216,7 +2300,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2233 +2317 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2248 +2332 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2257,0 +2342 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2271,0 +2357 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2290 +2376 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2297,0 +2384 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2311,0 +2399 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2359,0 +2448 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main", "dev"]
@@ -2363,0 +2453 @@ files = [
+markers = {dev = "platform_python_implementation != \"PyPy\""}
@@ -2370,0 +2461 @@ python-versions = "*"
+groups = ["main"]
@@ -2381,0 +2473 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2388 +2480 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2395,0 +2488 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2486,3 +2579,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2498,0 +2592 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2541,0 +2636 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2558,0 +2654 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2572,0 +2669 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2594,0 +2692 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2616,0 +2715 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2630,0 +2730 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2650,0 +2751 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main", "dev"]
@@ -2664,0 +2766 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2678,0 +2781 @@ python-versions = "*"
+groups = ["main"]
@@ -2689,0 +2793 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2738,0 +2843 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2759,0 +2865 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2771 +2877 @@ urllib3 = ">=1.25.10,<3.0"
-tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asyncio", "pytest-cov", "pytest-httpserver", "tomli", "tomli-w", "types-PyYAML", "types-requests"]
+tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asyncio", "pytest-cov", "pytest-httpserver", "tomli ; python_version < \"3.11\"", "tomli-w", "types-PyYAML", "types-requests"]
@@ -2778,0 +2885 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -2796,0 +2904 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2822,0 +2931 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -2842,0 +2952 @@ python-versions = ">= 3.8"
+groups = ["dev"]
@@ -2859,0 +2970 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -2870,0 +2982 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -2881,0 +2994 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -2892,0 +3006 @@ python-versions = "*"
+groups = ["dev"]
@@ -2903,0 +3018 @@ python-versions = "*"
+groups = ["main"]
@@ -2925,0 +3041 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2943,0 +3060 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -2958,0 +3076 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2972,0 +3091,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -2989,0 +3110 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3008,0 +3130 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3019,0 +3142 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3030,0 +3154,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3056,0 +3182,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3082,0 +3210,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3108,0 +3238 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3132,0 +3263 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3152,0 +3284 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3556,0 +3689 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3570,0 +3704 @@ python-versions = ">=3.7,<4.0"
+groups = ["dev"]
@@ -3581,0 +3716 @@ python-versions = "*"
+groups = ["dev"]
@@ -3592,0 +3728 @@ python-versions = "*"
+groups = ["dev"]
@@ -3603,0 +3740 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3614,0 +3752 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3625,0 +3764 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3639,0 +3779 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3646,2 +3786,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3655,0 +3796 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3677,0 +3819 @@ python-versions = "*"
+groups = ["dev"]
@@ -3688,0 +3831 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3705,0 +3849 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -3784,0 +3929 @@ python-versions = ">=3.4"
+groups = ["dev"]
@@ -3795,0 +3941 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3927,0 +4074 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -4010 +4157 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
@@ -4012 +4159 @@ python-versions = "3.9.18"
-content-hash = "c4314e9c7f16fbefd6fd004b467aa9cba642bc9db026b20d5b4eb43b7912ff7e"
+content-hash = "8acfdbeec70806a00f966dbe44aefd78ba26fb0ad8a9418bef5c89545ff8d36d"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index 64358f31..c93891c1 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12 +12 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -26 +26 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
diff --git a/services/admin/Dockerfile b/services/admin/Dockerfile
index 028311d8..5ad82273 100644
--- a/services/admin/Dockerfile
+++ b/services/admin/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -30 +30 @@ WORKDIR /src/services/admin/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/services/admin/dev.Dockerfile b/services/admin/dev.Dockerfile
index 31687c34..e1afc7ef 100644
--- a/services/admin/dev.Dockerfile
+++ b/services/admin/dev.Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index 025e0c64..73a3665c 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -178 +184 @@ doc = ["Sphinx (>=6.1.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "s
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -236,0 +247 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -250,2 +261,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -259,0 +271 @@ python-versions = "*"
+groups = ["dev"]
@@ -270,0 +283 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -289,0 +303 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -310,0 +325 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -321,0 +337 @@ python-versions = "*"
+groups = ["main"]
@@ -397,0 +414 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -481,0 +499 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -495,0 +514 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -499,0 +519 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -506,0 +527 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -555,0 +577 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -577,0 +600 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -602 +625 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\""]
@@ -604 +627 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -611,2 +634,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -619,2 +642,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -627,0 +651 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -638,0 +663 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -649,0 +675 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -663,0 +690 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -683,0 +711 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -743,0 +772 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -764,0 +794 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -778,0 +809 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -787 +818 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -794,0 +826 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -877,0 +910 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -916,0 +950 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -930,0 +965 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -940 +975 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -947,0 +983 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -958,0 +995 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1030,0 +1068,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1050,0 +1090 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1061 +1101 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1064 +1104 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1071,0 +1112 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -1092,0 +1134 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -1105 +1147 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1115,0 +1158 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1152,0 +1196 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1163,0 +1208 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1174,0 +1220 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1178,0 +1225 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1191,0 +1239 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1202,0 +1251 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1213,0 +1263 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1228,0 +1279 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1250,0 +1302 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1257 +1309 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1271 +1323 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1299,0 +1352 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1330,0 +1384 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1348,0 +1403 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1368,0 +1424 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1398,0 +1455 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1424,0 +1482 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1486,0 +1545 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1493,0 +1553 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1513,0 +1574 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1532,0 +1594 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1543,0 +1606 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1591 +1654 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1594 +1657 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1601,0 +1665 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1612,0 +1677 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1626,0 +1692,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1635 +1702 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1643,0 +1711 @@ python-versions = "*"
+groups = ["main", "dev"]
@@ -1715,0 +1784 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1798,0 +1868 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1824,0 +1895 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1871,0 +1943 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1882,0 +1955 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1900,0 +1974 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1934,0 +2009 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1979,0 +2055 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2038,0 +2115 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2054,0 +2132 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -2065,0 +2144 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2134,0 +2214 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2145,0 +2226 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2156 +2237 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2165,0 +2247 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2181,0 +2264 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2259 +2342 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2267,0 +2351 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2278,0 +2363 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2292,0 +2378 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2320,0 +2407 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2339,0 +2427 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -2351 +2439 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2354,0 +2443 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2356,7 +2445,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2373 +2462 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2388 +2477 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2397,0 +2487 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2418,0 +2509 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2432,0 +2524 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2451 +2543 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2458,0 +2551 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2472,0 +2566 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2520,0 +2615 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2531,0 +2627 @@ python-versions = "*"
+groups = ["main"]
@@ -2542,0 +2639 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2549 +2646 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2556,0 +2654 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2576,0 +2675 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2667,3 +2766,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2679,0 +2779 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2722,0 +2823 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2739,0 +2841 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2753,0 +2856 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2775,0 +2879 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2797,0 +2902 @@ python-versions = ">=3.9"
+groups = ["dev"]
@@ -2815,0 +2921 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2835,0 +2942 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2849,0 +2957 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2863,0 +2972 @@ python-versions = "*"
+groups = ["main"]
@@ -2874,0 +2984 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2923,0 +3034 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2944,0 +3056 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -2962,0 +3075 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2988,0 +3102 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -3008,0 +3123 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3053,0 +3169 @@ python-versions = "<3.13,>=3.9"
+groups = ["main"]
@@ -3089,0 +3206 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -3100,0 +3218 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -3111,0 +3230 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -3122,0 +3242 @@ python-versions = "*"
+groups = ["dev"]
@@ -3133,0 +3254 @@ python-versions = "*"
+groups = ["main"]
@@ -3155,0 +3277 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3192,0 +3315 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3210,0 +3334 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -3225,0 +3350 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3239,0 +3365,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3256,0 +3384 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3275,0 +3404 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3286,0 +3416 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3297,0 +3428 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3308,0 +3440,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3334,0 +3468,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3360,0 +3496,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3386,0 +3524 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3410,0 +3549 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3430,0 +3570 @@ python-versions = "*"
+groups = ["dev"]
@@ -3441,0 +3582 @@ python-versions = "*"
+groups = ["dev"]
@@ -3455,0 +3597 @@ python-versions = "*"
+groups = ["dev"]
@@ -3466,0 +3609 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3477,0 +3621 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3488,0 +3633 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3502,0 +3648 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3509,2 +3655,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3518,0 +3665 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3530 +3677 @@ typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""}
-standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
+standard = ["colorama (>=0.4) ; sys_platform == \"win32\"", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1) ; sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\"", "watchfiles (>=0.13)", "websockets (>=10.4)"]
@@ -3537,0 +3685 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3580,0 +3729 @@ python-versions = "*"
+groups = ["dev"]
@@ -3591,0 +3741 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3670,0 +3821 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3777,0 +3929 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3860 +4012 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/services/api/Dockerfile b/services/api/Dockerfile
index 27b6fd62..8e8a8dca 100644
--- a/services/api/Dockerfile
+++ b/services/api/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -30 +30 @@ WORKDIR /src/services/api/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/services/api/dev.Dockerfile b/services/api/dev.Dockerfile
index 9bb96bec..e0940212 100644
--- a/services/api/dev.Dockerfile
+++ b/services/api/dev.Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index 2ecede8c..38a0a608 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -178 +184 @@ doc = ["Sphinx (>=6.1.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "s
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -236,0 +247 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -250,2 +261,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -259,0 +271 @@ python-versions = "*"
+groups = ["dev"]
@@ -270,0 +283 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -289,0 +303 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -310,0 +325 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -321,0 +337 @@ python-versions = "*"
+groups = ["main"]
@@ -397,0 +414 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -481,0 +499 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -495,0 +514 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -499,0 +519 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -506,0 +527 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -555,0 +577 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -577,0 +600 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -602 +625 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\""]
@@ -604 +627 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -611,2 +634,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -619,2 +642,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -627,0 +651 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -638,0 +663 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -649,0 +675 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -663,0 +690 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -683,0 +711 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -743,0 +772 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -764,0 +794 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -778,0 +809 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -787 +818 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -794,0 +826 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -877,0 +910 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -916,0 +950 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -930,0 +965 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -940 +975 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -947,0 +983 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -958,0 +995 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1030,0 +1068,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1050,0 +1090 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1061 +1101 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1064 +1104 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1071,0 +1112 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1092,0 +1134 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1105 +1147 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1115,0 +1158 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1152,0 +1196 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1163,0 +1208 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1174,0 +1220 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1178,0 +1225 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1191,0 +1239 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1202,0 +1251 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1213,0 +1263 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1232,0 +1283 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1247,0 +1299 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1269,0 +1322 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1276 +1329 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1290 +1343 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1318,0 +1372 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1349,0 +1404 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1367,0 +1423 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1387,0 +1444 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1417,0 +1475 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1443,0 +1502 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1505,0 +1565 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1512,0 +1573 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1532,0 +1594 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1551,0 +1614 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1562,0 +1626 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1610 +1674 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1613 +1677 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1620,0 +1685 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1631,0 +1697 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1645,0 +1712,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1654 +1722 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1662,0 +1731 @@ python-versions = "*"
+groups = ["main", "dev"]
@@ -1734,0 +1804 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1817,0 +1888 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1843,0 +1915 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1890,0 +1963 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1901,0 +1975 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1919,0 +1994 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1953,0 +2029 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1998,0 +2075 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2057,0 +2135 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2073,0 +2152 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -2084,0 +2164 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2153,0 +2234 @@ python-versions = ">=3.8,<3.12"
+groups = ["dev"]
@@ -2167,0 +2249 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2178,0 +2261 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2189 +2272 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2198,0 +2282 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2214,0 +2299 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2292 +2377 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2300,0 +2386 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2311,0 +2398 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2325,0 +2413 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2353,0 +2442 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2372,0 +2462 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2384 +2474 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2387,0 +2478 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2389,7 +2480,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2406 +2497 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2421 +2512 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2430,0 +2522 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2451,0 +2544 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2465,0 +2559 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2484 +2578 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2491,0 +2586 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2505,0 +2601 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2553,0 +2650 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2564,0 +2662 @@ python-versions = "*"
+groups = ["main"]
@@ -2575,0 +2674 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2582 +2681 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2589,0 +2689 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2609,0 +2710 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2700,3 +2801,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2712,0 +2814 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2755,0 +2858 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2772,0 +2876 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2786,0 +2891 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2808,0 +2914 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2844,0 +2951 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2866,0 +2974 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2886,0 +2995 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2900,0 +3010 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2914,0 +3025 @@ python-versions = "*"
+groups = ["main"]
@@ -2925,0 +3037 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2974,0 +3087 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2995,0 +3109 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -3013,0 +3128 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3039,0 +3155 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -3059,0 +3176 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3104,0 +3222 @@ python-versions = "<3.13,>=3.9"
+groups = ["main"]
@@ -3140,0 +3259 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -3151,0 +3271 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -3162,0 +3283 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3173,0 +3295 @@ python-versions = "*"
+groups = ["dev"]
@@ -3184,0 +3307 @@ python-versions = "*"
+groups = ["main"]
@@ -3206,0 +3330 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3243,0 +3368 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3261,0 +3387 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -3276,0 +3403 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3290,0 +3418,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3307,0 +3437 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3326,0 +3457 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3337,0 +3469 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3348,0 +3481 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3359,0 +3493,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3385,0 +3521,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3411,0 +3549,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3437,0 +3577 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3461,0 +3602 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3481,0 +3623 @@ python-versions = "*"
+groups = ["dev"]
@@ -3492,0 +3635 @@ python-versions = "*"
+groups = ["dev"]
@@ -3503,0 +3647 @@ python-versions = "*"
+groups = ["dev"]
@@ -3514,0 +3659 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3525,0 +3671 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3536,0 +3683 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3550,0 +3698 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3557,2 +3705,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3566,0 +3715 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3578 +3727 @@ typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""}
-standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
+standard = ["colorama (>=0.4) ; sys_platform == \"win32\"", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1) ; sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\"", "watchfiles (>=0.13)", "websockets (>=10.4)"]
@@ -3585,0 +3735 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3628,0 +3779 @@ python-versions = "*"
+groups = ["dev"]
@@ -3639,0 +3791 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3718,0 +3871 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3825,0 +3979 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3908 +4062 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/services/rows/Dockerfile b/services/rows/Dockerfile
index da0a4b8f..7136edec 100644
--- a/services/rows/Dockerfile
+++ b/services/rows/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -30 +30 @@ WORKDIR /src/services/rows/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/services/rows/dev.Dockerfile b/services/rows/dev.Dockerfile
index 401a8e88..51a857ad 100644
--- a/services/rows/dev.Dockerfile
+++ b/services/rows/dev.Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index 559ddddc..dd3eb8d0 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -178 +184 @@ doc = ["Sphinx (>=6.1.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "s
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -240,2 +250,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -249,0 +260 @@ python-versions = "*"
+groups = ["dev"]
@@ -260,0 +272 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -279,0 +292 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -298,0 +312 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -319,0 +334 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -330,0 +346 @@ python-versions = "*"
+groups = ["main", "dev"]
@@ -396,0 +413 @@ files = [
+markers = {dev = "platform_python_implementation != \"PyPy\""}
@@ -406,0 +424 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -490,0 +509 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -504,0 +524 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -508,0 +529 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -515,0 +537 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -564,0 +587 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -586,0 +610 @@ python-versions = ">=3.9.0"
+groups = ["main"]
@@ -611 +635 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -618,2 +642,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -626,2 +650,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -634,0 +659 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -645,0 +671 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -659,0 +686 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -679,0 +707 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -739,0 +768 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -760,0 +790 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -774,0 +805 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -783 +814 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -790,0 +822 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -873,0 +906 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -912,0 +946 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -926,0 +961 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -936 +971 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -943,0 +979 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -954,0 +991 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1026,0 +1064,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1046,0 +1086 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1057 +1097 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1060 +1100 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1067,0 +1108 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1088,0 +1130 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1101 +1143 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1111,0 +1154 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1148,0 +1192 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1159,0 +1204 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1170,0 +1216 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1174,0 +1221 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1187,0 +1235 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1198,0 +1247 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1217,0 +1267 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1239,0 +1290 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1246 +1297 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1260 +1311 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1288,0 +1340 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1306,0 +1359 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1326,0 +1380 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1352,0 +1407 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1404,0 +1460 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1411,0 +1468 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1431,0 +1489 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1450,0 +1509 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1461,0 +1521 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1509 +1569 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1512 +1572 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1519,0 +1580 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1530,0 +1592 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1544,0 +1607 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1592,0 +1656,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1601 +1666 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1609,0 +1675 @@ python-versions = "*"
+groups = ["dev"]
@@ -1681,0 +1748 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1764,0 +1832 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1790,0 +1859 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1837,0 +1907 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1848,0 +1919 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1866,0 +1938 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1911,0 +1984 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1970,0 +2044 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1986,0 +2061 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1997,0 +2073 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2066,0 +2143 @@ python-versions = ">=3.8,<3.12"
+groups = ["dev"]
@@ -2080,0 +2158 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2091,0 +2170 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2102 +2181 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2111,0 +2191 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2127,0 +2208 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2205 +2286 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2213,0 +2295 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2224,0 +2307 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2238,0 +2322 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2266,0 +2351 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2285,0 +2371 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2297 +2383 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2300,0 +2387 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2302,7 +2389,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2319 +2406 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2334 +2421 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2343,0 +2431 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2357,0 +2446 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2376 +2465 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2383,0 +2473 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2397,0 +2488 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2445,0 +2537 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main", "dev"]
@@ -2449,0 +2542 @@ files = [
+markers = {dev = "platform_python_implementation != \"PyPy\""}
@@ -2456,0 +2550 @@ python-versions = "*"
+groups = ["main"]
@@ -2467,0 +2562 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2474 +2569 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2481,0 +2577 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2501,0 +2598 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2592,3 +2689,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2604,0 +2702 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2647,0 +2746 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2664,0 +2764 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2678,0 +2779 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2700,0 +2802 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2736,0 +2839 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2758,0 +2862 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2778,0 +2883 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main", "dev"]
@@ -2792,0 +2898 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2806,0 +2913 @@ python-versions = "*"
+groups = ["main"]
@@ -2817,0 +2925 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2866,0 +2975 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2887,0 +2997 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2900 +3010 @@ urllib3 = ">=1.25.10,<3.0"
-tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asyncio", "pytest-cov", "pytest-httpserver", "tomli", "tomli-w", "types-requests"]
+tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asyncio", "pytest-cov", "pytest-httpserver", "tomli ; python_version < \"3.11\"", "tomli-w", "types-requests"]
@@ -2907,0 +3018 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -2925,0 +3037 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2951,0 +3064 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -2971,0 +3085 @@ python-versions = ">= 3.8"
+groups = ["dev"]
@@ -2988,0 +3103 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -2999,0 +3115 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -3010,0 +3127 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3021,0 +3139 @@ python-versions = "*"
+groups = ["dev"]
@@ -3032,0 +3151 @@ python-versions = "*"
+groups = ["main"]
@@ -3054,0 +3174 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3072,0 +3193 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -3087,0 +3209 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3101,0 +3224,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3118,0 +3243 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3137,0 +3263 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3148,0 +3275 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3159,0 +3287,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3185,0 +3315,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3211,0 +3343,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3237,0 +3371 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3261,0 +3396 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3281,0 +3417 @@ python-versions = "*"
+groups = ["dev"]
@@ -3292,0 +3429 @@ python-versions = "*"
+groups = ["dev"]
@@ -3303,0 +3441 @@ python-versions = "*"
+groups = ["dev"]
@@ -3314,0 +3453 @@ python-versions = "*"
+groups = ["dev"]
@@ -3325,0 +3465 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3336,0 +3477 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3347,0 +3489 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3361,0 +3504 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3368,2 +3511,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3377,0 +3521 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3389 +3533 @@ typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""}
-standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
+standard = ["colorama (>=0.4) ; sys_platform == \"win32\"", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1) ; sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\"", "watchfiles (>=0.13)", "websockets (>=10.4)"]
@@ -3396,0 +3541 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3439,0 +3585 @@ python-versions = "*"
+groups = ["dev"]
@@ -3450,0 +3597 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3467,0 +3615 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3546,0 +3695 @@ python-versions = ">=3.4"
+groups = ["dev"]
@@ -3557,0 +3707 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3664,0 +3815 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3747 +3898 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/services/search/Dockerfile b/services/search/Dockerfile
index 14db1e89..6313b757 100644
--- a/services/search/Dockerfile
+++ b/services/search/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -30 +30 @@ WORKDIR /src/services/search/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/services/search/dev.Dockerfile b/services/search/dev.Dockerfile
index 365955ed..caa50f9c 100644
--- a/services/search/dev.Dockerfile
+++ b/services/search/dev.Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index 1955f495..d5f52cbe 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -178 +184 @@ doc = ["Sphinx", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -240,2 +250,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -249,0 +260 @@ python-versions = "*"
+groups = ["dev"]
@@ -260,0 +272 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -279,0 +292 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -300,0 +314 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -311,0 +326 @@ python-versions = "*"
+groups = ["main"]
@@ -387,0 +403 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -471,0 +488 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -485,0 +503 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -489,0 +508 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -496,0 +516 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -545,0 +566 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -567,0 +589 @@ python-versions = ">=3.9.0"
+groups = ["main"]
@@ -592 +614 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -599,2 +621,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -607,2 +629,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -615,0 +638 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -626,0 +650 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -640,0 +665 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -660,0 +686 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -720,0 +747 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -741,0 +769 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -755,0 +784 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -764 +793 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -771,0 +801 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -841,0 +872 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -880,0 +912 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -894,0 +927 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -904 +937 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -911,0 +945 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -922,0 +957 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -994,0 +1030,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1014,0 +1052 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1025 +1063 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1028 +1066 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1035,0 +1074 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1056,0 +1096 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1069 +1109 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1079,0 +1120 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1116,0 +1158 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1127,0 +1170 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1138,0 +1182 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1142,0 +1187 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1155,0 +1201 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1166,0 +1213 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1187,0 +1235 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1201,0 +1250 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1223,0 +1273 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1230 +1280 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1244 +1294 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1272,0 +1323 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1290,0 +1342 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1310,0 +1363 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1336,0 +1390 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1398,0 +1453 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1405,0 +1461 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1425,0 +1482 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1444,0 +1502 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1455,0 +1514 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1503 +1562 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1506 +1565 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1513,0 +1573 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1524,0 +1585 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1538,0 +1600,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1547 +1610 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1555,0 +1619 @@ python-versions = "*"
+groups = ["dev"]
@@ -1627,0 +1692 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1710,0 +1776 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1738,0 +1805 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1785,0 +1853 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1796,0 +1865 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1814,0 +1884 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1859,0 +1930 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1918,0 +1990 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1935,0 +2008 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1946,0 +2020 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2015,0 +2090 @@ python-versions = ">=3.8,<3.12"
+groups = ["dev"]
@@ -2029,0 +2105 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2040,0 +2117 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2051 +2128 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2060,0 +2138 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2076,0 +2155 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2154 +2233 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2162,0 +2242 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2173,0 +2254 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2187,0 +2269 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2215,0 +2298 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2234,0 +2318 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2246 +2330 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2249,0 +2334 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2251,7 +2336,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2268 +2353 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2283 +2368 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2292,0 +2378 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2306,0 +2393 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2325 +2412 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2332,0 +2420 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2346,0 +2435 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2394,0 +2484 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2405,0 +2496 @@ python-versions = "*"
+groups = ["main"]
@@ -2416,0 +2508 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2423 +2515 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2430,0 +2523 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2450,0 +2544 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2541,3 +2635,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2553,0 +2648 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2596,0 +2692 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2613,0 +2710 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2627,0 +2725 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2649,0 +2748 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2671,0 +2771 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2691,0 +2792 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2705,0 +2807 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2719,0 +2822 @@ python-versions = "*"
+groups = ["main"]
@@ -2730,0 +2834 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2779,0 +2884 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2794,0 +2900 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2815,0 +2922 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -2833,0 +2941 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2939,0 +3048 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2965,0 +3075 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -2985,0 +3096 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -2996,0 +3108 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -3007,0 +3120 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3018,0 +3132 @@ python-versions = "*"
+groups = ["dev"]
@@ -3029,0 +3144 @@ python-versions = "*"
+groups = ["main"]
@@ -3051,0 +3167 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3069,0 +3186 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -3084,0 +3202 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3098,0 +3217,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3115,0 +3236 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3134,0 +3256 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3145,0 +3268 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3156,0 +3280,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3182,0 +3308,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3208,0 +3336,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3234,0 +3364 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3258,0 +3389 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3278,0 +3410 @@ python-versions = "*"
+groups = ["dev"]
@@ -3289,0 +3422 @@ python-versions = "*"
+groups = ["dev"]
@@ -3300,0 +3434 @@ python-versions = "*"
+groups = ["dev"]
@@ -3311,0 +3446 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3322,0 +3458 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3333,0 +3470 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3347,0 +3485 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3354,2 +3492,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3363,0 +3502 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3375 +3514 @@ typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""}
-standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
+standard = ["colorama (>=0.4) ; sys_platform == \"win32\"", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1) ; sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\"", "watchfiles (>=0.13)", "websockets (>=10.4)"]
@@ -3382,0 +3522 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3425,0 +3566 @@ python-versions = "*"
+groups = ["dev"]
@@ -3436,0 +3578 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3515,0 +3658 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3622,0 +3766 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3705 +3849 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/services/sse-api/Dockerfile b/services/sse-api/Dockerfile
index 1c3fafb1..571dabd7 100644
--- a/services/sse-api/Dockerfile
+++ b/services/sse-api/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -30 +30 @@ WORKDIR /src/services/sse-api/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/services/sse-api/dev.Dockerfile b/services/sse-api/dev.Dockerfile
index 408404e9..c76cb9d3 100644
--- a/services/sse-api/dev.Dockerfile
+++ b/services/sse-api/dev.Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index 566a1e81..db5a416c 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -178 +184 @@ doc = ["Sphinx (>=7)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)"]
-test = ["anyio[trio]", "coverage[toml] (>=7)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=7)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -236,0 +247 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -250,2 +261,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -259,0 +271 @@ python-versions = "*"
+groups = ["dev"]
@@ -270,0 +283 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -289,0 +303 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -310,0 +325 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -321,0 +337 @@ python-versions = "*"
+groups = ["main"]
@@ -397,0 +414 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -481,0 +499 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -495,0 +514,2 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
+markers = "platform_system == \"Windows\" or sys_platform == \"win32\""
@@ -506,0 +527 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -555,0 +577 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -577,0 +600 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -602 +625 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\""]
@@ -604 +627 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -611,2 +634,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\"", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0) ; python_version >= \"3.9\"", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -619,2 +642,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -627,0 +651 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -638,0 +663 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -649,0 +675 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -663,0 +690 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -683,0 +711 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -743,0 +772 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -764,0 +794 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -778,0 +809 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -787 +818 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -794,0 +826 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -864,0 +897 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -903,0 +937 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -917,0 +952 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -927 +962 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -934,0 +970 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -945,0 +982 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1017,0 +1055,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1037,0 +1077 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1048 +1088 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1051 +1091 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1058,0 +1099 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -1079,0 +1121 @@ python-versions = ">=3.5.0"
+groups = ["main"]
@@ -1126,0 +1169 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -1139 +1182 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1149,0 +1193 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1160,0 +1205 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1197,0 +1243 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1208,0 +1255 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1219,0 +1267 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1223,0 +1272 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1236,0 +1286 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1247,0 +1298 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1258,0 +1310 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1273,0 +1326 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1295,0 +1349 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1302 +1356 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1316 +1370 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1344,0 +1399 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1375,0 +1431 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1393,0 +1450 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1413,0 +1471 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1443,0 +1502 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1469,0 +1529 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1531,0 +1592 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1538,0 +1600 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1558,0 +1621 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1577,0 +1641 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1588,0 +1653 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1636 +1701 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1639 +1704 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1646,0 +1712 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1657,0 +1724 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1671,0 +1739 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1695,0 +1764 @@ python-versions = ">=3.8.0,<4.0"
+groups = ["dev"]
@@ -1713,0 +1783,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1722 +1793 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1730,0 +1802 @@ python-versions = "*"
+groups = ["main", "dev"]
@@ -1802,0 +1875 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1885,0 +1959 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1913,0 +1988 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1960,0 +2036 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1971,0 +2048 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1989,0 +2067 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2023,0 +2102 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2068,0 +2148 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2127,0 +2208 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2144,0 +2226 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -2155,0 +2238 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2224,0 +2308 @@ python-versions = ">=3.8,<3.12"
+groups = ["dev"]
@@ -2238,0 +2323 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2249,0 +2335 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2260 +2346 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2269,0 +2356 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2285,0 +2373 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2363 +2451 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2371,0 +2460 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2382,0 +2472 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2396,0 +2487 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2424,0 +2516 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2443,0 +2536 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2458,0 +2552 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2470 +2564 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2473,0 +2568 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2475,7 +2570,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2492 +2587 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2507 +2602 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2516,0 +2612 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2537,0 +2634 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2551,0 +2649 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2570 +2668 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2577,0 +2676 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2591,0 +2691 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2639,0 +2740 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2650,0 +2752 @@ python-versions = "*"
+groups = ["main"]
@@ -2661,0 +2764 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2668 +2771 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2675,0 +2779 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2695,0 +2800 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -2786,3 +2891,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2798,0 +2904 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2841,0 +2948 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2858,0 +2966 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2872,0 +2981 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2894,0 +3004 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2916,0 +3027 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2934,0 +3046 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2954,0 +3067 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2968,0 +3082 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2982,0 +3097 @@ python-versions = "*"
+groups = ["main"]
@@ -2993,0 +3109 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -3042,0 +3159 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -3063,0 +3181 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -3081,0 +3200 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3107,0 +3227 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -3127,0 +3248 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3172,0 +3294 @@ python-versions = "<3.13,>=3.9"
+groups = ["main"]
@@ -3214,0 +3337 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -3225,0 +3349 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -3236,0 +3361 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -3247,0 +3373 @@ python-versions = "*"
+groups = ["dev"]
@@ -3258,0 +3385 @@ python-versions = "*"
+groups = ["main"]
@@ -3280,0 +3408 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3317,0 +3446 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3336,0 +3466 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3354,0 +3485 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -3369,0 +3501 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3383,0 +3516,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3400,0 +3535 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3419,0 +3555 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3430,0 +3567 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3441,0 +3579 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3452,0 +3591,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3478,0 +3619,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3504,0 +3647,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3530,0 +3675 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3554,0 +3700 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3574,0 +3721 @@ python-versions = "*"
+groups = ["dev"]
@@ -3585,0 +3733 @@ python-versions = "*"
+groups = ["dev"]
@@ -3596,0 +3745 @@ python-versions = "*"
+groups = ["dev"]
@@ -3607,0 +3757 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3618,0 +3769 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3629,0 +3781 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3643,0 +3796 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3650,2 +3803,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3659,0 +3813 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3673 +3827 @@ typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""}
-uvloop = {version = ">=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1", optional = true, markers = "(sys_platform != \"win32\" and sys_platform != \"cygwin\") and platform_python_implementation != \"PyPy\" and extra == \"standard\""}
+uvloop = {version = ">=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1", optional = true, markers = "sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\" and extra == \"standard\""}
@@ -3678 +3832 @@ websockets = {version = ">=10.4", optional = true, markers = "extra == \"standar
-standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
+standard = ["colorama (>=0.4) ; sys_platform == \"win32\"", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1) ; sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\"", "watchfiles (>=0.13)", "websockets (>=10.4)"]
@@ -3685,0 +3840,2 @@ python-versions = ">=3.7"
+groups = ["main"]
+markers = "sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\""
@@ -3720 +3876 @@ files = [
-dev = ["Cython (>=0.29.32,<0.30.0)", "Sphinx (>=4.1.2,<4.2.0)", "aiohttp", "flake8 (>=3.9.2,<3.10.0)", "mypy (>=0.800)", "psutil", "pyOpenSSL (>=22.0.0,<22.1.0)", "pycodestyle (>=2.7.0,<2.8.0)", "pytest (>=3.6.0)", "sphinx-rtd-theme (>=0.5.2,<0.6.0)", "sphinxcontrib-asyncio (>=0.3.0,<0.4.0)"]
+dev = ["Cython (>=0.29.32,<0.30.0)", "Sphinx (>=4.1.2,<4.2.0)", "aiohttp ; python_version < \"3.11\"", "flake8 (>=3.9.2,<3.10.0)", "mypy (>=0.800)", "psutil", "pyOpenSSL (>=22.0.0,<22.1.0)", "pycodestyle (>=2.7.0,<2.8.0)", "pytest (>=3.6.0)", "sphinx-rtd-theme (>=0.5.2,<0.6.0)", "sphinxcontrib-asyncio (>=0.3.0,<0.4.0)"]
@@ -3722 +3878 @@ docs = ["Sphinx (>=4.1.2,<4.2.0)", "sphinx-rtd-theme (>=0.5.2,<0.6.0)", "sphinxc
-test = ["Cython (>=0.29.32,<0.30.0)", "aiohttp", "flake8 (>=3.9.2,<3.10.0)", "mypy (>=0.800)", "psutil", "pyOpenSSL (>=22.0.0,<22.1.0)", "pycodestyle (>=2.7.0,<2.8.0)"]
+test = ["Cython (>=0.29.32,<0.30.0)", "aiohttp ; python_version < \"3.11\"", "flake8 (>=3.9.2,<3.10.0)", "mypy (>=0.800)", "psutil", "pyOpenSSL (>=22.0.0,<22.1.0)", "pycodestyle (>=2.7.0,<2.8.0)"]
@@ -3729,0 +3886 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3772,0 +3930 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3806,0 +3965 @@ python-versions = "*"
+groups = ["dev"]
@@ -3817,0 +3977 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3896,0 +4057 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3975,0 +4137 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -4069,0 +4232 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -4152 +4315 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/services/webhook/Dockerfile b/services/webhook/Dockerfile
index 86cc554a..247fa6bb 100644
--- a/services/webhook/Dockerfile
+++ b/services/webhook/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -30 +30 @@ WORKDIR /src/services/webhook/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/services/webhook/dev.Dockerfile b/services/webhook/dev.Dockerfile
index 1ab12d4c..e09bc888 100644
--- a/services/webhook/dev.Dockerfile
+++ b/services/webhook/dev.Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index 0a6d3e44..0d675879 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -165,0 +171 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -178 +184 @@ doc = ["Sphinx (>=6.1.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "s
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -186,0 +193 @@ python-versions = "*"
+groups = ["main"]
@@ -197,0 +205 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -208,0 +217 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -219 +228 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -226,0 +236 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -240,2 +250,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -249,0 +260 @@ python-versions = "*"
+groups = ["dev"]
@@ -260,0 +272 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -279,0 +292 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -300,0 +314 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -311,0 +326 @@ python-versions = "*"
+groups = ["main"]
@@ -387,0 +403 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -471,0 +488 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -485,0 +503 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -489,0 +508 @@ files = [
+markers = {main = "platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -496,0 +516 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -545,0 +566 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -567,0 +589 @@ python-versions = ">=3.9.0"
+groups = ["main"]
@@ -592 +614 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -599,2 +621,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -607,2 +629,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -615,0 +638 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -626,0 +650 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -640,0 +665 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -660,0 +686 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -720,0 +747 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -741,0 +769 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -755,0 +784 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -764 +793 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -771,0 +801 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -854,0 +885 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -893,0 +925 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -907,0 +940 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -917 +950 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -924,0 +958 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -935,0 +970 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1007,0 +1043,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1027,0 +1065 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1038 +1076 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1041 +1079 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1048,0 +1087 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1069,0 +1109 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1082 +1122 @@ sniffio = "*"
-brotli = ["brotli", "brotlicffi"]
+brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -1092,0 +1133 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1129,0 +1171 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1140,0 +1183 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1151,0 +1195 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1155,0 +1200 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1168,0 +1214 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1179,0 +1226 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1198,0 +1246 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1220,0 +1269 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1227 +1276 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1241 +1290 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1269,0 +1319 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1287,0 +1338 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1307,0 +1359 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1333,0 +1386 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1395,0 +1449 @@ files = [
+markers = {main = "sys_platform == \"linux\" or sys_platform == \"darwin\""}
@@ -1402,0 +1457 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1422,0 +1478 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1441,0 +1498 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1452,0 +1510 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1500 +1558 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1503 +1561 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1510,0 +1569 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1521,0 +1581 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1535,0 +1596,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -1544 +1606 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -1552,0 +1615 @@ python-versions = "*"
+groups = ["dev"]
@@ -1624,0 +1688 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1707,0 +1772 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1733,0 +1799 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1780,0 +1847 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -1791,0 +1859 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1809,0 +1878 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -1854,0 +1924 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1913,0 +1984 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1929,0 +2001 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1940,0 +2013 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2009,0 +2083 @@ python-versions = ">=3.8,<3.12"
+groups = ["dev"]
@@ -2023,0 +2098 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2034,0 +2110 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2045 +2121 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2054,0 +2131 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2070,0 +2148 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2148 +2226 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2156,0 +2235 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2167,0 +2247 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2181,0 +2262 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2209,0 +2291 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2228,0 +2311 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2240 +2323 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2243,0 +2327 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2245,7 +2329,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2262 +2346 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2277 +2361 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2286,0 +2371 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2300,0 +2386 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2319 +2405 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -2326,0 +2413 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -2340,0 +2428 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2388,0 +2477 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2399,0 +2489 @@ python-versions = "*"
+groups = ["main"]
@@ -2410,0 +2501 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2417 +2508 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -2424,0 +2516 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2444,0 +2537 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2535,3 +2628,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -2547,0 +2641 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2590,0 +2685 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2607,0 +2703 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -2621,0 +2718 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2643,0 +2741 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2679,0 +2778 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2701,0 +2801 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2721,0 +2822 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main"]
@@ -2735,0 +2837 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2749,0 +2852 @@ python-versions = "*"
+groups = ["main"]
@@ -2760,0 +2864 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -2809,0 +2914 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -2830,0 +2936 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -2848,0 +2955 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2874,0 +2982 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -2894,0 +3003 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -2905,0 +3015 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -2916,0 +3027 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2927,0 +3039 @@ python-versions = "*"
+groups = ["dev"]
@@ -2938,0 +3051 @@ python-versions = "*"
+groups = ["main"]
@@ -2960,0 +3074 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2978,0 +3093 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -2993,0 +3109 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3007,0 +3124,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -3024,0 +3143 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3043,0 +3163 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -3054,0 +3175 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3065,0 +3187,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -3091,0 +3215,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -3117,0 +3243,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -3143,0 +3271 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3167,0 +3296 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3187,0 +3317 @@ python-versions = "*"
+groups = ["dev"]
@@ -3198,0 +3329 @@ python-versions = "*"
+groups = ["dev"]
@@ -3209,0 +3341 @@ python-versions = "*"
+groups = ["dev"]
@@ -3220,0 +3353 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -3231,0 +3365 @@ python-versions = ">=2"
+groups = ["main"]
@@ -3242,0 +3377 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3256,0 +3392 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -3263,2 +3399,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -3272,0 +3409 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3284 +3421 @@ typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""}
-standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
+standard = ["colorama (>=0.4) ; sys_platform == \"win32\"", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1) ; sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\"", "watchfiles (>=0.13)", "websockets (>=10.4)"]
@@ -3291,0 +3429 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3334,0 +3473 @@ python-versions = "*"
+groups = ["dev"]
@@ -3345,0 +3485 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3424,0 +3565 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3531,0 +3673 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3614 +3756 @@ multidict = ">=4.0"
-lock-version = "2.0"
+lock-version = "2.1"
diff --git a/services/worker/Dockerfile b/services/worker/Dockerfile
index a55c87cf..bf0df73f 100644
--- a/services/worker/Dockerfile
+++ b/services/worker/Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
@@ -31 +31 @@ WORKDIR /src/services/worker/
-RUN poetry install --no-cache
+RUN poetry install --no-cache --no-root
diff --git a/services/worker/dev.Dockerfile b/services/worker/dev.Dockerfile
index 2358f724..125b8198 100644
--- a/services/worker/dev.Dockerfile
+++ b/services/worker/dev.Dockerfile
@@ -13 +13 @@ ENV PYTHONFAULTHANDLER=1 \
- POETRY_VERSION=1.8.2 \
+ POETRY_VERSION=2.1.3 \
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index 140b9f8a..56e309ea 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -1 +1 @@
-# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
@@ -8,0 +9 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -29,0 +31 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -40,0 +43 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -130 +133 @@ yarl = ">=1.0,<2.0"
-speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
+speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
@@ -137,0 +141 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -151,0 +156 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -162,0 +168 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -176,0 +183 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -187,0 +195 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -200 +208 @@ doc = ["Sphinx (>=6.1.0)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "s
-test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"]
+test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4) ; python_version < \"3.8\"", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17) ; python_version < \"3.12\" and platform_python_implementation == \"CPython\" and platform_system != \"Windows\""]
@@ -208,0 +217 @@ python-versions = "*"
+groups = ["main"]
@@ -219,0 +229 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -230,0 +241 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -241 +252 @@ tests = ["attrs[tests-no-zope]", "zope-interface"]
-tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"]
+tests-no-zope = ["cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "mypy (>=1.1.1) ; platform_python_implementation == \"CPython\"", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version < \"3.11\"", "pytest-xdist[psutil]"]
@@ -248,0 +260 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -262,2 +274,2 @@ stevedore = ">=1.20.0"
-test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"]
-toml = ["tomli (>=1.1.0)"]
+test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0) ; python_version < \"3.11\""]
+toml = ["tomli (>=1.1.0) ; python_version < \"3.11\""]
@@ -271,0 +284 @@ python-versions = "*"
+groups = ["main"]
@@ -317,0 +331 @@ python-versions = "*"
+groups = ["dev"]
@@ -328,0 +343 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -347,0 +363 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -366,0 +383,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "platform_python_implementation == \"CPython\""
@@ -457,0 +476,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "platform_python_implementation == \"PyPy\""
@@ -499,0 +520 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -520,0 +542 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -531,0 +554 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -542,0 +566 @@ python-versions = "*"
+groups = ["main", "dev"]
@@ -608,0 +633 @@ files = [
+markers = {dev = "platform_python_implementation != \"PyPy\""}
@@ -618,0 +644 @@ python-versions = ">=3.7.0"
+groups = ["main", "dev"]
@@ -702,0 +729 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -716,0 +744 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -736,0 +765 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7
+groups = ["main", "dev"]
@@ -740,0 +770 @@ files = [
+markers = {main = "sys_platform == \"win32\" or platform_system == \"Windows\"", dev = "platform_system == \"Windows\" or sys_platform == \"win32\""}
@@ -747,0 +778 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -762,0 +794 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -811,0 +844 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -833,0 +867 @@ python-versions = "*"
+groups = ["main"]
@@ -875,0 +910 @@ python-versions = ">=3.9.0"
+groups = ["main"]
@@ -900 +935 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -907,2 +942,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0) ; python_version >= \"3.10\" and sys_platform != \"win32\"", "tensorflow (>=2.6.0) ; python_version < \"3.10\" and sys_platform != \"win32\"", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14) ; sys_platform != \"win32\"", "jaxlib (>=0.3.14) ; sys_platform != \"win32\"", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0) ; sys_platform != \"win32\"", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -915,2 +950,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
-resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
+resolved_reference = "c4bdfe84586d3789a9db9cde06e1f054043d5569"
@@ -923,0 +959 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -934,0 +971 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -948,0 +986 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -968,0 +1007 @@ python-versions = ">=3.7.0"
+groups = ["main"]
@@ -1028,0 +1068 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -1049,0 +1090 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -1060,0 +1102 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1074,0 +1117 @@ python-versions = ">=3.9"
+groups = ["main", "dev"]
@@ -1083 +1126 @@ testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)",
-typing = ["typing-extensions (>=4.12.2)"]
+typing = ["typing-extensions (>=4.12.2) ; python_version < \"3.11\""]
@@ -1090,0 +1134 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1173,0 +1218 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1212,0 +1258 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1226,0 +1273 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1236 +1283 @@ gitdb = ">=4.0.1,<5"
-test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
+test = ["black", "coverage[toml]", "ddt (>=1.1.1,!=1.4.3)", "mock ; python_version < \"3.8\"", "mypy", "pre-commit", "pytest (>=7.3.1)", "pytest-cov", "pytest-instafail", "pytest-mock", "pytest-sugar", "sumtypes"]
@@ -1243,0 +1291 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1254,0 +1303 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1291,0 +1341 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1363,0 +1414,2 @@ python-versions = ">=3.8"
+groups = ["main"]
+markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""
@@ -1383,0 +1436 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["dev"]
@@ -1394 +1447 @@ webencodings = "*"
-all = ["chardet (>=2.2)", "genshi", "lxml"]
+all = ["chardet (>=2.2)", "genshi", "lxml ; platform_python_implementation == \"CPython\""]
@@ -1397 +1450 @@ genshi = ["genshi"]
-lxml = ["lxml"]
+lxml = ["lxml ; platform_python_implementation == \"CPython\""]
@@ -1404,0 +1458 @@ python-versions = ">=3.8.0"
+groups = ["main"]
@@ -1441,0 +1496 @@ python-versions = ">=3.5"
+groups = ["main", "dev"]
@@ -1452,0 +1508 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1535,0 +1592 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1546,0 +1604 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1563,0 +1622 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1574,0 +1634 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -1592,0 +1653 @@ python-versions = "*"
+groups = ["main"]
@@ -1610,0 +1672 @@ python-versions = "3.9.18"
+groups = ["main"]
@@ -1617 +1679 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c4bdfe84586d3789a9db9cde06e1f054043d5569", extras = ["audio", "vision"]}
@@ -1631 +1693 @@ pillow = "^10.3.0"
-polars = "^1.27.0"
+polars = "^1.27.1"
@@ -1659,0 +1722 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1677,0 +1741 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1697,0 +1762 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1781,0 +1847 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1807,0 +1874 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -1866,0 +1934 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1886,0 +1955 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -1905,0 +1975 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -1916,0 +1987 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -1964 +2035 @@ benchmark = ["asv"]
-dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools", "sphinx", "sphinx-argparse", "towncrier"]
+dev = ["Cython", "IPython", "asv", "black", "bump2version", "check-manifest", "flake8", "furo", "greenlet ; python_version < \"3.12\"", "ipython", "isort", "mypy", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\"", "sphinx", "sphinx-argparse", "towncrier"]
@@ -1967 +2038 @@ lint = ["black", "check-manifest", "flake8", "isort", "mypy"]
-test = ["Cython", "greenlet", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools"]
+test = ["Cython", "greenlet ; python_version < \"3.12\"", "ipython", "pytest", "pytest-cov", "pytest-textual-snapshot", "setuptools ; python_version >= \"3.12\""]
@@ -1974,0 +2046 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -1988,0 +2061 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -1999,0 +2073 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2013,0 +2088 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2062,0 +2138,2 @@ python-versions = "*"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -2071 +2148 @@ docs = ["sphinx"]
-gmpy = ["gmpy2 (>=2.1.0a4)"]
+gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""]
@@ -2079,0 +2157 @@ python-versions = "*"
+groups = ["dev"]
@@ -2151,0 +2230 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2234,0 +2314 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -2260,0 +2341 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2276,0 +2358 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2318,0 +2401 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2365,0 +2449 @@ python-versions = ">=3.5"
+groups = ["dev"]
@@ -2376,0 +2461 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2394,0 +2480 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2439,0 +2526 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2453,0 +2541 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2512,0 +2601 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2528,0 +2618 @@ python-versions = ">=3.7"
+groups = ["main", "dev"]
@@ -2539,0 +2630 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2608,0 +2700 @@ python-versions = ">=3.8,<3.12"
+groups = ["dev"]
@@ -2622,0 +2715 @@ python-versions = ">=2.6"
+groups = ["dev"]
@@ -2633,0 +2727 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2644 +2738 @@ cryptography = ">=36.0.0"
-dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+dev = ["atheris ; python_version < \"3.12\"", "black", "mypy (==0.931)", "nox", "pytest"]
@@ -2653,0 +2748 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2669,0 +2765 @@ python-versions = "*"
+groups = ["main"]
@@ -2680,0 +2777 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -2758 +2855 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa
-typing = ["typing-extensions"]
+typing = ["typing-extensions ; python_version < \"3.10\""]
@@ -2766,0 +2864 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2777,0 +2876 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -2791,0 +2891 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2819,0 +2920 @@ python-versions = ">=3.6.0"
+groups = ["dev"]
@@ -2838,0 +2940 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -2850 +2952 @@ name = "polars"
-version = "1.27.0"
+version = "1.31.0"
@@ -2853,0 +2956 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -2855,7 +2958,7 @@ files = [
- {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
- {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
- {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
- {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
- {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
- {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ccc68cd6877deecd46b13cbd2663ca89ab2a2cb1fe49d5cfc66a9cef166566d9"},
+ {file = "polars-1.31.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:a94c5550df397ad3c2d6adc212e59fd93d9b044ec974dd3653e121e6487a7d21"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ada7940ed92bea65d5500ae7ac1f599798149df8faa5a6db150327c9ddbee4f1"},
+ {file = "polars-1.31.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:b324e6e3e8c6cc6593f9d72fe625f06af65e8d9d47c8686583585533a5e731e1"},
+ {file = "polars-1.31.0-cp39-abi3-win_amd64.whl", hash = "sha256:3fd874d3432fc932863e8cceff2cff8a12a51976b053f2eb6326a0672134a632"},
+ {file = "polars-1.31.0-cp39-abi3-win_arm64.whl", hash = "sha256:62ef23bb9d10dca4c2b945979f9a50812ac4ace4ed9e158a6b5d32a7322e6f75"},
+ {file = "polars-1.31.0.tar.gz", hash = "sha256:59a88054a5fc0135386268ceefdbb6a6cc012d21b5b44fed4f1d3faabbdcbf32"},
@@ -2872 +2975 @@ database = ["polars[adbc,connectorx,sqlalchemy]"]
-deltalake = ["deltalake (>=0.19.0)"]
+deltalake = ["deltalake (>=1.0.0)"]
@@ -2887 +2990 @@ style = ["great-tables (>=0.8.0)"]
-timezone = ["tzdata"]
+timezone = ["tzdata ; platform_system == \"Windows\""]
@@ -2896,0 +3000 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -2942,0 +3047 @@ python-versions = "*"
+groups = ["main"]
@@ -2970,0 +3076 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -2984,0 +3091 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main"]
@@ -3003 +3110 @@ files = [
-test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"]
+test = ["enum34 ; python_version <= \"3.4\"", "ipaddress ; python_version < \"3.0\"", "mock ; python_version < \"3.0\"", "pywin32 ; sys_platform == \"win32\"", "wmi ; sys_platform == \"win32\""]
@@ -3010,0 +3118 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -3024,0 +3133 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3054,0 +3164 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3102,0 +3213 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3193,0 +3305 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
+groups = ["main", "dev"]
@@ -3197,0 +3310 @@ files = [
+markers = {dev = "platform_python_implementation != \"PyPy\""}
@@ -3204,0 +3318 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+groups = ["main"]
@@ -3245,0 +3360 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3264,0 +3380 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3355,0 +3472 @@ python-versions = "*"
+groups = ["main"]
@@ -3366,0 +3484 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -3373 +3491 @@ files = [
-plugins = ["importlib-metadata"]
+plugins = ["importlib-metadata ; python_version < \"3.8\""]
@@ -3380,0 +3499 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -3471,3 +3590,3 @@ aws = ["pymongo-auth-aws (<2.0.0)"]
-encryption = ["certifi", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
-gssapi = ["pykerberos", "winkerberos (>=0.5.0)"]
-ocsp = ["certifi", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
+encryption = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "pymongo[aws]", "pymongocrypt (>=1.6.0,<2.0.0)"]
+gssapi = ["pykerberos ; os_name != \"nt\"", "winkerberos (>=0.5.0) ; os_name == \"nt\""]
+ocsp = ["certifi ; os_name == \"nt\" or sys_platform == \"darwin\"", "cryptography (>=2.5)", "pyopenssl (>=17.2.0)", "requests (<3.0.0)", "service-identity (>=18.1.0)"]
@@ -3483,0 +3603 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3526,0 +3647 @@ python-versions = ">=3.9"
+groups = ["main"]
@@ -3543,0 +3665 @@ python-versions = ">=3.6.8"
+groups = ["dev"]
@@ -3557,0 +3680 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3579,0 +3703 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -3672,0 +3797 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3694,0 +3820 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3712,0 +3839 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -3732,0 +3860 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+groups = ["main", "dev"]
@@ -3746,0 +3875 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -3760,0 +3890 @@ python-versions = "*"
+groups = ["main"]
@@ -3771,0 +3902 @@ python-versions = ">=3.6"
+groups = ["main", "dev"]
@@ -3820,0 +3952 @@ python-versions = ">=3.5"
+groups = ["main"]
@@ -3934,0 +4067 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -4036,0 +4170 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -4057,0 +4192 @@ python-versions = "*"
+groups = ["main"]
@@ -4071,0 +4207 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -4084 +4220 @@ urllib3 = ">=1.25.10,<3.0"
-tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asyncio", "pytest-cov", "pytest-httpserver", "tomli", "tomli-w", "types-requests"]
+tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asyncio", "pytest-cov", "pytest-httpserver", "tomli ; python_version < \"3.11\"", "tomli-w", "types-requests"]
@@ -4091,0 +4228 @@ python-versions = ">=3.7.0"
+groups = ["dev"]
@@ -4109,0 +4247 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -4135,0 +4274 @@ python-versions = ">= 3.8"
+groups = ["main"]
@@ -4155,0 +4295 @@ python-versions = ">= 3.8"
+groups = ["dev"]
@@ -4172,0 +4313 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -4180 +4321 @@ doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-
-test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "jaraco.test", "mypy (==1.10.0)", "packaging (>=23.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (>=0.3.2)", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
+test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21) ; python_version >= \"3.9\" and sys_platform != \"cygwin\"", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "jaraco.test", "mypy (==1.10.0)", "packaging (>=23.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf ; sys_platform != \"cygwin\"", "pytest-ruff (>=0.3.2) ; sys_platform != \"cygwin\"", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
@@ -4187,0 +4329 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["main", "dev"]
@@ -4198,0 +4341 @@ python-versions = ">=3.6,<4.0"
+groups = ["main"]
@@ -4219,0 +4363 @@ python-versions = ">=3.6"
+groups = ["dev"]
@@ -4230,0 +4375 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -4241,0 +4387 @@ python-versions = "*"
+groups = ["dev"]
@@ -4252,0 +4399 @@ python-versions = "*"
+groups = ["main"]
@@ -4274,0 +4422 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -4362,0 +4511 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -4373,0 +4523 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -4384,0 +4535 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -4430,0 +4582 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -4448,0 +4601 @@ python-versions = ">=3.7,<4.0"
+groups = ["main"]
@@ -4463,0 +4617 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -4477,0 +4632,2 @@ python-versions = ">=3.9"
+groups = ["main"]
+markers = "sys_platform == \"linux\" or sys_platform == \"darwin\""
@@ -4494,0 +4651 @@ python-versions = "*"
+groups = ["main"]
@@ -4505,0 +4663 @@ python-versions = "<4.0,>=3.8"
+groups = ["dev"]
@@ -4524,0 +4683 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -4606,0 +4766 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -4627,0 +4788 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
+groups = ["dev"]
@@ -4638,0 +4800 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -4649,0 +4812,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""
@@ -4675,0 +4840,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""
@@ -4701,0 +4868,2 @@ python-versions = ">=3.9.0"
+groups = ["main"]
+markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""
@@ -4727,0 +4896 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -4751,0 +4921 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -4771,0 +4942 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -4792,0 +4964 @@ python-versions = "*"
+groups = ["dev"]
@@ -4803,0 +4976 @@ python-versions = "*"
+groups = ["dev"]
@@ -4814,0 +4988 @@ python-versions = "*"
+groups = ["dev"]
@@ -4825,0 +5000 @@ python-versions = "*"
+groups = ["dev"]
@@ -4839,0 +5015 @@ python-versions = "*"
+groups = ["dev"]
@@ -4850,0 +5027 @@ python-versions = ">=3.8"
+groups = ["main", "dev"]
@@ -4861,0 +5039 @@ python-versions = ">=2"
+groups = ["main"]
@@ -4872,0 +5051 @@ python-versions = ">=3.7"
+groups = ["dev"]
@@ -4886,0 +5066 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
+groups = ["main", "dev"]
@@ -4893,2 +5073,2 @@ files = [
-brotli = ["brotli (==1.0.9)", "brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"]
-secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
+brotli = ["brotli (==1.0.9) ; os_name != \"nt\" and python_version < \"3\" and platform_python_implementation == \"CPython\"", "brotli (>=1.0.9) ; python_version >= \"3\" and platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; (os_name != \"nt\" or python_version >= \"3\") and platform_python_implementation != \"CPython\"", "brotlipy (>=0.6.0) ; os_name == \"nt\" and python_version < \"3\""]
+secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress ; python_version == \"2.7\"", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"]
@@ -4902,0 +5083 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -4914 +5095 @@ typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""}
-standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"]
+standard = ["colorama (>=0.4) ; sys_platform == \"win32\"", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1) ; sys_platform != \"win32\" and sys_platform != \"cygwin\" and platform_python_implementation != \"PyPy\"", "watchfiles (>=0.13)", "websockets (>=10.4)"]
@@ -4921,0 +5103 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -4935,0 +5118 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -4957,0 +5141 @@ python-versions = "*"
+groups = ["dev"]
@@ -4968,0 +5153 @@ python-versions = ">=3.8"
+groups = ["dev"]
@@ -4985,0 +5171 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -5064,0 +5251 @@ python-versions = ">=3.4"
+groups = ["dev"]
@@ -5075,0 +5263 @@ python-versions = ">=3.6"
+groups = ["main"]
@@ -5182,0 +5371 @@ python-versions = ">=3.7"
+groups = ["main"]
@@ -5269,0 +5459 @@ python-versions = ">=3.8"
+groups = ["main"]
@@ -5326 +5516 @@ cffi = ["cffi (>=1.11)"]
-lock-version = "2.0"
+lock-version = "2.1"
@@ -5328 +5518 @@ python-versions = "3.9.18"
-content-hash = "226eb73b10d7c81f291d72c63c76672cbaf8de6cf245b4f5272da1e005ee6c1f"
+content-hash = "eff2575957609b0e06505e20334fd3ab87e399ecb1b55b1cd6e3a61f8578324f"
diff --git a/services/worker/pyproject.toml b/services/worker/pyproject.toml
index 38a36f69..2305e957 100644
--- a/services/worker/pyproject.toml
+++ b/services/worker/pyproject.toml
@@ -19 +19 @@ pillow = "^10.3.0"
-polars = ">=0.20.0"
+polars = "^1.27.1"
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index 4a2e466a..cdb63553 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -1259,0 +1260,17 @@ def commit_parquet_conversion(
+def backward_compat_features(
+ features_dict: Union[dict[str, Any], str, list[Any]],
+) -> Union[dict[str, Any], str, list[Any]]:
+ """`datasets<4` use exported dataset_info and doesn't have the List type"""
+ if isinstance(features_dict, dict):
+ if (
+ "_type" in features_dict
+ and "feature" in features_dict
+ and features_dict["_type"] == "List"
+ and isinstance(features_dict["feature"], (dict, list, str))
+ ):
+ return [backward_compat_features(features_dict["feature"])]
+ return {k: backward_compat_features(v) for k, v in features_dict.items()}
+ else:
+ return features_dict
+
+
@@ -1423 +1440 @@ def compute_config_parquet_and_info_response(
- dataset_info = hf_api.dataset_info(repo_id=dataset, revision=source_revision, files_metadata=True)
+ hf_api_dataset_info = hf_api.dataset_info(repo_id=dataset, revision=source_revision, files_metadata=True)
@@ -1425 +1442 @@ def compute_config_parquet_and_info_response(
- dataset_info=dataset_info,
+ dataset_info=hf_api_dataset_info,
@@ -1493,0 +1511,2 @@ def compute_config_parquet_and_info_response(
+ dataset_info = asdict(builder.info)
+ dataset_info["features"] = backward_compat_features(dataset_info["features"])
@@ -1506 +1525 @@ def compute_config_parquet_and_info_response(
- dataset_info=asdict(builder.info),
+ dataset_info=dataset_info,
diff --git a/tools/Python.mk b/tools/Python.mk
index 05aefeff..5e46736d 100644
--- a/tools/Python.mk
+++ b/tools/Python.mk
@@ -1 +1 @@
-POETRY := $(shell command -v [email protected] 2> /dev/null)
+POETRY := $(shell command -v [email protected] 2> /dev/null)
|
|
3ec1ccba9315bedc1e77577b820511c7d2d305c1
|
Quentin Lhoest
| 2025-07-07T14:11:43 |
bump datasets 4 dev (#3210)
|
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index 8d499220..ff139b0e 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -672,2 +672,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1483 +1483 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3512,11 +3511,0 @@ test = ["black (>=22.3.0,<23.0.0)", "coverage (>=6.2,<7.0)", "isort (>=5.0.6,<6.
-[[package]]
-name = "typing-extensions"
-version = "4.9.0"
-description = "Backported and Experimental Type Hints for Python 3.8+"
-optional = false
-python-versions = ">=3.8"
-files = [
- {file = "typing_extensions-4.9.0-py3-none-any.whl", hash = "sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd"},
- {file = "typing_extensions-4.9.0.tar.gz", hash = "sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783"},
-]
-
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index 3e6ce8a8..5ab9525e 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -605,2 +605,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1166 +1166 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3321,11 +3320,0 @@ files = [
-[[package]]
-name = "typing-extensions"
-version = "4.6.3"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.6.3-py3-none-any.whl", hash = "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26"},
- {file = "typing_extensions-4.6.3.tar.gz", hash = "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5"},
-]
-
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index 130c86ba..3e673ca4 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -605,2 +605,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1166 +1166 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3296,11 +3295,0 @@ telegram = ["requests"]
-[[package]]
-name = "typing-extensions"
-version = "4.6.3"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.6.3-py3-none-any.whl", hash = "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26"},
- {file = "typing_extensions-4.6.3.tar.gz", hash = "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5"},
-]
-
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index b6488319..32a6de29 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -596,2 +596,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1180 +1180 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3085,11 +3084,0 @@ telegram = ["requests"]
-[[package]]
-name = "typing-extensions"
-version = "4.8.0"
-description = "Backported and Experimental Type Hints for Python 3.8+"
-optional = false
-python-versions = ">=3.8"
-files = [
- {file = "typing_extensions-4.8.0-py3-none-any.whl", hash = "sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0"},
- {file = "typing_extensions-4.8.0.tar.gz", hash = "sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef"},
-]
-
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index f26cfe3a..f0cc4dac 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -629,2 +629,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -4012 +4012 @@ python-versions = "3.9.18"
-content-hash = "93e4e51f77567deab8d5311623780b0dbb3d8c8b498b09a134b2407273d8e1d2"
+content-hash = "c4314e9c7f16fbefd6fd004b467aa9cba642bc9db026b20d5b4eb43b7912ff7e"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index 6f4a2861..64358f31 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12 +12 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index 397b6e19..025e0c64 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -619,2 +619,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1257 +1257 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3461,11 +3460,0 @@ files = [
-[[package]]
-name = "typing-extensions"
-version = "4.6.3"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.6.3-py3-none-any.whl", hash = "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26"},
- {file = "typing_extensions-4.6.3.tar.gz", hash = "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5"},
-]
-
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index c8c46bb0..2ecede8c 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -619,2 +619,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1276 +1276 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3509,11 +3508,0 @@ files = [
-[[package]]
-name = "typing-extensions"
-version = "4.6.3"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.6.3-py3-none-any.whl", hash = "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26"},
- {file = "typing_extensions-4.6.3.tar.gz", hash = "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5"},
-]
-
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index 8d6d81e2..559ddddc 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -626,2 +626,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1246 +1246 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3320,11 +3319,0 @@ files = [
-[[package]]
-name = "typing-extensions"
-version = "4.7.1"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"},
- {file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"},
-]
-
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index 3843526c..1955f495 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -607,2 +607,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1230 +1230 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3306,11 +3305,0 @@ files = [
-[[package]]
-name = "typing-extensions"
-version = "4.7.1"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"},
- {file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"},
-]
-
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index d93fa84a..566a1e81 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -619,2 +619,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1302 +1302 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3602,11 +3601,0 @@ files = [
-[[package]]
-name = "typing-extensions"
-version = "4.7.1"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.7.1-py3-none-any.whl", hash = "sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36"},
- {file = "typing_extensions-4.7.1.tar.gz", hash = "sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2"},
-]
-
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index 2bcf07a9..0a6d3e44 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -607,2 +607,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1227 +1227 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
@@ -3215,11 +3214,0 @@ files = [
-[[package]]
-name = "typing-extensions"
-version = "4.6.3"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.6.3-py3-none-any.whl", hash = "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26"},
- {file = "typing_extensions-4.6.3.tar.gz", hash = "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5"},
-]
-
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index 0cea8003..140b9f8a 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -915,2 +915,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
-resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
+resolved_reference = "8a19de052e3d79f79cea26821454bbcf0e9dcd68"
@@ -1617 +1617 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "8a19de052e3d79f79cea26821454bbcf0e9dcd68", extras = ["audio", "vision"]}
|
|
057b8afc168f048b6b210e9c9fe21f062890c911
|
Quentin Lhoest
| 2025-07-07T12:54:36 |
Upgrade to `datasets` 4 (for torchcodec + List) (#3207)
|
diff --git a/docs/source/filter.md b/docs/source/filter.md
index 93e7b632..00a86ec6 100644
--- a/docs/source/filter.md
+++ b/docs/source/filter.md
@@ -149 +149 @@ For example, here are the `features` and the slice 150-151 of matching `rows` of
- "_type":"Sequence"
+ "_type":"List"
diff --git a/docs/source/first_rows.md b/docs/source/first_rows.md
index d3381521..5a4ffd6a 100644
--- a/docs/source/first_rows.md
+++ b/docs/source/first_rows.md
@@ -96 +96 @@ For example, here are the `features` and the first 100 `rows` of the `ibm/duorc`
- "_type": "Sequence"
+ "_type": "List"
diff --git a/docs/source/info.md b/docs/source/info.md
index 4c123ab3..4cca5228 100644
--- a/docs/source/info.md
+++ b/docs/source/info.md
@@ -67 +67 @@ The endpoint response is a JSON with the `dataset_info` key. Its structure and c
- "_type": "Sequence"
+ "_type": "List"
diff --git a/docs/source/openapi.json b/docs/source/openapi.json
index f5d55a02..0c854b07 100644
--- a/docs/source/openapi.json
+++ b/docs/source/openapi.json
@@ -386,0 +387,3 @@
+ {
+ "$ref": "#/components/schemas/LegacyListFeature"
+ },
@@ -525,0 +529,13 @@
+ "ListFeature": {
+ "type": "object",
+ "required": ["_type", "feature"],
+ "properties": {
+ "_type": {
+ "type": "string",
+ "enum": ["List"]
+ },
+ "feature": {
+ "$ref": "#/components/schemas/Feature"
+ }
+ }
+ },
@@ -545 +561 @@
- "ListFeature": {
+ "LegacyListFeature": {
@@ -2207 +2223 @@
- "_type": "Sequence"
+ "_type": "List"
@@ -2218 +2234 @@
- "_type": "Sequence"
+ "_type": "List"
@@ -2230 +2246 @@
- "_type": "Sequence"
+ "_type": "List"
@@ -2232 +2248 @@
- "_type": "Sequence"
+ "_type": "List"
@@ -4261 +4277 @@
- "_type": "Sequence"
+ "_type": "List"
diff --git a/docs/source/rows.md b/docs/source/rows.md
index 46fae09e..585f1134 100644
--- a/docs/source/rows.md
+++ b/docs/source/rows.md
@@ -111 +111 @@ For example, here are the `features` and the slice of `rows` of the `ibm/duorc`/
- "_type": "Sequence"
+ "_type": "List"
diff --git a/docs/source/search.md b/docs/source/search.md
index 3192e526..8ed6c092 100644
--- a/docs/source/search.md
+++ b/docs/source/search.md
@@ -116 +116 @@ For example, here are the `features` and the slice 150-151 of matching `rows` of
- "_type": "Sequence"
+ "_type": "List"
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index 9ac26991..8d499220 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -627 +627 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "3.0.3.dev0"
@@ -630 +630 @@ optional = false
-python-versions = ">=3.9.0"
+python-versions = ">=3.8.0"
@@ -634,0 +635 @@ develop = false
+aiohttp = "*"
@@ -637,2 +638,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
-huggingface-hub = ">=0.24.0"
+fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
+huggingface-hub = ">=0.23.0"
@@ -649 +650 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
@@ -656 +657 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -659 +659,0 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
-pdfs = ["pdfplumber (>=0.11.4)"]
@@ -664,2 +664,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -672,2 +672,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1483 +1483 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1502,0 +1503 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -1506,0 +1508,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1625,10 +1631,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -1784,0 +1782,17 @@ pymongo = ">=3.4,<5.0"
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -2804,0 +2819,17 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.3"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.3-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:ded891963944e5f13b03b88f6d9e982e816a4ec8689fe360876eef000c161f2b"},
+ {file = "pymupdf-1.26.3-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:436a33c738bb10eadf00395d18a6992b801ffb26521ee1f361ae786dd283327a"},
+ {file = "pymupdf-1.26.3-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:a2d7a3cd442f12f05103cb3bb1415111517f0a97162547a3720f3bbbc5e0b51c"},
+ {file = "pymupdf-1.26.3-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:454f38c8cf07eb333eb4646dca10517b6e90f57ce2daa2265a78064109d85555"},
+ {file = "pymupdf-1.26.3-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:759b75d2f710ff4edf8d097d2e98f60e9ecef47632cead6f949b3412facdb9f0"},
+ {file = "pymupdf-1.26.3-cp39-abi3-win32.whl", hash = "sha256:a839ed44742faa1cd4956bb18068fe5aae435d67ce915e901318646c4e7bbea6"},
+ {file = "pymupdf-1.26.3-cp39-abi3-win_amd64.whl", hash = "sha256:b4cd5124d05737944636cf45fc37ce5824f10e707b0342efe109c7b6bd37a9cc"},
+ {file = "pymupdf-1.26.3.tar.gz", hash = "sha256:b7d2c3ffa9870e1e4416d18862f5ccd356af5fe337b4511093bbbce2ca73b7e5"},
+]
+
@@ -3203 +3233,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3285,0 +3316,17 @@ starlette = ">=0.12.2"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3318,0 +3366,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3373,0 +3523,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index ec660329..3e6ce8a8 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "3.0.3.dev0"
@@ -563 +563 @@ optional = false
-python-versions = ">=3.9.0"
+python-versions = ">=3.8.0"
@@ -567,0 +568 @@ develop = false
+aiohttp = "*"
@@ -570,2 +571,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
-huggingface-hub = ">=0.24.0"
+fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
+huggingface-hub = ">=0.23.0"
@@ -582 +583 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
@@ -589 +590 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -592 +592,0 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
-pdfs = ["pdfplumber (>=0.11.4)"]
@@ -597,2 +597,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -605,2 +605,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1166 +1166 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1190,0 +1191,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1523,0 +1530,17 @@ pymongo = ">=3.4,<5.0"
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -2591,0 +2615 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -2985 +3008,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3081,0 +3105,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3133,0 +3174,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3189,0 +3332,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index 8afab502..130c86ba 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "3.0.3.dev0"
@@ -563 +563 @@ optional = false
-python-versions = ">=3.9.0"
+python-versions = ">=3.8.0"
@@ -567,0 +568 @@ develop = false
+aiohttp = "*"
@@ -570,2 +571,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
-huggingface-hub = ">=0.24.0"
+fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
+huggingface-hub = ">=0.23.0"
@@ -582 +583 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
@@ -589 +590 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -592 +592,0 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
-pdfs = ["pdfplumber (>=0.11.4)"]
@@ -597,2 +597,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -605,2 +605,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1166 +1166 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1190,0 +1191,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1523,0 +1530,17 @@ pymongo = ">=3.4,<5.0"
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -2591,0 +2615 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -2985 +3008,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3081,0 +3105,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3133,0 +3174,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3164,0 +3307,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index ec8e0565..b6488319 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -221,14 +220,0 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte
-[[package]]
-name = "audioread"
-version = "3.0.1"
-description = "Multi-library, cross-platform audio decoding."
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "audioread-3.0.1-py3-none-any.whl", hash = "sha256:4cdce70b8adc0da0a3c9e0d85fb10b3ace30fbdf8d1670fd443929b61d117c33"},
- {file = "audioread-3.0.1.tar.gz", hash = "sha256:ac5460a5498c48bdf2e8e767402583a4dcd13f4414d286f42ce4379e8b35066d"},
-]
-
-[package.extras]
-test = ["tox"]
-
@@ -567 +553 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "4.0.0.dev0"
@@ -579 +564,0 @@ huggingface-hub = ">=0.24.0"
-librosa = {version = "*", optional = true, markers = "extra == \"audio\""}
@@ -589 +574 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+torchcodec = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -594 +579 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["soundfile (>=0.12.1)", "torchcodec (>=0.4.0)"]
@@ -596,2 +581,2 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
-docs = ["s3fs", "tensorflow (>=2.6.0)", "torch", "transformers"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+docs = ["tensorflow (>=2.6.0)", "torch", "transformers"]
@@ -601 +585,0 @@ quality = ["ruff (>=0.3.0)"]
-s3 = ["s3fs"]
@@ -604,2 +588,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -612,13 +596,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-
-[[package]]
-name = "decorator"
-version = "5.1.1"
-description = "Decorators for Humans"
-optional = false
-python-versions = ">=3.5"
-files = [
- {file = "decorator-5.1.1-py3-none-any.whl", hash = "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186"},
- {file = "decorator-5.1.1.tar.gz", hash = "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330"},
-]
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1195,26 +1167,0 @@ files = [
-[[package]]
-name = "joblib"
-version = "1.3.2"
-description = "Lightweight pipelining with Python functions"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "joblib-1.3.2-py3-none-any.whl", hash = "sha256:ef4331c65f239985f3f2220ecc87db222f08fd22097a3dd5698f693875f8cbb9"},
- {file = "joblib-1.3.2.tar.gz", hash = "sha256:92f865e621e17784e7955080b6d042489e3b8e294949cc44c6eac304f59772b1"},
-]
-
-[[package]]
-name = "lazy-loader"
-version = "0.3"
-description = "lazy_loader"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "lazy_loader-0.3-py3-none-any.whl", hash = "sha256:1e9e76ee8631e264c62ce10006718e80b2cfc74340d17d1031e0f84af7478554"},
- {file = "lazy_loader-0.3.tar.gz", hash = "sha256:3b68898e34f5b2a29daaaac172c6555512d0f32074f147e2254e4a6d9d838f37"},
-]
-
-[package.extras]
-lint = ["pre-commit (>=3.3)"]
-test = ["pytest (>=7.4)", "pytest-cov (>=4.1)"]
-
@@ -1233 +1180 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1257,0 +1205,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1264,31 +1216,0 @@ url = "../libcommon"
-[[package]]
-name = "librosa"
-version = "0.10.1"
-description = "Python module for audio and music processing"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "librosa-0.10.1-py3-none-any.whl", hash = "sha256:7ab91d9f5fcb75ea14848a05d3b1f825cf8d0c42ca160d19ae6874f2de2d8223"},
- {file = "librosa-0.10.1.tar.gz", hash = "sha256:832f7d150d6dd08ed2aa08c0567a4be58330635c32ddd2208de9bc91300802c7"},
-]
-
-[package.dependencies]
-audioread = ">=2.1.9"
-decorator = ">=4.3.0"
-joblib = ">=0.14"
-lazy-loader = ">=0.1"
-msgpack = ">=1.0"
-numba = ">=0.51.0"
-numpy = ">=1.20.3,<1.22.0 || >1.22.0,<1.22.1 || >1.22.1,<1.22.2 || >1.22.2"
-pooch = ">=1.0"
-scikit-learn = ">=0.20.0"
-scipy = ">=1.2.0"
-soundfile = ">=0.12.1"
-soxr = ">=0.3.2"
-typing-extensions = ">=4.1.1"
-
-[package.extras]
-display = ["matplotlib (>=3.3.0)"]
-docs = ["ipython (>=7.0)", "matplotlib (>=3.3.0)", "mir-eval (>=0.5)", "numba (>=0.51)", "numpydoc", "presets", "sphinx (!=1.3.1)", "sphinx-gallery (>=0.7)", "sphinx-multiversion (>=0.2.3)", "sphinx-rtd-theme (>=1.2.0)", "sphinxcontrib-svg2pdfconverter"]
-tests = ["matplotlib (>=3.3.0)", "packaging (>=20.0)", "pytest", "pytest-cov", "pytest-mpl", "resampy (>=0.2.2)", "samplerate", "types-decorator"]
-
@@ -1333,30 +1254,0 @@ test = ["coverage", "pytest", "pytest-cov"]
-[[package]]
-name = "llvmlite"
-version = "0.42.0"
-description = "lightweight wrapper around basic LLVM functionality"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3366938e1bf63d26c34fbfb4c8e8d2ded57d11e0567d5bb243d89aab1eb56098"},
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c35da49666a21185d21b551fc3caf46a935d54d66969d32d72af109b5e7d2b6f"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:70f44ccc3c6220bd23e0ba698a63ec2a7d3205da0d848804807f37fc243e3f77"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:763f8d8717a9073b9e0246998de89929071d15b47f254c10eef2310b9aac033d"},
- {file = "llvmlite-0.42.0-cp310-cp310-win_amd64.whl", hash = "sha256:8d90edf400b4ceb3a0e776b6c6e4656d05c7187c439587e06f86afceb66d2be5"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae511caed28beaf1252dbaf5f40e663f533b79ceb408c874c01754cafabb9cbf"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:81e674c2fe85576e6c4474e8c7e7aba7901ac0196e864fe7985492b737dbab65"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb3975787f13eb97629052edb5017f6c170eebc1c14a0433e8089e5db43bcce6"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5bece0cdf77f22379f19b1959ccd7aee518afa4afbd3656c6365865f84903f9"},
- {file = "llvmlite-0.42.0-cp311-cp311-win_amd64.whl", hash = "sha256:7e0c4c11c8c2aa9b0701f91b799cb9134a6a6de51444eff5a9087fc7c1384275"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:08fa9ab02b0d0179c688a4216b8939138266519aaa0aa94f1195a8542faedb56"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b2fce7d355068494d1e42202c7aff25d50c462584233013eb4470c33b995e3ee"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebe66a86dc44634b59a3bc860c7b20d26d9aaffcd30364ebe8ba79161a9121f4"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d47494552559e00d81bfb836cf1c4d5a5062e54102cc5767d5aa1e77ccd2505c"},
- {file = "llvmlite-0.42.0-cp312-cp312-win_amd64.whl", hash = "sha256:05cb7e9b6ce69165ce4d1b994fbdedca0c62492e537b0cc86141b6e2c78d5888"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bdd3888544538a94d7ec99e7c62a0cdd8833609c85f0c23fcb6c5c591aec60ad"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d0936c2067a67fb8816c908d5457d63eba3e2b17e515c5fe00e5ee2bace06040"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a78ab89f1924fc11482209f6799a7a3fc74ddc80425a7a3e0e8174af0e9e2301"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7599b65c7af7abbc978dbf345712c60fd596aa5670496561cc10e8a71cebfb2"},
- {file = "llvmlite-0.42.0-cp39-cp39-win_amd64.whl", hash = "sha256:43d65cc4e206c2e902c1004dd5418417c4efa6c1d04df05c6c5675a27e8ca90e"},
- {file = "llvmlite-0.42.0.tar.gz", hash = "sha256:f92b09243c0cc3f457da8b983f67bd8e1295d0f5b3746c7a1861d7a99403854a"},
-]
-
@@ -1416,10 +1307,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -1590,0 +1473,17 @@ pymongo = ">=3.4,<5.0"
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -1843,34 +1741,0 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"]
-[[package]]
-name = "numba"
-version = "0.59.1"
-description = "compiling Python code using LLVM"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "numba-0.59.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:97385a7f12212c4f4bc28f648720a92514bee79d7063e40ef66c2d30600fd18e"},
- {file = "numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0b77aecf52040de2a1eb1d7e314497b9e56fba17466c80b457b971a25bb1576d"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3476a4f641bfd58f35ead42f4dcaf5f132569c4647c6f1360ccf18ee4cda3990"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:525ef3f820931bdae95ee5379c670d5c97289c6520726bc6937a4a7d4230ba24"},
- {file = "numba-0.59.1-cp310-cp310-win_amd64.whl", hash = "sha256:990e395e44d192a12105eca3083b61307db7da10e093972ca285c85bef0963d6"},
- {file = "numba-0.59.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:43727e7ad20b3ec23ee4fc642f5b61845c71f75dd2825b3c234390c6d8d64051"},
- {file = "numba-0.59.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:411df625372c77959570050e861981e9d196cc1da9aa62c3d6a836b5cc338966"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2801003caa263d1e8497fb84829a7ecfb61738a95f62bc05693fcf1733e978e4"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:dd2842fac03be4e5324ebbbd4d2d0c8c0fc6e0df75c09477dd45b288a0777389"},
- {file = "numba-0.59.1-cp311-cp311-win_amd64.whl", hash = "sha256:0594b3dfb369fada1f8bb2e3045cd6c61a564c62e50cf1f86b4666bc721b3450"},
- {file = "numba-0.59.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:1cce206a3b92836cdf26ef39d3a3242fec25e07f020cc4feec4c4a865e340569"},
- {file = "numba-0.59.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8c8b4477763cb1fbd86a3be7050500229417bf60867c93e131fd2626edb02238"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d80bce4ef7e65bf895c29e3889ca75a29ee01da80266a01d34815918e365835"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f7ad1d217773e89a9845886401eaaab0a156a90aa2f179fdc125261fd1105096"},
- {file = "numba-0.59.1-cp312-cp312-win_amd64.whl", hash = "sha256:5bf68f4d69dd3a9f26a9b23548fa23e3bcb9042e2935257b471d2a8d3c424b7f"},
- {file = "numba-0.59.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4e0318ae729de6e5dbe64c75ead1a95eb01fabfe0e2ebed81ebf0344d32db0ae"},
- {file = "numba-0.59.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0f68589740a8c38bb7dc1b938b55d1145244c8353078eea23895d4f82c8b9ec1"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:649913a3758891c77c32e2d2a3bcbedf4a69f5fea276d11f9119677c45a422e8"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9712808e4545270291d76b9a264839ac878c5eb7d8b6e02c970dc0ac29bc8187"},
- {file = "numba-0.59.1-cp39-cp39-win_amd64.whl", hash = "sha256:8d51ccd7008a83105ad6a0082b6a2b70f1142dc7cfd76deb8c5a862367eb8c86"},
- {file = "numba-0.59.1.tar.gz", hash = "sha256:76f69132b96028d2774ed20415e8c528a34e3299a40581bae178f0994a2f370b"},
-]
-
-[package.dependencies]
-llvmlite = "==0.42.*"
-numpy = ">=1.22,<1.27"
-
@@ -2283,15 +2147,0 @@ testing = ["aboutcode-toolkit (>=6.0.0)", "black", "pytest (>=6,!=7.0.0)", "pyte
-[[package]]
-name = "platformdirs"
-version = "3.10.0"
-description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "platformdirs-3.10.0-py3-none-any.whl", hash = "sha256:d7c24979f292f916dc9cbf8648319032f551ea8c49a4c9bf2fb556a02070ec1d"},
- {file = "platformdirs-3.10.0.tar.gz", hash = "sha256:b45696dab2d7cc691a3226759c0d3b00c47c8b6e293d96f6436f733303f77f6d"},
-]
-
-[package.extras]
-docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.1)", "sphinx-autodoc-typehints (>=1.24)"]
-test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)"]
-
@@ -2356,21 +2205,0 @@ xlsxwriter = ["xlsxwriter"]
-[[package]]
-name = "pooch"
-version = "1.7.0"
-description = "\"Pooch manages your Python library's sample data files: it automatically downloads and stores them in a local directory, with support for versioning and corruption checks.\""
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "pooch-1.7.0-py3-none-any.whl", hash = "sha256:74258224fc33d58f53113cf955e8d51bf01386b91492927d0d1b6b341a765ad7"},
- {file = "pooch-1.7.0.tar.gz", hash = "sha256:f174a1041b6447f0eef8860f76d17f60ed2f857dc0efa387a7f08228af05d998"},
-]
-
-[package.dependencies]
-packaging = ">=20.0"
-platformdirs = ">=2.5.0"
-requests = ">=2.19.0"
-
-[package.extras]
-progress = ["tqdm (>=4.41.0,<5.0.0)"]
-sftp = ["paramiko (>=2.7.0)"]
-xxhash = ["xxhash (>=1.4.3)"]
-
@@ -2689,0 +2519 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -2840 +2669,0 @@ files = [
- {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2848 +2676,0 @@ files = [
- {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2851,6 +2678,0 @@ files = [
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
- {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
- {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
- {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2873 +2694,0 @@ files = [
- {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2881 +2701,0 @@ files = [
- {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -2972,87 +2791,0 @@ boto3 = ["aiobotocore[boto3] (>=2.5.4,<3.0.0)"]
-[[package]]
-name = "scikit-learn"
-version = "1.5.0"
-description = "A set of python modules for machine learning and data mining"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:12e40ac48555e6b551f0a0a5743cc94cc5a765c9513fe708e01f0aa001da2801"},
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:f405c4dae288f5f6553b10c4ac9ea7754d5180ec11e296464adb5d6ac68b6ef5"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df8ccabbf583315f13160a4bb06037bde99ea7d8211a69787a6b7c5d4ebb6fc3"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c75ea812cd83b1385bbfa94ae971f0d80adb338a9523f6bbcb5e0b0381151d4"},
- {file = "scikit_learn-1.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:a90c5da84829a0b9b4bf00daf62754b2be741e66b5946911f5bdfaa869fcedd6"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2a65af2d8a6cce4e163a7951a4cfbfa7fceb2d5c013a4b593686c7f16445cf9d"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:4c0c56c3005f2ec1db3787aeaabefa96256580678cec783986836fc64f8ff622"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f77547165c00625551e5c250cefa3f03f2fc92c5e18668abd90bfc4be2e0bff"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:118a8d229a41158c9f90093e46b3737120a165181a1b58c03461447aa4657415"},
- {file = "scikit_learn-1.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:a03b09f9f7f09ffe8c5efffe2e9de1196c696d811be6798ad5eddf323c6f4d40"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:460806030c666addee1f074788b3978329a5bfdc9b7d63e7aad3f6d45c67a210"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:1b94d6440603752b27842eda97f6395f570941857456c606eb1d638efdb38184"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d82c2e573f0f2f2f0be897e7a31fcf4e73869247738ab8c3ce7245549af58ab8"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3a10e1d9e834e84d05e468ec501a356226338778769317ee0b84043c0d8fb06"},
- {file = "scikit_learn-1.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:855fc5fa8ed9e4f08291203af3d3e5fbdc4737bd617a371559aaa2088166046e"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:40fb7d4a9a2db07e6e0cae4dc7bdbb8fada17043bac24104d8165e10e4cff1a2"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:47132440050b1c5beb95f8ba0b2402bbd9057ce96ec0ba86f2f445dd4f34df67"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:174beb56e3e881c90424e21f576fa69c4ffcf5174632a79ab4461c4c960315ac"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261fe334ca48f09ed64b8fae13f9b46cc43ac5f580c4a605cbb0a517456c8f71"},
- {file = "scikit_learn-1.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:057b991ac64b3e75c9c04b5f9395eaf19a6179244c089afdebaad98264bff37c"},
- {file = "scikit_learn-1.5.0.tar.gz", hash = "sha256:789e3db01c750ed6d496fa2db7d50637857b451e57bcae863bff707c1247bef7"},
-]
-
-[package.dependencies]
-joblib = ">=1.2.0"
-numpy = ">=1.19.5"
-scipy = ">=1.6.0"
-threadpoolctl = ">=3.1.0"
-
-[package.extras]
-benchmark = ["matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "pandas (>=1.1.5)"]
-build = ["cython (>=3.0.10)", "meson-python (>=0.15.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)"]
-docs = ["Pillow (>=7.1.2)", "matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)", "sphinx (>=6.0.0)", "sphinx-copybutton (>=0.5.2)", "sphinx-gallery (>=0.15.0)", "sphinx-prompt (>=1.3.0)", "sphinxext-opengraph (>=0.4.2)"]
-examples = ["matplotlib (>=3.3.4)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)"]
-install = ["joblib (>=1.2.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)", "threadpoolctl (>=3.1.0)"]
-maintenance = ["conda-lock (==2.5.6)"]
-tests = ["black (>=24.3.0)", "matplotlib (>=3.3.4)", "mypy (>=1.9)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "pyamg (>=4.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.2.1)", "scikit-image (>=0.17.2)"]
-
-[[package]]
-name = "scipy"
-version = "1.11.3"
-description = "Fundamental algorithms for scientific computing in Python"
-optional = false
-python-versions = "<3.13,>=3.9"
-files = [
- {file = "scipy-1.11.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:370f569c57e1d888304052c18e58f4a927338eafdaef78613c685ca2ea0d1fa0"},
- {file = "scipy-1.11.3-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:9885e3e4f13b2bd44aaf2a1a6390a11add9f48d5295f7a592393ceb8991577a3"},
- {file = "scipy-1.11.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e04aa19acc324a1a076abb4035dabe9b64badb19f76ad9c798bde39d41025cdc"},
- {file = "scipy-1.11.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3e1a8a4657673bfae1e05e1e1d6e94b0cabe5ed0c7c144c8aa7b7dbb774ce5c1"},
- {file = "scipy-1.11.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7abda0e62ef00cde826d441485e2e32fe737bdddee3324e35c0e01dee65e2a88"},
- {file = "scipy-1.11.3-cp310-cp310-win_amd64.whl", hash = "sha256:033c3fd95d55012dd1148b201b72ae854d5086d25e7c316ec9850de4fe776929"},
- {file = "scipy-1.11.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:925c6f09d0053b1c0f90b2d92d03b261e889b20d1c9b08a3a51f61afc5f58165"},
- {file = "scipy-1.11.3-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:5664e364f90be8219283eeb844323ff8cd79d7acbd64e15eb9c46b9bc7f6a42a"},
- {file = "scipy-1.11.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:00f325434b6424952fbb636506f0567898dca7b0f7654d48f1c382ea338ce9a3"},
- {file = "scipy-1.11.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5f290cf561a4b4edfe8d1001ee4be6da60c1c4ea712985b58bf6bc62badee221"},
- {file = "scipy-1.11.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:91770cb3b1e81ae19463b3c235bf1e0e330767dca9eb4cd73ba3ded6c4151e4d"},
- {file = "scipy-1.11.3-cp311-cp311-win_amd64.whl", hash = "sha256:e1f97cd89c0fe1a0685f8f89d85fa305deb3067d0668151571ba50913e445820"},
- {file = "scipy-1.11.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:dfcc1552add7cb7c13fb70efcb2389d0624d571aaf2c80b04117e2755a0c5d15"},
- {file = "scipy-1.11.3-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:0d3a136ae1ff0883fffbb1b05b0b2fea251cb1046a5077d0b435a1839b3e52b7"},
- {file = "scipy-1.11.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bae66a2d7d5768eaa33008fa5a974389f167183c87bf39160d3fefe6664f8ddc"},
- {file = "scipy-1.11.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2f6dee6cbb0e263b8142ed587bc93e3ed5e777f1f75448d24fb923d9fd4dce6"},
- {file = "scipy-1.11.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:74e89dc5e00201e71dd94f5f382ab1c6a9f3ff806c7d24e4e90928bb1aafb280"},
- {file = "scipy-1.11.3-cp312-cp312-win_amd64.whl", hash = "sha256:90271dbde4be191522b3903fc97334e3956d7cfb9cce3f0718d0ab4fd7d8bfd6"},
- {file = "scipy-1.11.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a63d1ec9cadecce838467ce0631c17c15c7197ae61e49429434ba01d618caa83"},
- {file = "scipy-1.11.3-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:5305792c7110e32ff155aed0df46aa60a60fc6e52cd4ee02cdeb67eaccd5356e"},
- {file = "scipy-1.11.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9ea7f579182d83d00fed0e5c11a4aa5ffe01460444219dedc448a36adf0c3917"},
- {file = "scipy-1.11.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c77da50c9a91e23beb63c2a711ef9e9ca9a2060442757dffee34ea41847d8156"},
- {file = "scipy-1.11.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:15f237e890c24aef6891c7d008f9ff7e758c6ef39a2b5df264650eb7900403c0"},
- {file = "scipy-1.11.3-cp39-cp39-win_amd64.whl", hash = "sha256:4b4bb134c7aa457e26cc6ea482b016fef45db71417d55cc6d8f43d799cdf9ef2"},
- {file = "scipy-1.11.3.tar.gz", hash = "sha256:bba4d955f54edd61899776bad459bf7326e14b9fa1c552181f0479cc60a568cd"},
-]
-
-[package.dependencies]
-numpy = ">=1.21.6,<1.28.0"
-
-[package.extras]
-dev = ["click", "cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyle", "pydevtool", "rich-click", "ruff", "types-psutil", "typing_extensions"]
-doc = ["jupytext", "matplotlib (>2)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (==0.9.0)", "sphinx (!=4.1.0)", "sphinx-design (>=0.2.0)"]
-test = ["asv", "gmpy2", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"]
-
@@ -3113 +2845,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3126,37 +2857,0 @@ numpy = ["numpy"]
-[[package]]
-name = "soxr"
-version = "0.4.0"
-description = "High quality, one-dimensional sample-rate conversion library"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "soxr-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0be9dbc6cb0de2e2147ad33ffe4dee0391ed38125248253f53d3f1a05b65425"},
- {file = "soxr-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:46c1dce06d156f9a6563c41f97d5d6978ccc993c3682c6f8190438c0f7417d36"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:784d2dd6d43d2663d384ed7e1f6a1156f98395bbd889b0a9def6c61a9e17cda1"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ee59424f4f1c81f6a9f3d03b4bde27992272dc8c36f9b08af7f31ce720fa6ba"},
- {file = "soxr-0.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:2975734033e8da5a241f2498b65513a160882dd1283cf5eb7eac5b3b262ae668"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:38374140503b17b3234d0deb83dfe0319727df1dbab41e1a576b61405fc82767"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a370f661576916e8b208990eb70e5db4e07ab025b47492a633370846bc0a9678"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4301600889696051bdb1469f8b10cace0d7e2d16a351c6b5fc947b3b41e10a58"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:12a0e460f1199aaed544a30c67f5df7a452b0647b63e0df706a17577e963e38b"},
- {file = "soxr-0.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:2f6f55c520fb90040f604b1203f2100b70c789d973bb0fd79b221187e3841311"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:226d405c40094f5fd5dd4b80c66fc61cc108018da0216833e843d82ccffdadcb"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c53d4bc99908e715665b3d45f0cc06e652e4f53bf4acf9e758c1cce02977e411"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a9cc0620d7b1effab9d408427711d52c3db6e295b5504dfcf549f4636904ed0d"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f99aaef14a7d268966c06cf6a06729eb98b2276493710d24a6f20fdcfc3ad26e"},
- {file = "soxr-0.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:63a59d36b8f8f3b1501e4fca2c034aacceb9b4d6888295afd269afbce5eb2f3f"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:38e65bb8beba55d8049ecf16e73c05ed3dd5e156d6086f594c40edb3181a7900"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5fd5e43fe568451152e20e16a71a61cda6340da934c344733a26674e041ab445"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83b3e477ff61b3579ec2ad66fa7a9b362072d5d9a5d1e61db3d366d26afbb8c8"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba0989025d70c472d62bf0e68778c9bbd0c9bee111c708cf64c26406937ca6be"},
- {file = "soxr-0.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:5e71482f092051544b196387e3779d726f26df30cba307424eac7a96285c5b64"},
- {file = "soxr-0.4.0.tar.gz", hash = "sha256:02385e3de07e28ddbc19ab41216075d889575895e778ce2ada950d5f46cf6a52"},
-]
-
-[package.dependencies]
-numpy = "*"
-
-[package.extras]
-docs = ["linkify-it-py", "myst-parser", "sphinx", "sphinx-book-theme"]
-test = ["pytest"]
-
@@ -3209,0 +2905,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3229,11 +2940,0 @@ syntax = ["tree-sitter (>=0.20.1,<0.21.0)", "tree-sitter-languages (==1.10.2)"]
-[[package]]
-name = "threadpoolctl"
-version = "3.2.0"
-description = "threadpoolctl"
-optional = false
-python-versions = ">=3.8"
-files = [
- {file = "threadpoolctl-3.2.0-py3-none-any.whl", hash = "sha256:2b7818516e423bdaebb97c723f86a7c6b0a83d3f3b0970328d66f4d9104dc032"},
- {file = "threadpoolctl-3.2.0.tar.gz", hash = "sha256:c96a0ba3bdddeaca37dc4cc7344aafad41cdb8c313f74fdfe387a867bba93355"},
-]
-
@@ -3261,0 +2963,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3293,0 +3097,11 @@ files = [
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
+[[package]]
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index a30ddf8e..f26cfe3a 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -221,14 +220,0 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte
-[[package]]
-name = "audioread"
-version = "3.0.1"
-description = "Multi-library, cross-platform audio decoding."
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "audioread-3.0.1-py3-none-any.whl", hash = "sha256:4cdce70b8adc0da0a3c9e0d85fb10b3ace30fbdf8d1670fd443929b61d117c33"},
- {file = "audioread-3.0.1.tar.gz", hash = "sha256:ac5460a5498c48bdf2e8e767402583a4dcd13f4414d286f42ce4379e8b35066d"},
-]
-
-[package.extras]
-test = ["tox"]
-
@@ -600 +586 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "4.0.0.dev0"
@@ -612 +597,0 @@ huggingface-hub = ">=0.24.0"
-librosa = {version = "*", optional = true, markers = "extra == \"audio\""}
@@ -622 +607 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+torchcodec = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -627 +612 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["soundfile (>=0.12.1)", "torchcodec (>=0.4.0)"]
@@ -629,2 +614,2 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
-docs = ["s3fs", "tensorflow (>=2.6.0)", "torch", "transformers"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+docs = ["tensorflow (>=2.6.0)", "torch", "transformers"]
@@ -634 +618,0 @@ quality = ["ruff (>=0.3.0)"]
-s3 = ["s3fs"]
@@ -637,2 +621,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -645,13 +629,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-
-[[package]]
-name = "decorator"
-version = "5.2.1"
-description = "Decorators for Humans"
-optional = false
-python-versions = ">=3.8"
-files = [
- {file = "decorator-5.2.1-py3-none-any.whl", hash = "sha256:d316bb415a2d9e2d2b3abcc4084c6502fc09240e292cd76a76afc106a1c8e04a"},
- {file = "decorator-5.2.1.tar.gz", hash = "sha256:65f266143752f734b0a7cc83c46f4618af75b8c5911b00ccb61d0ac9b6da0360"},
-]
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1225,61 +1197,0 @@ files = [
-[[package]]
-name = "joblib"
-version = "1.5.1"
-description = "Lightweight pipelining with Python functions"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "joblib-1.5.1-py3-none-any.whl", hash = "sha256:4719a31f054c7d766948dcd83e9613686b27114f190f717cec7eaa2084f8a74a"},
- {file = "joblib-1.5.1.tar.gz", hash = "sha256:f4f86e351f39fe3d0d32a9f2c3d8af1ee4cec285aafcb27003dda5205576b444"},
-]
-
-[[package]]
-name = "lazy-loader"
-version = "0.4"
-description = "Makes it easy to load subpackages and functions on demand."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "lazy_loader-0.4-py3-none-any.whl", hash = "sha256:342aa8e14d543a154047afb4ba8ef17f5563baad3fc610d7b15b213b0f119efc"},
- {file = "lazy_loader-0.4.tar.gz", hash = "sha256:47c75182589b91a4e1a85a136c074285a5ad4d9f39c63e0d7fb76391c4574cd1"},
-]
-
-[package.dependencies]
-packaging = "*"
-
-[package.extras]
-dev = ["changelist (==0.5)"]
-lint = ["pre-commit (==3.7.0)"]
-test = ["pytest (>=7.4)", "pytest-cov (>=4.1)"]
-
-[[package]]
-name = "librosa"
-version = "0.11.0"
-description = "Python module for audio and music processing"
-optional = false
-python-versions = ">=3.8"
-files = [
- {file = "librosa-0.11.0-py3-none-any.whl", hash = "sha256:0b6415c4fd68bff4c29288abe67c6d80b587e0e1e2cfb0aad23e4559504a7fa1"},
- {file = "librosa-0.11.0.tar.gz", hash = "sha256:f5ed951ca189b375bbe2e33b2abd7e040ceeee302b9bbaeeffdfddb8d0ace908"},
-]
-
-[package.dependencies]
-audioread = ">=2.1.9"
-decorator = ">=4.3.0"
-joblib = ">=1.0"
-lazy_loader = ">=0.1"
-msgpack = ">=1.0"
-numba = ">=0.51.0"
-numpy = ">=1.22.3"
-pooch = ">=1.1"
-scikit-learn = ">=1.1.0"
-scipy = ">=1.6.0"
-soundfile = ">=0.12.1"
-soxr = ">=0.3.2"
-typing_extensions = ">=4.1.1"
-
-[package.extras]
-display = ["matplotlib (>=3.5.0)"]
-docs = ["ipython (>=7.0)", "matplotlib (>=3.5.0)", "mir_eval (>=0.5)", "numba (>=0.51)", "numpydoc", "presets", "sphinx (!=1.3.1)", "sphinx-copybutton (>=0.5.2)", "sphinx-gallery (>=0.7)", "sphinx-multiversion (>=0.2.3)", "sphinx_rtd_theme (>=1.2.0)", "sphinxcontrib-googleanalytics (>=0.4)", "sphinxcontrib-svg2pdfconverter"]
-tests = ["matplotlib (>=3.5.0)", "packaging (>=20.0)", "pytest", "pytest-cov", "pytest-mpl", "resampy (>=0.2.2)", "samplerate", "types-decorator"]
-
@@ -1324,30 +1235,0 @@ test = ["coverage", "pytest", "pytest-cov"]
-[[package]]
-name = "llvmlite"
-version = "0.43.0"
-description = "lightweight wrapper around basic LLVM functionality"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "llvmlite-0.43.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a289af9a1687c6cf463478f0fa8e8aa3b6fb813317b0d70bf1ed0759eab6f761"},
- {file = "llvmlite-0.43.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6d4fd101f571a31acb1559ae1af30f30b1dc4b3186669f92ad780e17c81e91bc"},
- {file = "llvmlite-0.43.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7d434ec7e2ce3cc8f452d1cd9a28591745de022f931d67be688a737320dfcead"},
- {file = "llvmlite-0.43.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6912a87782acdff6eb8bf01675ed01d60ca1f2551f8176a300a886f09e836a6a"},
- {file = "llvmlite-0.43.0-cp310-cp310-win_amd64.whl", hash = "sha256:14f0e4bf2fd2d9a75a3534111e8ebeb08eda2f33e9bdd6dfa13282afacdde0ed"},
- {file = "llvmlite-0.43.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3e8d0618cb9bfe40ac38a9633f2493d4d4e9fcc2f438d39a4e854f39cc0f5f98"},
- {file = "llvmlite-0.43.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e0a9a1a39d4bf3517f2af9d23d479b4175ead205c592ceeb8b89af48a327ea57"},
- {file = "llvmlite-0.43.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c1da416ab53e4f7f3bc8d4eeba36d801cc1894b9fbfbf2022b29b6bad34a7df2"},
- {file = "llvmlite-0.43.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:977525a1e5f4059316b183fb4fd34fa858c9eade31f165427a3977c95e3ee749"},
- {file = "llvmlite-0.43.0-cp311-cp311-win_amd64.whl", hash = "sha256:d5bd550001d26450bd90777736c69d68c487d17bf371438f975229b2b8241a91"},
- {file = "llvmlite-0.43.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f99b600aa7f65235a5a05d0b9a9f31150c390f31261f2a0ba678e26823ec38f7"},
- {file = "llvmlite-0.43.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:35d80d61d0cda2d767f72de99450766250560399edc309da16937b93d3b676e7"},
- {file = "llvmlite-0.43.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eccce86bba940bae0d8d48ed925f21dbb813519169246e2ab292b5092aba121f"},
- {file = "llvmlite-0.43.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:df6509e1507ca0760787a199d19439cc887bfd82226f5af746d6977bd9f66844"},
- {file = "llvmlite-0.43.0-cp312-cp312-win_amd64.whl", hash = "sha256:7a2872ee80dcf6b5dbdc838763d26554c2a18aa833d31a2635bff16aafefb9c9"},
- {file = "llvmlite-0.43.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9cd2a7376f7b3367019b664c21f0c61766219faa3b03731113ead75107f3b66c"},
- {file = "llvmlite-0.43.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:18e9953c748b105668487b7c81a3e97b046d8abf95c4ddc0cd3c94f4e4651ae8"},
- {file = "llvmlite-0.43.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:74937acd22dc11b33946b67dca7680e6d103d6e90eeaaaf932603bec6fe7b03a"},
- {file = "llvmlite-0.43.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc9efc739cc6ed760f795806f67889923f7274276f0eb45092a1473e40d9b867"},
- {file = "llvmlite-0.43.0-cp39-cp39-win_amd64.whl", hash = "sha256:47e147cdda9037f94b399bf03bfd8a6b6b1f2f90be94a454e3386f006455a9b4"},
- {file = "llvmlite-0.43.0.tar.gz", hash = "sha256:ae2b5b5c3ef67354824fb75517c8db5fbe93bc02cd9671f3c62271626bc041d5"},
-]
-
@@ -1407,10 +1288,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -1630,0 +1503,17 @@ xray = ["aws-xray-sdk (>=0.93,!=0.96)", "setuptools"]
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -1886,34 +1774,0 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"]
-[[package]]
-name = "numba"
-version = "0.60.0"
-description = "compiling Python code using LLVM"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "numba-0.60.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5d761de835cd38fb400d2c26bb103a2726f548dc30368853121d66201672e651"},
- {file = "numba-0.60.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:159e618ef213fba758837f9837fb402bbe65326e60ba0633dbe6c7f274d42c1b"},
- {file = "numba-0.60.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1527dc578b95c7c4ff248792ec33d097ba6bef9eda466c948b68dfc995c25781"},
- {file = "numba-0.60.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fe0b28abb8d70f8160798f4de9d486143200f34458d34c4a214114e445d7124e"},
- {file = "numba-0.60.0-cp310-cp310-win_amd64.whl", hash = "sha256:19407ced081d7e2e4b8d8c36aa57b7452e0283871c296e12d798852bc7d7f198"},
- {file = "numba-0.60.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a17b70fc9e380ee29c42717e8cc0bfaa5556c416d94f9aa96ba13acb41bdece8"},
- {file = "numba-0.60.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3fb02b344a2a80efa6f677aa5c40cd5dd452e1b35f8d1c2af0dfd9ada9978e4b"},
- {file = "numba-0.60.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5f4fde652ea604ea3c86508a3fb31556a6157b2c76c8b51b1d45eb40c8598703"},
- {file = "numba-0.60.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4142d7ac0210cc86432b818338a2bc368dc773a2f5cf1e32ff7c5b378bd63ee8"},
- {file = "numba-0.60.0-cp311-cp311-win_amd64.whl", hash = "sha256:cac02c041e9b5bc8cf8f2034ff6f0dbafccd1ae9590dc146b3a02a45e53af4e2"},
- {file = "numba-0.60.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:d7da4098db31182fc5ffe4bc42c6f24cd7d1cb8a14b59fd755bfee32e34b8404"},
- {file = "numba-0.60.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:38d6ea4c1f56417076ecf8fc327c831ae793282e0ff51080c5094cb726507b1c"},
- {file = "numba-0.60.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:62908d29fb6a3229c242e981ca27e32a6e606cc253fc9e8faeb0e48760de241e"},
- {file = "numba-0.60.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0ebaa91538e996f708f1ab30ef4d3ddc344b64b5227b67a57aa74f401bb68b9d"},
- {file = "numba-0.60.0-cp312-cp312-win_amd64.whl", hash = "sha256:f75262e8fe7fa96db1dca93d53a194a38c46da28b112b8a4aca168f0df860347"},
- {file = "numba-0.60.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:01ef4cd7d83abe087d644eaa3d95831b777aa21d441a23703d649e06b8e06b74"},
- {file = "numba-0.60.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:819a3dfd4630d95fd574036f99e47212a1af41cbcb019bf8afac63ff56834449"},
- {file = "numba-0.60.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0b983bd6ad82fe868493012487f34eae8bf7dd94654951404114f23c3466d34b"},
- {file = "numba-0.60.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c151748cd269ddeab66334bd754817ffc0cabd9433acb0f551697e5151917d25"},
- {file = "numba-0.60.0-cp39-cp39-win_amd64.whl", hash = "sha256:3031547a015710140e8c87226b4cfe927cac199835e5bf7d4fe5cb64e814e3ab"},
- {file = "numba-0.60.0.tar.gz", hash = "sha256:5df6158e5584eece5fc83294b949fd30b9f1125df7708862205217e068aabf16"},
-]
-
-[package.dependencies]
-llvmlite = "==0.43.*"
-numpy = ">=1.22,<2.1"
-
@@ -2339,16 +2193,0 @@ testing = ["aboutcode-toolkit (>=6.0.0)", "black", "pytest (>=6,!=7.0.0)", "pyte
-[[package]]
-name = "platformdirs"
-version = "4.3.8"
-description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`."
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "platformdirs-4.3.8-py3-none-any.whl", hash = "sha256:ff7059bb7eb1179e2685604f4aaf157cfd9535242bd23742eadc3c13542139b4"},
- {file = "platformdirs-4.3.8.tar.gz", hash = "sha256:3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc"},
-]
-
-[package.extras]
-docs = ["furo (>=2024.8.6)", "proselint (>=0.14)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
-test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=8.3.4)", "pytest-cov (>=6)", "pytest-mock (>=3.14)"]
-type = ["mypy (>=1.14.1)"]
-
@@ -2413,21 +2251,0 @@ xlsxwriter = ["xlsxwriter"]
-[[package]]
-name = "pooch"
-version = "1.8.2"
-description = "A friend to fetch your data files"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "pooch-1.8.2-py3-none-any.whl", hash = "sha256:3529a57096f7198778a5ceefd5ac3ef0e4d06a6ddaf9fc2d609b806f25302c47"},
- {file = "pooch-1.8.2.tar.gz", hash = "sha256:76561f0de68a01da4df6af38e9955c4c9d1a5c90da73f7e40276a5728ec83d10"},
-]
-
-[package.dependencies]
-packaging = ">=20.0"
-platformdirs = ">=2.5.0"
-requests = ">=2.19.0"
-
-[package.extras]
-progress = ["tqdm (>=4.41.0,<5.0.0)"]
-sftp = ["paramiko (>=2.7.0)"]
-xxhash = ["xxhash (>=1.4.3)"]
-
@@ -2726,0 +2545 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -3035,96 +2853,0 @@ crt = ["botocore[crt] (>=1.33.2,<2.0a.0)"]
-[[package]]
-name = "scikit-learn"
-version = "1.6.1"
-description = "A set of python modules for machine learning and data mining"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "scikit_learn-1.6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d056391530ccd1e501056160e3c9673b4da4805eb67eb2bdf4e983e1f9c9204e"},
- {file = "scikit_learn-1.6.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:0c8d036eb937dbb568c6242fa598d551d88fb4399c0344d95c001980ec1c7d36"},
- {file = "scikit_learn-1.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8634c4bd21a2a813e0a7e3900464e6d593162a29dd35d25bdf0103b3fce60ed5"},
- {file = "scikit_learn-1.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:775da975a471c4f6f467725dff0ced5c7ac7bda5e9316b260225b48475279a1b"},
- {file = "scikit_learn-1.6.1-cp310-cp310-win_amd64.whl", hash = "sha256:8a600c31592bd7dab31e1c61b9bbd6dea1b3433e67d264d17ce1017dbdce8002"},
- {file = "scikit_learn-1.6.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:72abc587c75234935e97d09aa4913a82f7b03ee0b74111dcc2881cba3c5a7b33"},
- {file = "scikit_learn-1.6.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:b3b00cdc8f1317b5f33191df1386c0befd16625f49d979fe77a8d44cae82410d"},
- {file = "scikit_learn-1.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dc4765af3386811c3ca21638f63b9cf5ecf66261cc4815c1db3f1e7dc7b79db2"},
- {file = "scikit_learn-1.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:25fc636bdaf1cc2f4a124a116312d837148b5e10872147bdaf4887926b8c03d8"},
- {file = "scikit_learn-1.6.1-cp311-cp311-win_amd64.whl", hash = "sha256:fa909b1a36e000a03c382aade0bd2063fd5680ff8b8e501660c0f59f021a6415"},
- {file = "scikit_learn-1.6.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:926f207c804104677af4857b2c609940b743d04c4c35ce0ddc8ff4f053cddc1b"},
- {file = "scikit_learn-1.6.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:2c2cae262064e6a9b77eee1c8e768fc46aa0b8338c6a8297b9b6759720ec0ff2"},
- {file = "scikit_learn-1.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1061b7c028a8663fb9a1a1baf9317b64a257fcb036dae5c8752b2abef31d136f"},
- {file = "scikit_learn-1.6.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e69fab4ebfc9c9b580a7a80111b43d214ab06250f8a7ef590a4edf72464dd86"},
- {file = "scikit_learn-1.6.1-cp312-cp312-win_amd64.whl", hash = "sha256:70b1d7e85b1c96383f872a519b3375f92f14731e279a7b4c6cfd650cf5dffc52"},
- {file = "scikit_learn-1.6.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2ffa1e9e25b3d93990e74a4be2c2fc61ee5af85811562f1288d5d055880c4322"},
- {file = "scikit_learn-1.6.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:dc5cf3d68c5a20ad6d571584c0750ec641cc46aeef1c1507be51300e6003a7e1"},
- {file = "scikit_learn-1.6.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c06beb2e839ecc641366000ca84f3cf6fa9faa1777e29cf0c04be6e4d096a348"},
- {file = "scikit_learn-1.6.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e8ca8cb270fee8f1f76fa9bfd5c3507d60c6438bbee5687f81042e2bb98e5a97"},
- {file = "scikit_learn-1.6.1-cp313-cp313-win_amd64.whl", hash = "sha256:7a1c43c8ec9fde528d664d947dc4c0789be4077a3647f232869f41d9bf50e0fb"},
- {file = "scikit_learn-1.6.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:a17c1dea1d56dcda2fac315712f3651a1fea86565b64b48fa1bc090249cbf236"},
- {file = "scikit_learn-1.6.1-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:6a7aa5f9908f0f28f4edaa6963c0a6183f1911e63a69aa03782f0d924c830a35"},
- {file = "scikit_learn-1.6.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0650e730afb87402baa88afbf31c07b84c98272622aaba002559b614600ca691"},
- {file = "scikit_learn-1.6.1-cp313-cp313t-win_amd64.whl", hash = "sha256:3f59fe08dc03ea158605170eb52b22a105f238a5d512c4470ddeca71feae8e5f"},
- {file = "scikit_learn-1.6.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6849dd3234e87f55dce1db34c89a810b489ead832aaf4d4550b7ea85628be6c1"},
- {file = "scikit_learn-1.6.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:e7be3fa5d2eb9be7d77c3734ff1d599151bb523674be9b834e8da6abe132f44e"},
- {file = "scikit_learn-1.6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:44a17798172df1d3c1065e8fcf9019183f06c87609b49a124ebdf57ae6cb0107"},
- {file = "scikit_learn-1.6.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8b7a3b86e411e4bce21186e1c180d792f3d99223dcfa3b4f597ecc92fa1a422"},
- {file = "scikit_learn-1.6.1-cp39-cp39-win_amd64.whl", hash = "sha256:7a73d457070e3318e32bdb3aa79a8d990474f19035464dfd8bede2883ab5dc3b"},
- {file = "scikit_learn-1.6.1.tar.gz", hash = "sha256:b4fc2525eca2c69a59260f583c56a7557c6ccdf8deafdba6e060f94c1c59738e"},
-]
-
-[package.dependencies]
-joblib = ">=1.2.0"
-numpy = ">=1.19.5"
-scipy = ">=1.6.0"
-threadpoolctl = ">=3.1.0"
-
-[package.extras]
-benchmark = ["matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "pandas (>=1.1.5)"]
-build = ["cython (>=3.0.10)", "meson-python (>=0.16.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)"]
-docs = ["Pillow (>=7.1.2)", "matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "polars (>=0.20.30)", "pooch (>=1.6.0)", "pydata-sphinx-theme (>=0.15.3)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)", "sphinx (>=7.3.7)", "sphinx-copybutton (>=0.5.2)", "sphinx-design (>=0.5.0)", "sphinx-design (>=0.6.0)", "sphinx-gallery (>=0.17.1)", "sphinx-prompt (>=1.4.0)", "sphinx-remove-toctrees (>=1.0.0.post1)", "sphinxcontrib-sass (>=0.3.4)", "sphinxext-opengraph (>=0.9.1)", "towncrier (>=24.8.0)"]
-examples = ["matplotlib (>=3.3.4)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)"]
-install = ["joblib (>=1.2.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)", "threadpoolctl (>=3.1.0)"]
-maintenance = ["conda-lock (==2.5.6)"]
-tests = ["black (>=24.3.0)", "matplotlib (>=3.3.4)", "mypy (>=1.9)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "polars (>=0.20.30)", "pooch (>=1.6.0)", "pyamg (>=4.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.5.1)", "scikit-image (>=0.17.2)"]
-
-[[package]]
-name = "scipy"
-version = "1.13.1"
-description = "Fundamental algorithms for scientific computing in Python"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "scipy-1.13.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:20335853b85e9a49ff7572ab453794298bcf0354d8068c5f6775a0eabf350aca"},
- {file = "scipy-1.13.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:d605e9c23906d1994f55ace80e0125c587f96c020037ea6aa98d01b4bd2e222f"},
- {file = "scipy-1.13.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cfa31f1def5c819b19ecc3a8b52d28ffdcc7ed52bb20c9a7589669dd3c250989"},
- {file = "scipy-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f26264b282b9da0952a024ae34710c2aff7d27480ee91a2e82b7b7073c24722f"},
- {file = "scipy-1.13.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:eccfa1906eacc02de42d70ef4aecea45415f5be17e72b61bafcfd329bdc52e94"},
- {file = "scipy-1.13.1-cp310-cp310-win_amd64.whl", hash = "sha256:2831f0dc9c5ea9edd6e51e6e769b655f08ec6db6e2e10f86ef39bd32eb11da54"},
- {file = "scipy-1.13.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:27e52b09c0d3a1d5b63e1105f24177e544a222b43611aaf5bc44d4a0979e32f9"},
- {file = "scipy-1.13.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:54f430b00f0133e2224c3ba42b805bfd0086fe488835effa33fa291561932326"},
- {file = "scipy-1.13.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e89369d27f9e7b0884ae559a3a956e77c02114cc60a6058b4e5011572eea9299"},
- {file = "scipy-1.13.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a78b4b3345f1b6f68a763c6e25c0c9a23a9fd0f39f5f3d200efe8feda560a5fa"},
- {file = "scipy-1.13.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:45484bee6d65633752c490404513b9ef02475b4284c4cfab0ef946def50b3f59"},
- {file = "scipy-1.13.1-cp311-cp311-win_amd64.whl", hash = "sha256:5713f62f781eebd8d597eb3f88b8bf9274e79eeabf63afb4a737abc6c84ad37b"},
- {file = "scipy-1.13.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:5d72782f39716b2b3509cd7c33cdc08c96f2f4d2b06d51e52fb45a19ca0c86a1"},
- {file = "scipy-1.13.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:017367484ce5498445aade74b1d5ab377acdc65e27095155e448c88497755a5d"},
- {file = "scipy-1.13.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:949ae67db5fa78a86e8fa644b9a6b07252f449dcf74247108c50e1d20d2b4627"},
- {file = "scipy-1.13.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:de3ade0e53bc1f21358aa74ff4830235d716211d7d077e340c7349bc3542e884"},
- {file = "scipy-1.13.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2ac65fb503dad64218c228e2dc2d0a0193f7904747db43014645ae139c8fad16"},
- {file = "scipy-1.13.1-cp312-cp312-win_amd64.whl", hash = "sha256:cdd7dacfb95fea358916410ec61bbc20440f7860333aee6d882bb8046264e949"},
- {file = "scipy-1.13.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:436bbb42a94a8aeef855d755ce5a465479c721e9d684de76bf61a62e7c2b81d5"},
- {file = "scipy-1.13.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:8335549ebbca860c52bf3d02f80784e91a004b71b059e3eea9678ba994796a24"},
- {file = "scipy-1.13.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d533654b7d221a6a97304ab63c41c96473ff04459e404b83275b60aa8f4b7004"},
- {file = "scipy-1.13.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:637e98dcf185ba7f8e663e122ebf908c4702420477ae52a04f9908707456ba4d"},
- {file = "scipy-1.13.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a014c2b3697bde71724244f63de2476925596c24285c7a637364761f8710891c"},
- {file = "scipy-1.13.1-cp39-cp39-win_amd64.whl", hash = "sha256:392e4ec766654852c25ebad4f64e4e584cf19820b980bc04960bca0b0cd6eaa2"},
- {file = "scipy-1.13.1.tar.gz", hash = "sha256:095a87a0312b08dfd6a6155cbbd310a8c51800fc931b8c0b84003014b874ed3c"},
-]
-
-[package.dependencies]
-numpy = ">=1.22.4,<2.3"
-
-[package.extras]
-dev = ["cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyle", "pydevtool", "rich-click", "ruff", "types-psutil", "typing_extensions"]
-doc = ["jupyterlite-pyodide-kernel", "jupyterlite-sphinx (>=0.12.0)", "jupytext", "matplotlib (>=3.5)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (>=0.15.2)", "sphinx (>=5.0.0)", "sphinx-design (>=0.4.0)"]
-test = ["array-api-strict", "asv", "gmpy2", "hypothesis (>=6.30)", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"]
-
@@ -3185 +2907,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3198,37 +2919,0 @@ numpy = ["numpy"]
-[[package]]
-name = "soxr"
-version = "0.5.0.post1"
-description = "High quality, one-dimensional sample-rate conversion library"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "soxr-0.5.0.post1-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:7406d782d85f8cf64e66b65e6b7721973de8a1dc50b9e88bc2288c343a987484"},
- {file = "soxr-0.5.0.post1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fa0a382fb8d8e2afed2c1642723b2d2d1b9a6728ff89f77f3524034c8885b8c9"},
- {file = "soxr-0.5.0.post1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b01d3efb95a2851f78414bcd00738b0253eec3f5a1e5482838e965ffef84969"},
- {file = "soxr-0.5.0.post1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fcc049b0a151a65aa75b92f0ac64bb2dba785d16b78c31c2b94e68c141751d6d"},
- {file = "soxr-0.5.0.post1-cp310-cp310-win_amd64.whl", hash = "sha256:97f269bc26937c267a2ace43a77167d0c5c8bba5a2b45863bb6042b5b50c474e"},
- {file = "soxr-0.5.0.post1-cp311-cp311-macosx_10_14_x86_64.whl", hash = "sha256:6fb77b626773a966e3d8f6cb24f6f74b5327fa5dc90f1ff492450e9cdc03a378"},
- {file = "soxr-0.5.0.post1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:39e0f791ba178d69cd676485dbee37e75a34f20daa478d90341ecb7f6d9d690f"},
- {file = "soxr-0.5.0.post1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f0b558f445ba4b64dbcb37b5f803052eee7d93b1dbbbb97b3ec1787cb5a28eb"},
- {file = "soxr-0.5.0.post1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca6903671808e0a6078b0d146bb7a2952b118dfba44008b2aa60f221938ba829"},
- {file = "soxr-0.5.0.post1-cp311-cp311-win_amd64.whl", hash = "sha256:c4d8d5283ed6f5efead0df2c05ae82c169cfdfcf5a82999c2d629c78b33775e8"},
- {file = "soxr-0.5.0.post1-cp312-abi3-macosx_10_14_x86_64.whl", hash = "sha256:fef509466c9c25f65eae0ce1e4b9ac9705d22c6038c914160ddaf459589c6e31"},
- {file = "soxr-0.5.0.post1-cp312-abi3-macosx_11_0_arm64.whl", hash = "sha256:4704ba6b13a3f1e41d12acf192878384c1c31f71ce606829c64abdf64a8d7d32"},
- {file = "soxr-0.5.0.post1-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bd052a66471a7335b22a6208601a9d0df7b46b8d087dce4ff6e13eed6a33a2a1"},
- {file = "soxr-0.5.0.post1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3f16810dd649ab1f433991d2a9661e9e6a116c2b4101039b53b3c3e90a094fc"},
- {file = "soxr-0.5.0.post1-cp312-abi3-win_amd64.whl", hash = "sha256:b1be9fee90afb38546bdbd7bde714d1d9a8c5a45137f97478a83b65e7f3146f6"},
- {file = "soxr-0.5.0.post1-cp39-cp39-macosx_10_14_x86_64.whl", hash = "sha256:c5af7b355959061beb90a1d73c4834ece4549f07b708f8c73c088153cec29935"},
- {file = "soxr-0.5.0.post1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e1dda616fc797b1507b65486f3116ed2c929f13c722922963dd419d64ada6c07"},
- {file = "soxr-0.5.0.post1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94de2812368e98cb42b4eaeddf8ee1657ecc19bd053f8e67b9b5aa12a3592012"},
- {file = "soxr-0.5.0.post1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c8e9c980637e03d3f345a4fd81d56477a58c294fb26205fa121bc4eb23d9d01"},
- {file = "soxr-0.5.0.post1-cp39-cp39-win_amd64.whl", hash = "sha256:7e71b0b0db450f36de70f1047505231db77a713f8c47df9342582ae8a4b828f2"},
- {file = "soxr-0.5.0.post1.tar.gz", hash = "sha256:7092b9f3e8a416044e1fa138c8172520757179763b85dc53aa9504f4813cff73"},
-]
-
-[package.dependencies]
-numpy = "*"
-
-[package.extras]
-docs = ["linkify-it-py", "myst-parser", "sphinx", "sphinx-book-theme"]
-test = ["pytest"]
-
@@ -3281,0 +2967,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3301,11 +3002,0 @@ syntax = ["tree-sitter (>=0.20.1,<0.21.0)", "tree-sitter-languages (==1.10.2)"]
-[[package]]
-name = "threadpoolctl"
-version = "3.6.0"
-description = "threadpoolctl"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "threadpoolctl-3.6.0-py3-none-any.whl", hash = "sha256:43a0b8fd5a2928500110039e43a5eed8480b918967083ea48dc3ab9f13c4a7fb"},
- {file = "threadpoolctl-3.6.0.tar.gz", hash = "sha256:8ab8b4aa3491d812b623328249fab5302a68d2d71745c8a4c719a2fcaba9f44e"},
-]
-
@@ -3333,0 +3025,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3807,2 +3600,2 @@ name = "typing-extensions"
-version = "4.6.3"
-description = "Backported and Experimental Type Hints for Python 3.7+"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
@@ -3810 +3603 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -3812,2 +3605,2 @@ files = [
- {file = "typing_extensions-4.6.3-py3-none-any.whl", hash = "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26"},
- {file = "typing_extensions-4.6.3.tar.gz", hash = "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5"},
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
@@ -4219 +4012 @@ python-versions = "3.9.18"
-content-hash = "4ea5f0dea17f076ccac2b3d127ab067d56cadaa3db82a39fc4c96aaa8fe7d7b4"
+content-hash = "93e4e51f77567deab8d5311623780b0dbb3d8c8b498b09a134b2407273d8e1d2"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index 60e00362..6f4a2861 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12 +12 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -36,0 +37,7 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == 'linux' and platform_machine != 'aarch64'"},
+ { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == 'darwin' and platform_machine != 'arm64'"},
+ { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'"},
+ { url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == 'linux' and platform_machine == 'aarch64'"},
+]
+torchcodec = "0.4.0"
@@ -86 +93,2 @@ module = [
- "dateutil.*"
+ "dateutil.*",
+ "torchcodec.*"
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index 56585100..6dfcaacf 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -8 +8 @@ from typing import Any, Optional, Union
-from datasets import ClassLabel, Image, LargeList, Sequence, Value
+from datasets import ClassLabel, Image, LargeList, List, Value
@@ -147 +147 @@ def feature_to_croissant_field(
- elif isinstance(feature, (LargeList, list, Sequence)):
+ elif isinstance(feature, (LargeList, List)):
@@ -149,6 +149 @@ def feature_to_croissant_field(
- if isinstance(feature, list):
- if len(feature) != 1:
- return None
- sub_feature = feature[0]
- array_shape.append(-1)
- else:
+ if isinstance(feature, List):
@@ -156,2 +151,4 @@ def feature_to_croissant_field(
- sub_feature = feature.feature
- while isinstance(sub_feature, Sequence):
+ else:
+ array_shape.append(-1)
+ sub_feature = feature.feature
+ while isinstance(sub_feature, List):
@@ -160 +157,3 @@ def feature_to_croissant_field(
- field = feature_to_croissant_field(distribution_name, field_name, column, sub_feature)
+ field = feature_to_croissant_field(
+ distribution_name, field_name, column, sub_feature, add_transform=True, json_path=json_path
+ )
diff --git a/libs/libcommon/src/libcommon/duckdb_utils.py b/libs/libcommon/src/libcommon/duckdb_utils.py
index a4422925..56fb3fc3 100644
--- a/libs/libcommon/src/libcommon/duckdb_utils.py
+++ b/libs/libcommon/src/libcommon/duckdb_utils.py
@@ -171 +171 @@ def compute_transformed_data(parquet_paths: list[Path], features: dict[str, Any]
- isinstance(feature, dict) and feature.get("_type") in ("LargeList", "Sequence")
+ isinstance(feature, dict) and feature.get("_type") in ("LargeList", "List", "Sequence")
diff --git a/libs/libcommon/src/libcommon/parquet_utils.py b/libs/libcommon/src/libcommon/parquet_utils.py
index be32482b..fd08d0c9 100644
--- a/libs/libcommon/src/libcommon/parquet_utils.py
+++ b/libs/libcommon/src/libcommon/parquet_utils.py
@@ -136 +136 @@ def is_list_pa_type(parquet_file_path: Path, feature_name: str) -> bool:
- # Check if (Sequence) feature is internally a List, because it can also be Struct, see
+ # Check if (Sequence) feature is internally a List, because it can also be Struct in datasets<4, see
diff --git a/libs/libcommon/src/libcommon/statistics_utils.py b/libs/libcommon/src/libcommon/statistics_utils.py
index 37a034aa..cb41e584 100644
--- a/libs/libcommon/src/libcommon/statistics_utils.py
+++ b/libs/libcommon/src/libcommon/statistics_utils.py
@@ -10 +9,0 @@ from typing import Any, Callable, Optional, TypedDict, Union
-import librosa
@@ -15,0 +15 @@ from PIL import Image
+from torchcodec.decoders import AudioDecoder
@@ -716,2 +716,4 @@ class AudioColumn(MediaColumn):
- with io.BytesIO(example_bytes) as f:
- return librosa.get_duration(path=f) # type: ignore # expects PathLike but BytesIO also works
+ duration = AudioDecoder(example_bytes).metadata.duration_seconds_from_header
+ if not isinstance(duration, float):
+ raise StatisticsComputationError("Failed to get the audio duration for the header.")
+ return duration
diff --git a/libs/libcommon/src/libcommon/url_preparator.py b/libs/libcommon/src/libcommon/url_preparator.py
index a5cc4860..e03c0860 100644
--- a/libs/libcommon/src/libcommon/url_preparator.py
+++ b/libs/libcommon/src/libcommon/url_preparator.py
@@ -10 +10 @@ from datasets import Audio, Features, Image, Pdf, Video
-from datasets.features.features import FeatureType, LargeList, Sequence
+from datasets.features.features import FeatureType, LargeList, List
@@ -37 +37 @@ def to_features_dict(features: list[FeatureItem]) -> Features:
- return Features({feature_item["name"]: feature_item["type"] for feature_item in features})
+ return {feature_item["name"]: feature_item["type"] for feature_item in features}
@@ -51,3 +50,0 @@ def _visit(
- if isinstance(feature, Sequence) and isinstance(feature.feature, dict):
- feature = {k: [f] for k, f in feature.feature.items()}
- # ^ Sequence of dicts is special, it must be converted to a dict of lists (see https://huggingface.co/docs/datasets/v2.16.1/en/package_reference/main_classes#datasets.Features)
@@ -58,2 +55,2 @@ def _visit(
- elif isinstance(feature, Sequence):
- out = func(Sequence(_visit(feature.feature, func, visit_path + [0]), length=feature.length), visit_path)
+ elif isinstance(feature, List):
+ out = func(List(_visit(feature.feature, func, visit_path + [0]), length=feature.length), visit_path)
diff --git a/libs/libcommon/src/libcommon/viewer_utils/features.py b/libs/libcommon/src/libcommon/viewer_utils/features.py
index ab3f12a6..78abb167 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/features.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/features.py
@@ -24,0 +25 @@ from datasets import (
+ List,
@@ -26 +26,0 @@ from datasets import (
- Sequence,
@@ -132,0 +133,2 @@ def audio(
+ from datasets.features._torchcodec import AudioDecoder
+
@@ -135 +137 @@ def audio(
- if not isinstance(value, dict):
+ if not isinstance(value, (dict, AudioDecoder)):
@@ -137 +139 @@ def audio(
- "Audio cell must be an encoded dict of an audio sample, "
+ "Audio cell must be an encoded dict of an audio sample or a torchcodec AudioDecoder, "
@@ -164 +166,3 @@ def get_audio_file_bytes(value: Any) -> bytes:
- if "bytes" in value and isinstance(value["bytes"], bytes):
+ from datasets.features._torchcodec import AudioDecoder
+
+ if isinstance(value, dict) and "bytes" in value and isinstance(value["bytes"], bytes):
@@ -166,3 +169,0 @@ def get_audio_file_bytes(value: Any) -> bytes:
- elif "path" in value and isinstance(value["path"], str) and os.path.exists(value["path"]):
- with open(value["path"], "rb") as f:
- audio_file_bytes = f.read()
@@ -170,4 +171,4 @@ def get_audio_file_bytes(value: Any) -> bytes:
- "array" in value
- and isinstance(value["array"], np.ndarray)
- and "sampling_rate" in value
- and isinstance(value["sampling_rate"], int)
+ isinstance(value, dict)
+ and "path" in value
+ and isinstance(value["path"], str)
+ and os.path.exists(value["path"])
@@ -175,3 +176,17 @@ def get_audio_file_bytes(value: Any) -> bytes:
- buffer = BytesIO()
- soundfile.write(buffer, value["array"], value["sampling_rate"], format="wav")
- audio_file_bytes = buffer.getvalue()
+ with open(value["path"], "rb") as f:
+ audio_file_bytes = f.read()
+ elif isinstance(value, AudioDecoder):
+ if (
+ hasattr(value, "_hf_encoded")
+ and isinstance(value._hf_encoded, dict)
+ and "bytes" in value._hf_encoded
+ and isinstance(value._hf_encoded["bytes"], bytes)
+ ):
+ audio_file_bytes = value._hf_encoded["bytes"]
+ else:
+ _array = value["array"]
+ _sampling_rate = value["sampling_rate"]
+ if isinstance(_array, np.ndarray) and isinstance(_sampling_rate, int):
+ buffer = BytesIO()
+ soundfile.write(buffer, _array, _sampling_rate, format="wav")
+ audio_file_bytes = buffer.getvalue()
@@ -187 +202,3 @@ def get_audio_file_extension(value: Any) -> Optional[str]:
- if "path" in value and isinstance(value["path"], str):
+ from datasets.features._torchcodec import AudioDecoder
+
+ if isinstance(value, dict) and "path" in value and isinstance(value["path"], str):
@@ -191,2 +208,12 @@ def get_audio_file_extension(value: Any) -> Optional[str]:
- elif ("path" in value and value["path"] is None) or "array" in value:
- audio_file_extension = ".wav"
+ elif isinstance(value, AudioDecoder):
+ if (
+ hasattr(value, "_hf_encoded")
+ and isinstance(value._hf_encoded, dict)
+ and "path" in value._hf_encoded
+ and isinstance(value._hf_encoded["path"], str)
+ ):
+ # .split("::")[0] for chained URLs like zip://audio.wav::https://foo.bar/data.zip
+ # It might be "" for audio files downloaded from the Hub: make it None
+ audio_file_extension = os.path.splitext(value._hf_encoded["path"].split("::")[0])[1] or None
+ else:
+ audio_file_extension = ".wav"
@@ -195,2 +222 @@ def get_audio_file_extension(value: Any) -> Optional[str]:
- "An audio sample should have 'path' and 'bytes' (or 'array' and 'sampling_rate') but got"
- f" {', '.join(value)}."
+ "An audio sample should have 'path' and 'bytes' (or be an AudioDecoder) but got" f" {', '.join(value)}."
@@ -427,44 +453,20 @@ def get_cell_value(
- elif isinstance(fieldType, Sequence):
- if isinstance(cell, list):
- if fieldType.length >= 0 and len(cell) != fieldType.length:
- raise TypeError("the cell length should be the same as the Sequence length.")
- return [
- get_cell_value(
- dataset=dataset,
- revision=revision,
- config=config,
- split=split,
- row_idx=row_idx,
- cell=subCell,
- featureName=featureName,
- fieldType=fieldType.feature,
- storage_client=storage_client,
- json_path=json_path + [idx] if json_path else [idx],
- )
- for (idx, subCell) in enumerate(cell)
- ]
- # if the internal feature of the Sequence is a dict, then the value will automatically
- # be converted into a dictionary of lists. See
- # https://huggingface.co/docs/datasets/v2.5.1/en/package_reference/main_classes#datasets.Features
- if isinstance(cell, dict):
- if any(not isinstance(v, list) or (k not in fieldType.feature) for k, v in cell.items()):
- raise TypeError("The value of a Sequence of dicts should be a dictionary of lists.")
- return {
- key: [
- get_cell_value(
- dataset=dataset,
- revision=revision,
- config=config,
- split=split,
- row_idx=row_idx,
- cell=subCellItem,
- featureName=featureName,
- fieldType=fieldType.feature[key],
- storage_client=storage_client,
- json_path=json_path + [key, idx] if json_path else [key, idx],
- )
- for (idx, subCellItem) in enumerate(subCell)
- ]
- for (key, subCell) in cell.items()
- }
- raise TypeError("Sequence cell must be a list or a dict.")
+ elif isinstance(fieldType, List):
+ if not isinstance(cell, list):
+ raise TypeError("list cell must be a list.")
+ if fieldType.length >= 0 and len(cell) != fieldType.length:
+ raise TypeError("the cell length should be the same as the List length.")
+ return [
+ get_cell_value(
+ dataset=dataset,
+ revision=revision,
+ config=config,
+ split=split,
+ row_idx=row_idx,
+ cell=subCell,
+ featureName=featureName,
+ fieldType=fieldType.feature,
+ storage_client=storage_client,
+ json_path=json_path + [idx] if json_path else [idx],
+ )
+ for (idx, subCell) in enumerate(cell)
+ ]
diff --git a/libs/libcommon/tests/fixtures/datasets.py b/libs/libcommon/tests/fixtures/datasets.py
index 686bab44..2dd8c1c0 100644
--- a/libs/libcommon/tests/fixtures/datasets.py
+++ b/libs/libcommon/tests/fixtures/datasets.py
@@ -21,0 +22 @@ from datasets import (
+ List,
@@ -23 +23,0 @@ from datasets import (
- Sequence,
@@ -216 +216 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- [{"a": {"_type": "Value", "dtype": "int64"}}],
+ {"_type": "List", "feature": {"a": {"_type": "Value", "dtype": "int64"}}},
@@ -223 +223 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- {"_type": "Sequence", "feature": {"_type": "Value", "dtype": "int64"}},
+ {"_type": "List", "feature": {"_type": "Value", "dtype": "int64"}},
@@ -229,2 +229,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- other([0], Sequence(feature=Value(dtype="int64"))),
- {"_type": "Sequence", "feature": {"_type": "Value", "dtype": "int64"}},
+ other([0], List(feature=Value(dtype="int64"))),
+ {"_type": "List", "feature": {"_type": "Value", "dtype": "int64"}},
@@ -236,2 +236,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- other([{"a": 0}], Sequence(feature={"a": Value(dtype="int64")})),
- {"_type": "Sequence", "feature": {"a": {"_type": "Value", "dtype": "int64"}}},
+ other({"a": [0]}, {"a": List(Value(dtype="int64"))}),
+ {"a": {"_type": "List", "feature": {"_type": "Value", "dtype": "int64"}}},
@@ -239 +238,0 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- # ^ converted to a dict of lists, see https://huggingface.co/docs/datasets/v2.16.1/en/package_reference/main_classes#datasets.Features
@@ -309 +308 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- {"array": [0.1, 0.2, 0.3], "sampling_rate": DEFAULT_SAMPLING_RATE},
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
@@ -318,2 +317,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "src": f"{ASSETS_BASE_URL}/audio/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio.wav",
- "type": "audio/wav",
+ "src": f"{ASSETS_BASE_URL}/audio/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio.mp3",
+ "type": "audio/mpeg",
@@ -372 +371 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- [Image()],
+ List(Image()),
@@ -374,5 +373,4 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- [
- {
- "_type": "Image",
- }
- ],
+ {
+ "_type": "List",
+ "feature": {"_type": "Image"},
+ },
@@ -399,2 +397,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- {"array": [0.1, 0.2, 0.3], "sampling_rate": DEFAULT_SAMPLING_RATE},
- {"array": [0.1, 0.2, 0.3], "sampling_rate": DEFAULT_SAMPLING_RATE},
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
@@ -404 +402 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- [Audio()],
+ List(Audio()),
@@ -406,5 +404,4 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- [
- {
- "_type": "Audio", # <- why don't we have a sampling rate here?
- }
- ],
+ {
+ "_type": "List",
+ "feature": {"_type": "Audio"}, # <- why don't we have a sampling rate here?
+ },
@@ -414,2 +411,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "src": f"{ASSETS_BASE_URL}/audios_list/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-1d100e9.wav",
- "type": "audio/wav",
+ "src": f"{ASSETS_BASE_URL}/audios_list/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-1d100e9.mp3",
+ "type": "audio/mpeg",
@@ -420,2 +417,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "src": f"{ASSETS_BASE_URL}/audios_list/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-1d300ea.wav",
- "type": "audio/wav",
+ "src": f"{ASSETS_BASE_URL}/audios_list/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-1d300ea.mp3",
+ "type": "audio/mpeg",
@@ -435 +432 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- Sequence(feature=Image()),
+ List(feature=Image()),
@@ -438 +435 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "_type": "Sequence",
+ "_type": "List",
@@ -466 +463 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- Sequence(feature={"images": Image()}),
+ {"images": List(Image())},
@@ -469,6 +466,4 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "_type": "Sequence",
- "feature": {
- "images": {
- "_type": "Image",
- }
- },
+ "images": {
+ "_type": "List",
+ "feature": {"_type": "Image"},
+ }
@@ -496,2 +491,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- {"array": [0.1, 0.2, 0.3], "sampling_rate": DEFAULT_SAMPLING_RATE},
- {"array": [0.1, 0.2, 0.3], "sampling_rate": DEFAULT_SAMPLING_RATE},
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
@@ -499 +494 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- Sequence(feature=Audio()),
+ List(feature=Audio()),
@@ -502 +497 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "_type": "Sequence",
+ "_type": "List",
@@ -510,2 +505,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "src": f"{ASSETS_BASE_URL}/audios_sequence/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-1d100e9.wav",
- "type": "audio/wav",
+ "src": f"{ASSETS_BASE_URL}/audios_sequence/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-1d100e9.mp3",
+ "type": "audio/mpeg",
@@ -516,2 +511,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "src": f"{ASSETS_BASE_URL}/audios_sequence/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-1d300ea.wav",
- "type": "audio/wav",
+ "src": f"{ASSETS_BASE_URL}/audios_sequence/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-1d300ea.mp3",
+ "type": "audio/mpeg",
@@ -534,2 +529,12 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- {"array": [0.1, 0.2, 0.3], "sampling_rate": 16_000},
- {"array": [0.1, 0.2, 0.3], "sampling_rate": 16_000},
+ str(
+ Path(__file__).resolve().parent.parent
+ / "viewer_utils"
+ / "data"
+ / "test_audio_16000.mp3"
+ ),
+ str(
+ Path(__file__).resolve().parent.parent
+ / "viewer_utils"
+ / "data"
+ / "test_audio_16000.mp3"
+ ),
@@ -539 +544 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- {"a": Value(dtype="int64"), "b": [Image()], "c": {"ca": [Audio()]}},
+ {"a": Value(dtype="int64"), "b": List(Image()), "c": {"ca": List(Audio())}},
@@ -543,2 +548,4 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "b": [{"_type": "Image"}],
- "c": {"ca": [{"_type": "Audio"}]}, # <- why don't we have a sampling rate here?
+ "b": {"_type": "List", "feature": {"_type": "Image"}},
+ "c": {
+ "ca": {"_type": "List", "feature": {"_type": "Audio"}}
+ }, # <- why don't we have a sampling rate here?
@@ -564,2 +571,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "src": f"{ASSETS_BASE_URL}/dict_of_audios_and_images/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-18360330.wav",
- "type": "audio/wav",
+ "src": f"{ASSETS_BASE_URL}/dict_of_audios_and_images/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-18360330.mp3",
+ "type": "audio/mpeg",
@@ -570,2 +577,2 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "src": f"{ASSETS_BASE_URL}/dict_of_audios_and_images/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-18380331.wav",
- "type": "audio/wav",
+ "src": f"{ASSETS_BASE_URL}/dict_of_audios_and_images/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/audio-18380331.mp3",
+ "type": "audio/mpeg",
@@ -584 +591 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- other([{"a": {"b": 0}}, {"a": {"b": 1}}], Sequence(feature={"a": {"b": Value(dtype="int64")}})),
+ other({"a": [{"b": 0}, {"b": 1}]}, {"a": List({"b": Value(dtype="int64")})}),
@@ -586,4 +593 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
- "_type": "Sequence",
- "feature": {
- "a": {"b": {"_type": "Value", "dtype": "int64"}},
- },
+ "a": {"_type": "List", "feature": {"b": {"_type": "Value", "dtype": "int64"}}},
diff --git a/libs/libcommon/tests/test_croissant_utils.py b/libs/libcommon/tests/test_croissant_utils.py
index 72b479a2..082d7748 100644
--- a/libs/libcommon/tests/test_croissant_utils.py
+++ b/libs/libcommon/tests/test_croissant_utils.py
@@ -9 +9 @@ import pytest
-from datasets import Sequence, Value
+from datasets import List, Value
@@ -66 +66 @@ def test_escape_jsonpath_key(feature_name: str, expected_output: str) -> None:
- Sequence(Value(dtype="int32")),
+ List(Value(dtype="int32")),
@@ -77 +77 @@ def test_escape_jsonpath_key(feature_name: str, expected_output: str) -> None:
- Sequence(Sequence(Value(dtype="int32"), length=3)),
+ List(List(Value(dtype="int32"), length=3)),
@@ -88,12 +88 @@ def test_escape_jsonpath_key(feature_name: str, expected_output: str) -> None:
- [Value(dtype="int32")],
- {
- "@type": "cr:Field",
- "@id": "field_name",
- "dataType": "cr:Int32",
- "source": {"fileSet": {"@id": "distribution_name"}, "extract": {"column": "column_name"}},
- "isArray": True,
- "arrayShape": "-1",
- },
- ),
- (
- [{"sub-field": {"sub-sub-field": Value(dtype="int32")}}],
+ List({"sub-field": {"sub-sub-field": Value(dtype="int32")}}),
diff --git a/libs/libcommon/tests/viewer_utils/test_features.py b/libs/libcommon/tests/viewer_utils/test_features.py
index 39fa1c4b..4476a749 100644
--- a/libs/libcommon/tests/viewer_utils/test_features.py
+++ b/libs/libcommon/tests/viewer_utils/test_features.py
@@ -13 +13 @@ from aiobotocore.response import StreamingBody
-from datasets import Audio, Features, Image, Pdf, Value
+from datasets import Audio, Features, Image, List, Pdf, Value
@@ -110 +110 @@ def test_get_supported_unsupported_columns() -> None:
- "audio3": [Audio()],
+ "audio3": List(Audio()),
@@ -113 +113 @@ def test_get_supported_unsupported_columns() -> None:
- "image3": [Image()],
+ "image3": List(Image()),
diff --git a/libs/libcommon/tests/viewer_utils/test_rows.py b/libs/libcommon/tests/viewer_utils/test_rows.py
index 63b3acad..141dff35 100644
--- a/libs/libcommon/tests/viewer_utils/test_rows.py
+++ b/libs/libcommon/tests/viewer_utils/test_rows.py
@@ -115 +115 @@ def test_create_first_rows_response_truncated(
- ("dict_of_audios_and_images", 797 + SOME_BYTES, "complete"),
+ ("dict_of_audios_and_images", 940 + SOME_BYTES, "complete"),
@@ -128 +128 @@ def test_create_first_rows_response_truncated(
- ("dict_of_audios_and_images", 797 - SOME_BYTES, "truncated_cells"),
+ ("dict_of_audios_and_images", 940 - SOME_BYTES, "truncated_cells"),
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index 1794af97..397b6e19 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "3.0.3.dev0"
@@ -577 +577 @@ optional = false
-python-versions = ">=3.9.0"
+python-versions = ">=3.8.0"
@@ -581,0 +582 @@ develop = false
+aiohttp = "*"
@@ -584,2 +585,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
-huggingface-hub = ">=0.24.0"
+fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
+huggingface-hub = ">=0.23.0"
@@ -596 +597 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
@@ -603 +604 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -606 +606,0 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
-pdfs = ["pdfplumber (>=0.11.4)"]
@@ -611,2 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -619,2 +619,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1257 +1257 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1281,0 +1282,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1614,0 +1621,17 @@ pymongo = ">=3.4,<5.0"
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -2702,0 +2726 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -3114 +3137,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3210,0 +3234,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3262,0 +3303,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3329,0 +3472,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index ec067788..c8c46bb0 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "3.0.3.dev0"
@@ -577 +577 @@ optional = false
-python-versions = ">=3.9.0"
+python-versions = ">=3.8.0"
@@ -581,0 +582 @@ develop = false
+aiohttp = "*"
@@ -584,2 +585,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
-huggingface-hub = ">=0.24.0"
+fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
+huggingface-hub = ">=0.23.0"
@@ -596 +597 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
@@ -603 +604 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -606 +606,0 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
-pdfs = ["pdfplumber (>=0.11.4)"]
@@ -611,2 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -619,2 +619,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1276 +1276 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1300,0 +1301,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1633,0 +1640,17 @@ pymongo = ">=3.4,<5.0"
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -2735,0 +2759 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -3165 +3188,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3261,0 +3285,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3313,0 +3354,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3377,0 +3520,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index 0af4887a..8d6d81e2 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -221,10 +220,0 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte
-[[package]]
-name = "audioread"
-version = "3.0.0"
-description = "multi-library, cross-platform audio decoding"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "audioread-3.0.0.tar.gz", hash = "sha256:121995bd207eb1fda3d566beb851d3534275925bc35a4fb6da0cb11de0f7251a"},
-]
-
@@ -593 +583 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "4.0.0.dev0"
@@ -605 +594,0 @@ huggingface-hub = ">=0.24.0"
-librosa = {version = "*", optional = true, markers = "extra == \"audio\""}
@@ -615 +604 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+torchcodec = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -620 +609 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["soundfile (>=0.12.1)", "torchcodec (>=0.4.0)"]
@@ -622,2 +611,2 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
-docs = ["s3fs", "tensorflow (>=2.6.0)", "torch", "transformers"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+docs = ["tensorflow (>=2.6.0)", "torch", "transformers"]
@@ -627 +615,0 @@ quality = ["ruff (>=0.3.0)"]
-s3 = ["s3fs"]
@@ -630,2 +618,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -638,13 +626,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-
-[[package]]
-name = "decorator"
-version = "5.1.1"
-description = "Decorators for Humans"
-optional = false
-python-versions = ">=3.5"
-files = [
- {file = "decorator-5.1.1-py3-none-any.whl", hash = "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186"},
- {file = "decorator-5.1.1.tar.gz", hash = "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330"},
-]
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1216,11 +1192,0 @@ files = [
-[[package]]
-name = "joblib"
-version = "1.3.1"
-description = "Lightweight pipelining with Python functions"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "joblib-1.3.1-py3-none-any.whl", hash = "sha256:89cf0529520e01b3de7ac7b74a8102c90d16d54c64b5dd98cafcd14307fdf915"},
- {file = "joblib-1.3.1.tar.gz", hash = "sha256:1f937906df65329ba98013dc9692fe22a4c5e4a648112de500508b18a21b41e3"},
-]
-
@@ -1246,15 +1211,0 @@ format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-
-[[package]]
-name = "lazy-loader"
-version = "0.3"
-description = "lazy_loader"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "lazy_loader-0.3-py3-none-any.whl", hash = "sha256:1e9e76ee8631e264c62ce10006718e80b2cfc74340d17d1031e0f84af7478554"},
- {file = "lazy_loader-0.3.tar.gz", hash = "sha256:3b68898e34f5b2a29daaaac172c6555512d0f32074f147e2254e4a6d9d838f37"},
-]
-
-[package.extras]
-lint = ["pre-commit (>=3.3)"]
-test = ["pytest (>=7.4)", "pytest-cov (>=4.1)"]
-
@@ -1295 +1246 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1319,0 +1271,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1326,31 +1282,0 @@ url = "../../libs/libcommon"
-[[package]]
-name = "librosa"
-version = "0.10.0.post2"
-description = "Python module for audio and music processing"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "librosa-0.10.0.post2-py3-none-any.whl", hash = "sha256:0f3b56118cb01ea89df4b04e924c7f48c5c13d42cc55a12540eb04ae87ab5848"},
- {file = "librosa-0.10.0.post2.tar.gz", hash = "sha256:6623673da30773beaae962cb4685f188155582f25bc60fc52da968f59eea8567"},
-]
-
-[package.dependencies]
-audioread = ">=2.1.9"
-decorator = ">=4.3.0"
-joblib = ">=0.14"
-lazy-loader = ">=0.1"
-msgpack = ">=1.0"
-numba = ">=0.51.0"
-numpy = ">=1.20.3,<1.22.0 || >1.22.0,<1.22.1 || >1.22.1,<1.22.2 || >1.22.2"
-pooch = ">=1.0,<1.7"
-scikit-learn = ">=0.20.0"
-scipy = ">=1.2.0"
-soundfile = ">=0.12.1"
-soxr = ">=0.3.2"
-typing-extensions = ">=4.1.1"
-
-[package.extras]
-display = ["matplotlib (>=3.3.0)"]
-docs = ["ipython (>=7.0)", "matplotlib (>=3.3.0)", "mir-eval (>=0.5)", "numba (>=0.51)", "numpydoc", "presets", "sphinx (!=1.3.1,<6)", "sphinx-gallery (>=0.7)", "sphinx-multiversion (>=0.2.3)", "sphinx-rtd-theme (==1.*)", "sphinxcontrib-svg2pdfconverter"]
-tests = ["matplotlib (>=3.3.0)", "packaging (>=20.0)", "pytest", "pytest-cov", "pytest-mpl", "resampy (>=0.2.2)", "samplerate", "types-decorator"]
-
@@ -1395,30 +1320,0 @@ test = ["coverage", "pytest", "pytest-cov"]
-[[package]]
-name = "llvmlite"
-version = "0.42.0"
-description = "lightweight wrapper around basic LLVM functionality"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3366938e1bf63d26c34fbfb4c8e8d2ded57d11e0567d5bb243d89aab1eb56098"},
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c35da49666a21185d21b551fc3caf46a935d54d66969d32d72af109b5e7d2b6f"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:70f44ccc3c6220bd23e0ba698a63ec2a7d3205da0d848804807f37fc243e3f77"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:763f8d8717a9073b9e0246998de89929071d15b47f254c10eef2310b9aac033d"},
- {file = "llvmlite-0.42.0-cp310-cp310-win_amd64.whl", hash = "sha256:8d90edf400b4ceb3a0e776b6c6e4656d05c7187c439587e06f86afceb66d2be5"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae511caed28beaf1252dbaf5f40e663f533b79ceb408c874c01754cafabb9cbf"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:81e674c2fe85576e6c4474e8c7e7aba7901ac0196e864fe7985492b737dbab65"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb3975787f13eb97629052edb5017f6c170eebc1c14a0433e8089e5db43bcce6"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5bece0cdf77f22379f19b1959ccd7aee518afa4afbd3656c6365865f84903f9"},
- {file = "llvmlite-0.42.0-cp311-cp311-win_amd64.whl", hash = "sha256:7e0c4c11c8c2aa9b0701f91b799cb9134a6a6de51444eff5a9087fc7c1384275"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:08fa9ab02b0d0179c688a4216b8939138266519aaa0aa94f1195a8542faedb56"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b2fce7d355068494d1e42202c7aff25d50c462584233013eb4470c33b995e3ee"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebe66a86dc44634b59a3bc860c7b20d26d9aaffcd30364ebe8ba79161a9121f4"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d47494552559e00d81bfb836cf1c4d5a5062e54102cc5767d5aa1e77ccd2505c"},
- {file = "llvmlite-0.42.0-cp312-cp312-win_amd64.whl", hash = "sha256:05cb7e9b6ce69165ce4d1b994fbdedca0c62492e537b0cc86141b6e2c78d5888"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bdd3888544538a94d7ec99e7c62a0cdd8833609c85f0c23fcb6c5c591aec60ad"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d0936c2067a67fb8816c908d5457d63eba3e2b17e515c5fe00e5ee2bace06040"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a78ab89f1924fc11482209f6799a7a3fc74ddc80425a7a3e0e8174af0e9e2301"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7599b65c7af7abbc978dbf345712c60fd596aa5670496561cc10e8a71cebfb2"},
- {file = "llvmlite-0.42.0-cp39-cp39-win_amd64.whl", hash = "sha256:43d65cc4e206c2e902c1004dd5418417c4efa6c1d04df05c6c5675a27e8ca90e"},
- {file = "llvmlite-0.42.0.tar.gz", hash = "sha256:f92b09243c0cc3f457da8b983f67bd8e1295d0f5b3746c7a1861d7a99403854a"},
-]
-
@@ -1478,10 +1373,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -1700,0 +1587,17 @@ xray = ["aws-xray-sdk (>=0.93,!=0.96)", "setuptools"]
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -1958,34 +1860,0 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"]
-[[package]]
-name = "numba"
-version = "0.59.1"
-description = "compiling Python code using LLVM"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "numba-0.59.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:97385a7f12212c4f4bc28f648720a92514bee79d7063e40ef66c2d30600fd18e"},
- {file = "numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0b77aecf52040de2a1eb1d7e314497b9e56fba17466c80b457b971a25bb1576d"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3476a4f641bfd58f35ead42f4dcaf5f132569c4647c6f1360ccf18ee4cda3990"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:525ef3f820931bdae95ee5379c670d5c97289c6520726bc6937a4a7d4230ba24"},
- {file = "numba-0.59.1-cp310-cp310-win_amd64.whl", hash = "sha256:990e395e44d192a12105eca3083b61307db7da10e093972ca285c85bef0963d6"},
- {file = "numba-0.59.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:43727e7ad20b3ec23ee4fc642f5b61845c71f75dd2825b3c234390c6d8d64051"},
- {file = "numba-0.59.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:411df625372c77959570050e861981e9d196cc1da9aa62c3d6a836b5cc338966"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2801003caa263d1e8497fb84829a7ecfb61738a95f62bc05693fcf1733e978e4"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:dd2842fac03be4e5324ebbbd4d2d0c8c0fc6e0df75c09477dd45b288a0777389"},
- {file = "numba-0.59.1-cp311-cp311-win_amd64.whl", hash = "sha256:0594b3dfb369fada1f8bb2e3045cd6c61a564c62e50cf1f86b4666bc721b3450"},
- {file = "numba-0.59.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:1cce206a3b92836cdf26ef39d3a3242fec25e07f020cc4feec4c4a865e340569"},
- {file = "numba-0.59.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8c8b4477763cb1fbd86a3be7050500229417bf60867c93e131fd2626edb02238"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d80bce4ef7e65bf895c29e3889ca75a29ee01da80266a01d34815918e365835"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f7ad1d217773e89a9845886401eaaab0a156a90aa2f179fdc125261fd1105096"},
- {file = "numba-0.59.1-cp312-cp312-win_amd64.whl", hash = "sha256:5bf68f4d69dd3a9f26a9b23548fa23e3bcb9042e2935257b471d2a8d3c424b7f"},
- {file = "numba-0.59.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4e0318ae729de6e5dbe64c75ead1a95eb01fabfe0e2ebed81ebf0344d32db0ae"},
- {file = "numba-0.59.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0f68589740a8c38bb7dc1b938b55d1145244c8353078eea23895d4f82c8b9ec1"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:649913a3758891c77c32e2d2a3bcbedf4a69f5fea276d11f9119677c45a422e8"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9712808e4545270291d76b9a264839ac878c5eb7d8b6e02c970dc0ac29bc8187"},
- {file = "numba-0.59.1-cp39-cp39-win_amd64.whl", hash = "sha256:8d51ccd7008a83105ad6a0082b6a2b70f1142dc7cfd76deb8c5a862367eb8c86"},
- {file = "numba-0.59.1.tar.gz", hash = "sha256:76f69132b96028d2774ed20415e8c528a34e3299a40581bae178f0994a2f370b"},
-]
-
-[package.dependencies]
-llvmlite = "==0.42.*"
-numpy = ">=1.22,<1.27"
-
@@ -2469,21 +2337,0 @@ xlsxwriter = ["xlsxwriter"]
-[[package]]
-name = "pooch"
-version = "1.6.0"
-description = "\"Pooch manages your Python library's sample data files: it automatically downloads and stores them in a local directory, with support for versioning and corruption checks.\""
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "pooch-1.6.0-py3-none-any.whl", hash = "sha256:3bf0e20027096836b8dbce0152dbb785a269abeb621618eb4bdd275ff1e23c9c"},
- {file = "pooch-1.6.0.tar.gz", hash = "sha256:57d20ec4b10dd694d2b05bb64bc6b109c6e85a6c1405794ce87ed8b341ab3f44"},
-]
-
-[package.dependencies]
-appdirs = ">=1.3.0"
-packaging = ">=20.0"
-requests = ">=2.19.0"
-
-[package.extras]
-progress = ["tqdm (>=4.41.0,<5.0.0)"]
-sftp = ["paramiko (>=2.7.0)"]
-xxhash = ["xxhash (>=1.4.3)"]
-
@@ -2802,0 +2651 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -3134,81 +2982,0 @@ crt = ["botocore[crt] (>=1.33.2,<2.0a.0)"]
-[[package]]
-name = "scikit-learn"
-version = "1.5.0"
-description = "A set of python modules for machine learning and data mining"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:12e40ac48555e6b551f0a0a5743cc94cc5a765c9513fe708e01f0aa001da2801"},
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:f405c4dae288f5f6553b10c4ac9ea7754d5180ec11e296464adb5d6ac68b6ef5"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df8ccabbf583315f13160a4bb06037bde99ea7d8211a69787a6b7c5d4ebb6fc3"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c75ea812cd83b1385bbfa94ae971f0d80adb338a9523f6bbcb5e0b0381151d4"},
- {file = "scikit_learn-1.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:a90c5da84829a0b9b4bf00daf62754b2be741e66b5946911f5bdfaa869fcedd6"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2a65af2d8a6cce4e163a7951a4cfbfa7fceb2d5c013a4b593686c7f16445cf9d"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:4c0c56c3005f2ec1db3787aeaabefa96256580678cec783986836fc64f8ff622"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f77547165c00625551e5c250cefa3f03f2fc92c5e18668abd90bfc4be2e0bff"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:118a8d229a41158c9f90093e46b3737120a165181a1b58c03461447aa4657415"},
- {file = "scikit_learn-1.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:a03b09f9f7f09ffe8c5efffe2e9de1196c696d811be6798ad5eddf323c6f4d40"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:460806030c666addee1f074788b3978329a5bfdc9b7d63e7aad3f6d45c67a210"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:1b94d6440603752b27842eda97f6395f570941857456c606eb1d638efdb38184"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d82c2e573f0f2f2f0be897e7a31fcf4e73869247738ab8c3ce7245549af58ab8"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3a10e1d9e834e84d05e468ec501a356226338778769317ee0b84043c0d8fb06"},
- {file = "scikit_learn-1.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:855fc5fa8ed9e4f08291203af3d3e5fbdc4737bd617a371559aaa2088166046e"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:40fb7d4a9a2db07e6e0cae4dc7bdbb8fada17043bac24104d8165e10e4cff1a2"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:47132440050b1c5beb95f8ba0b2402bbd9057ce96ec0ba86f2f445dd4f34df67"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:174beb56e3e881c90424e21f576fa69c4ffcf5174632a79ab4461c4c960315ac"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261fe334ca48f09ed64b8fae13f9b46cc43ac5f580c4a605cbb0a517456c8f71"},
- {file = "scikit_learn-1.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:057b991ac64b3e75c9c04b5f9395eaf19a6179244c089afdebaad98264bff37c"},
- {file = "scikit_learn-1.5.0.tar.gz", hash = "sha256:789e3db01c750ed6d496fa2db7d50637857b451e57bcae863bff707c1247bef7"},
-]
-
-[package.dependencies]
-joblib = ">=1.2.0"
-numpy = ">=1.19.5"
-scipy = ">=1.6.0"
-threadpoolctl = ">=3.1.0"
-
-[package.extras]
-benchmark = ["matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "pandas (>=1.1.5)"]
-build = ["cython (>=3.0.10)", "meson-python (>=0.15.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)"]
-docs = ["Pillow (>=7.1.2)", "matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)", "sphinx (>=6.0.0)", "sphinx-copybutton (>=0.5.2)", "sphinx-gallery (>=0.15.0)", "sphinx-prompt (>=1.3.0)", "sphinxext-opengraph (>=0.4.2)"]
-examples = ["matplotlib (>=3.3.4)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)"]
-install = ["joblib (>=1.2.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)", "threadpoolctl (>=3.1.0)"]
-maintenance = ["conda-lock (==2.5.6)"]
-tests = ["black (>=24.3.0)", "matplotlib (>=3.3.4)", "mypy (>=1.9)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "pyamg (>=4.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.2.1)", "scikit-image (>=0.17.2)"]
-
-[[package]]
-name = "scipy"
-version = "1.11.1"
-description = "Fundamental algorithms for scientific computing in Python"
-optional = false
-python-versions = "<3.13,>=3.9"
-files = [
- {file = "scipy-1.11.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:aec8c62fbe52914f9cf28d846cf0401dd80ab80788bbab909434eb336ed07c04"},
- {file = "scipy-1.11.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:3b9963798df1d8a52db41a6fc0e6fa65b1c60e85d73da27ae8bb754de4792481"},
- {file = "scipy-1.11.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e8eb42db36526b130dfbc417609498a6192381abc1975b91e3eb238e0b41c1a"},
- {file = "scipy-1.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:366a6a937110d80dca4f63b3f5b00cc89d36f678b2d124a01067b154e692bab1"},
- {file = "scipy-1.11.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:08d957ca82d3535b3b9ba6c8ff355d78fe975271874e2af267cb5add5bd78625"},
- {file = "scipy-1.11.1-cp310-cp310-win_amd64.whl", hash = "sha256:e866514bc2d660608447b6ba95c8900d591f2865c07cca0aa4f7ff3c4ca70f30"},
- {file = "scipy-1.11.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ba94eeef3c9caa4cea7b402a35bb02a5714ee1ee77eb98aca1eed4543beb0f4c"},
- {file = "scipy-1.11.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:512fdc18c65f76dadaca139348e525646d440220d8d05f6d21965b8d4466bccd"},
- {file = "scipy-1.11.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cce154372f0ebe88556ed06d7b196e9c2e0c13080ecb58d0f35062dc7cc28b47"},
- {file = "scipy-1.11.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b4bb943010203465ac81efa392e4645265077b4d9e99b66cf3ed33ae12254173"},
- {file = "scipy-1.11.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:249cfa465c379c9bb2c20123001e151ff5e29b351cbb7f9c91587260602c58d0"},
- {file = "scipy-1.11.1-cp311-cp311-win_amd64.whl", hash = "sha256:ffb28e3fa31b9c376d0fb1f74c1f13911c8c154a760312fbee87a21eb21efe31"},
- {file = "scipy-1.11.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:39154437654260a52871dfde852adf1b93b1d1bc5dc0ffa70068f16ec0be2624"},
- {file = "scipy-1.11.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:b588311875c58d1acd4ef17c983b9f1ab5391755a47c3d70b6bd503a45bfaf71"},
- {file = "scipy-1.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d51565560565a0307ed06fa0ec4c6f21ff094947d4844d6068ed04400c72d0c3"},
- {file = "scipy-1.11.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b41a0f322b4eb51b078cb3441e950ad661ede490c3aca66edef66f4b37ab1877"},
- {file = "scipy-1.11.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:396fae3f8c12ad14c5f3eb40499fd06a6fef8393a6baa352a652ecd51e74e029"},
- {file = "scipy-1.11.1-cp39-cp39-win_amd64.whl", hash = "sha256:be8c962a821957fdde8c4044efdab7a140c13294997a407eaee777acf63cbf0c"},
- {file = "scipy-1.11.1.tar.gz", hash = "sha256:fb5b492fa035334fd249f0973cc79ecad8b09c604b42a127a677b45a9a3d4289"},
-]
-
-[package.dependencies]
-numpy = ">=1.21.6,<1.28.0"
-
-[package.extras]
-dev = ["click", "cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyle", "pydevtool", "rich-click", "ruff", "types-psutil", "typing_extensions"]
-doc = ["jupytext", "matplotlib (>2)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (==0.9.0)", "sphinx (!=4.1.0)", "sphinx-design (>=0.2.0)"]
-test = ["asv", "gmpy2", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"]
-
@@ -3269 +3036,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3282,37 +3048,0 @@ numpy = ["numpy"]
-[[package]]
-name = "soxr"
-version = "0.4.0"
-description = "High quality, one-dimensional sample-rate conversion library"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "soxr-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0be9dbc6cb0de2e2147ad33ffe4dee0391ed38125248253f53d3f1a05b65425"},
- {file = "soxr-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:46c1dce06d156f9a6563c41f97d5d6978ccc993c3682c6f8190438c0f7417d36"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:784d2dd6d43d2663d384ed7e1f6a1156f98395bbd889b0a9def6c61a9e17cda1"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ee59424f4f1c81f6a9f3d03b4bde27992272dc8c36f9b08af7f31ce720fa6ba"},
- {file = "soxr-0.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:2975734033e8da5a241f2498b65513a160882dd1283cf5eb7eac5b3b262ae668"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:38374140503b17b3234d0deb83dfe0319727df1dbab41e1a576b61405fc82767"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a370f661576916e8b208990eb70e5db4e07ab025b47492a633370846bc0a9678"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4301600889696051bdb1469f8b10cace0d7e2d16a351c6b5fc947b3b41e10a58"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:12a0e460f1199aaed544a30c67f5df7a452b0647b63e0df706a17577e963e38b"},
- {file = "soxr-0.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:2f6f55c520fb90040f604b1203f2100b70c789d973bb0fd79b221187e3841311"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:226d405c40094f5fd5dd4b80c66fc61cc108018da0216833e843d82ccffdadcb"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c53d4bc99908e715665b3d45f0cc06e652e4f53bf4acf9e758c1cce02977e411"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a9cc0620d7b1effab9d408427711d52c3db6e295b5504dfcf549f4636904ed0d"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f99aaef14a7d268966c06cf6a06729eb98b2276493710d24a6f20fdcfc3ad26e"},
- {file = "soxr-0.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:63a59d36b8f8f3b1501e4fca2c034aacceb9b4d6888295afd269afbce5eb2f3f"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:38e65bb8beba55d8049ecf16e73c05ed3dd5e156d6086f594c40edb3181a7900"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5fd5e43fe568451152e20e16a71a61cda6340da934c344733a26674e041ab445"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83b3e477ff61b3579ec2ad66fa7a9b362072d5d9a5d1e61db3d366d26afbb8c8"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba0989025d70c472d62bf0e68778c9bbd0c9bee111c708cf64c26406937ca6be"},
- {file = "soxr-0.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:5e71482f092051544b196387e3779d726f26df30cba307424eac7a96285c5b64"},
- {file = "soxr-0.4.0.tar.gz", hash = "sha256:02385e3de07e28ddbc19ab41216075d889575895e778ce2ada950d5f46cf6a52"},
-]
-
-[package.dependencies]
-numpy = "*"
-
-[package.extras]
-docs = ["linkify-it-py", "myst-parser", "sphinx", "sphinx-book-theme"]
-test = ["pytest"]
-
@@ -3365,0 +3096,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3385,11 +3131,0 @@ syntax = ["tree-sitter (>=0.20.1,<0.21.0)", "tree-sitter-languages (==1.10.2)"]
-[[package]]
-name = "threadpoolctl"
-version = "3.1.0"
-description = "threadpoolctl"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "threadpoolctl-3.1.0-py3-none-any.whl", hash = "sha256:8b99adda265feb6773280df41eece7b2e6561b772d21ffd52e372f999024907b"},
- {file = "threadpoolctl-3.1.0.tar.gz", hash = "sha256:a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380"},
-]
-
@@ -3417,0 +3154,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3492,0 +3331,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index e8ac6aff..3843526c 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -221,10 +220,0 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte
-[[package]]
-name = "audioread"
-version = "3.0.0"
-description = "multi-library, cross-platform audio decoding"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "audioread-3.0.0.tar.gz", hash = "sha256:121995bd207eb1fda3d566beb851d3534275925bc35a4fb6da0cb11de0f7251a"},
-]
-
@@ -574 +564 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "4.0.0.dev0"
@@ -586 +575,0 @@ huggingface-hub = ">=0.24.0"
-librosa = {version = "*", optional = true, markers = "extra == \"audio\""}
@@ -596 +585 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+torchcodec = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -601 +590 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["soundfile (>=0.12.1)", "torchcodec (>=0.4.0)"]
@@ -603,2 +592,2 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
-docs = ["s3fs", "tensorflow (>=2.6.0)", "torch", "transformers"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+docs = ["tensorflow (>=2.6.0)", "torch", "transformers"]
@@ -608 +596,0 @@ quality = ["ruff (>=0.3.0)"]
-s3 = ["s3fs"]
@@ -611,2 +599,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -619,13 +607,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-
-[[package]]
-name = "decorator"
-version = "5.1.1"
-description = "Decorators for Humans"
-optional = false
-python-versions = ">=3.5"
-files = [
- {file = "decorator-5.1.1-py3-none-any.whl", hash = "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186"},
- {file = "decorator-5.1.1.tar.gz", hash = "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330"},
-]
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1184,11 +1160,0 @@ files = [
-[[package]]
-name = "joblib"
-version = "1.3.1"
-description = "Lightweight pipelining with Python functions"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "joblib-1.3.1-py3-none-any.whl", hash = "sha256:89cf0529520e01b3de7ac7b74a8102c90d16d54c64b5dd98cafcd14307fdf915"},
- {file = "joblib-1.3.1.tar.gz", hash = "sha256:1f937906df65329ba98013dc9692fe22a4c5e4a648112de500508b18a21b41e3"},
-]
-
@@ -1230,15 +1195,0 @@ referencing = ">=0.28.0"
-[[package]]
-name = "lazy-loader"
-version = "0.3"
-description = "lazy_loader"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "lazy_loader-0.3-py3-none-any.whl", hash = "sha256:1e9e76ee8631e264c62ce10006718e80b2cfc74340d17d1031e0f84af7478554"},
- {file = "lazy_loader-0.3.tar.gz", hash = "sha256:3b68898e34f5b2a29daaaac172c6555512d0f32074f147e2254e4a6d9d838f37"},
-]
-
-[package.extras]
-lint = ["pre-commit (>=3.3)"]
-test = ["pytest (>=7.4)", "pytest-cov (>=4.1)"]
-
@@ -1279 +1230 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1303,0 +1255,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1310,31 +1266,0 @@ url = "../../libs/libcommon"
-[[package]]
-name = "librosa"
-version = "0.10.0.post2"
-description = "Python module for audio and music processing"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "librosa-0.10.0.post2-py3-none-any.whl", hash = "sha256:0f3b56118cb01ea89df4b04e924c7f48c5c13d42cc55a12540eb04ae87ab5848"},
- {file = "librosa-0.10.0.post2.tar.gz", hash = "sha256:6623673da30773beaae962cb4685f188155582f25bc60fc52da968f59eea8567"},
-]
-
-[package.dependencies]
-audioread = ">=2.1.9"
-decorator = ">=4.3.0"
-joblib = ">=0.14"
-lazy-loader = ">=0.1"
-msgpack = ">=1.0"
-numba = ">=0.51.0"
-numpy = ">=1.20.3,<1.22.0 || >1.22.0,<1.22.1 || >1.22.1,<1.22.2 || >1.22.2"
-pooch = ">=1.0,<1.7"
-scikit-learn = ">=0.20.0"
-scipy = ">=1.2.0"
-soundfile = ">=0.12.1"
-soxr = ">=0.3.2"
-typing-extensions = ">=4.1.1"
-
-[package.extras]
-display = ["matplotlib (>=3.3.0)"]
-docs = ["ipython (>=7.0)", "matplotlib (>=3.3.0)", "mir-eval (>=0.5)", "numba (>=0.51)", "numpydoc", "presets", "sphinx (!=1.3.1,<6)", "sphinx-gallery (>=0.7)", "sphinx-multiversion (>=0.2.3)", "sphinx-rtd-theme (==1.*)", "sphinxcontrib-svg2pdfconverter"]
-tests = ["matplotlib (>=3.3.0)", "packaging (>=20.0)", "pytest", "pytest-cov", "pytest-mpl", "resampy (>=0.2.2)", "samplerate", "types-decorator"]
-
@@ -1379,30 +1304,0 @@ test = ["coverage", "pytest", "pytest-cov"]
-[[package]]
-name = "llvmlite"
-version = "0.42.0"
-description = "lightweight wrapper around basic LLVM functionality"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3366938e1bf63d26c34fbfb4c8e8d2ded57d11e0567d5bb243d89aab1eb56098"},
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c35da49666a21185d21b551fc3caf46a935d54d66969d32d72af109b5e7d2b6f"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:70f44ccc3c6220bd23e0ba698a63ec2a7d3205da0d848804807f37fc243e3f77"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:763f8d8717a9073b9e0246998de89929071d15b47f254c10eef2310b9aac033d"},
- {file = "llvmlite-0.42.0-cp310-cp310-win_amd64.whl", hash = "sha256:8d90edf400b4ceb3a0e776b6c6e4656d05c7187c439587e06f86afceb66d2be5"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae511caed28beaf1252dbaf5f40e663f533b79ceb408c874c01754cafabb9cbf"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:81e674c2fe85576e6c4474e8c7e7aba7901ac0196e864fe7985492b737dbab65"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb3975787f13eb97629052edb5017f6c170eebc1c14a0433e8089e5db43bcce6"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5bece0cdf77f22379f19b1959ccd7aee518afa4afbd3656c6365865f84903f9"},
- {file = "llvmlite-0.42.0-cp311-cp311-win_amd64.whl", hash = "sha256:7e0c4c11c8c2aa9b0701f91b799cb9134a6a6de51444eff5a9087fc7c1384275"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:08fa9ab02b0d0179c688a4216b8939138266519aaa0aa94f1195a8542faedb56"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b2fce7d355068494d1e42202c7aff25d50c462584233013eb4470c33b995e3ee"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebe66a86dc44634b59a3bc860c7b20d26d9aaffcd30364ebe8ba79161a9121f4"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d47494552559e00d81bfb836cf1c4d5a5062e54102cc5767d5aa1e77ccd2505c"},
- {file = "llvmlite-0.42.0-cp312-cp312-win_amd64.whl", hash = "sha256:05cb7e9b6ce69165ce4d1b994fbdedca0c62492e537b0cc86141b6e2c78d5888"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bdd3888544538a94d7ec99e7c62a0cdd8833609c85f0c23fcb6c5c591aec60ad"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d0936c2067a67fb8816c908d5457d63eba3e2b17e515c5fe00e5ee2bace06040"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a78ab89f1924fc11482209f6799a7a3fc74ddc80425a7a3e0e8174af0e9e2301"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7599b65c7af7abbc978dbf345712c60fd596aa5670496561cc10e8a71cebfb2"},
- {file = "llvmlite-0.42.0-cp39-cp39-win_amd64.whl", hash = "sha256:43d65cc4e206c2e902c1004dd5418417c4efa6c1d04df05c6c5675a27e8ca90e"},
- {file = "llvmlite-0.42.0.tar.gz", hash = "sha256:f92b09243c0cc3f457da8b983f67bd8e1295d0f5b3746c7a1861d7a99403854a"},
-]
-
@@ -1636,0 +1533,17 @@ pymongo = ">=3.4,<5.0"
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -1896,34 +1808,0 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"]
-[[package]]
-name = "numba"
-version = "0.59.1"
-description = "compiling Python code using LLVM"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "numba-0.59.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:97385a7f12212c4f4bc28f648720a92514bee79d7063e40ef66c2d30600fd18e"},
- {file = "numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0b77aecf52040de2a1eb1d7e314497b9e56fba17466c80b457b971a25bb1576d"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3476a4f641bfd58f35ead42f4dcaf5f132569c4647c6f1360ccf18ee4cda3990"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:525ef3f820931bdae95ee5379c670d5c97289c6520726bc6937a4a7d4230ba24"},
- {file = "numba-0.59.1-cp310-cp310-win_amd64.whl", hash = "sha256:990e395e44d192a12105eca3083b61307db7da10e093972ca285c85bef0963d6"},
- {file = "numba-0.59.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:43727e7ad20b3ec23ee4fc642f5b61845c71f75dd2825b3c234390c6d8d64051"},
- {file = "numba-0.59.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:411df625372c77959570050e861981e9d196cc1da9aa62c3d6a836b5cc338966"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2801003caa263d1e8497fb84829a7ecfb61738a95f62bc05693fcf1733e978e4"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:dd2842fac03be4e5324ebbbd4d2d0c8c0fc6e0df75c09477dd45b288a0777389"},
- {file = "numba-0.59.1-cp311-cp311-win_amd64.whl", hash = "sha256:0594b3dfb369fada1f8bb2e3045cd6c61a564c62e50cf1f86b4666bc721b3450"},
- {file = "numba-0.59.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:1cce206a3b92836cdf26ef39d3a3242fec25e07f020cc4feec4c4a865e340569"},
- {file = "numba-0.59.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8c8b4477763cb1fbd86a3be7050500229417bf60867c93e131fd2626edb02238"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d80bce4ef7e65bf895c29e3889ca75a29ee01da80266a01d34815918e365835"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f7ad1d217773e89a9845886401eaaab0a156a90aa2f179fdc125261fd1105096"},
- {file = "numba-0.59.1-cp312-cp312-win_amd64.whl", hash = "sha256:5bf68f4d69dd3a9f26a9b23548fa23e3bcb9042e2935257b471d2a8d3c424b7f"},
- {file = "numba-0.59.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4e0318ae729de6e5dbe64c75ead1a95eb01fabfe0e2ebed81ebf0344d32db0ae"},
- {file = "numba-0.59.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0f68589740a8c38bb7dc1b938b55d1145244c8353078eea23895d4f82c8b9ec1"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:649913a3758891c77c32e2d2a3bcbedf4a69f5fea276d11f9119677c45a422e8"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9712808e4545270291d76b9a264839ac878c5eb7d8b6e02c970dc0ac29bc8187"},
- {file = "numba-0.59.1-cp39-cp39-win_amd64.whl", hash = "sha256:8d51ccd7008a83105ad6a0082b6a2b70f1142dc7cfd76deb8c5a862367eb8c86"},
- {file = "numba-0.59.1.tar.gz", hash = "sha256:76f69132b96028d2774ed20415e8c528a34e3299a40581bae178f0994a2f370b"},
-]
-
-[package.dependencies]
-llvmlite = "==0.42.*"
-numpy = ">=1.22,<1.27"
-
@@ -2408,21 +2286,0 @@ xlsxwriter = ["xlsxwriter"]
-[[package]]
-name = "pooch"
-version = "1.6.0"
-description = "\"Pooch manages your Python library's sample data files: it automatically downloads and stores them in a local directory, with support for versioning and corruption checks.\""
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "pooch-1.6.0-py3-none-any.whl", hash = "sha256:3bf0e20027096836b8dbce0152dbb785a269abeb621618eb4bdd275ff1e23c9c"},
- {file = "pooch-1.6.0.tar.gz", hash = "sha256:57d20ec4b10dd694d2b05bb64bc6b109c6e85a6c1405794ce87ed8b341ab3f44"},
-]
-
-[package.dependencies]
-appdirs = ">=1.3.0"
-packaging = ">=20.0"
-requests = ">=2.19.0"
-
-[package.extras]
-progress = ["tqdm (>=4.41.0,<5.0.0)"]
-sftp = ["paramiko (>=2.7.0)"]
-xxhash = ["xxhash (>=1.4.3)"]
-
@@ -2741,0 +2600 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -2878 +2736,0 @@ files = [
- {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2886 +2743,0 @@ files = [
- {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2889,6 +2745,0 @@ files = [
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
- {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
- {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
- {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2911 +2761,0 @@ files = [
- {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2919 +2768,0 @@ files = [
- {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3131,81 +2979,0 @@ boto3 = ["aiobotocore[boto3] (>=2.5.4,<3.0.0)"]
-[[package]]
-name = "scikit-learn"
-version = "1.5.0"
-description = "A set of python modules for machine learning and data mining"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:12e40ac48555e6b551f0a0a5743cc94cc5a765c9513fe708e01f0aa001da2801"},
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:f405c4dae288f5f6553b10c4ac9ea7754d5180ec11e296464adb5d6ac68b6ef5"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df8ccabbf583315f13160a4bb06037bde99ea7d8211a69787a6b7c5d4ebb6fc3"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c75ea812cd83b1385bbfa94ae971f0d80adb338a9523f6bbcb5e0b0381151d4"},
- {file = "scikit_learn-1.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:a90c5da84829a0b9b4bf00daf62754b2be741e66b5946911f5bdfaa869fcedd6"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2a65af2d8a6cce4e163a7951a4cfbfa7fceb2d5c013a4b593686c7f16445cf9d"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:4c0c56c3005f2ec1db3787aeaabefa96256580678cec783986836fc64f8ff622"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f77547165c00625551e5c250cefa3f03f2fc92c5e18668abd90bfc4be2e0bff"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:118a8d229a41158c9f90093e46b3737120a165181a1b58c03461447aa4657415"},
- {file = "scikit_learn-1.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:a03b09f9f7f09ffe8c5efffe2e9de1196c696d811be6798ad5eddf323c6f4d40"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:460806030c666addee1f074788b3978329a5bfdc9b7d63e7aad3f6d45c67a210"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:1b94d6440603752b27842eda97f6395f570941857456c606eb1d638efdb38184"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d82c2e573f0f2f2f0be897e7a31fcf4e73869247738ab8c3ce7245549af58ab8"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3a10e1d9e834e84d05e468ec501a356226338778769317ee0b84043c0d8fb06"},
- {file = "scikit_learn-1.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:855fc5fa8ed9e4f08291203af3d3e5fbdc4737bd617a371559aaa2088166046e"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:40fb7d4a9a2db07e6e0cae4dc7bdbb8fada17043bac24104d8165e10e4cff1a2"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:47132440050b1c5beb95f8ba0b2402bbd9057ce96ec0ba86f2f445dd4f34df67"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:174beb56e3e881c90424e21f576fa69c4ffcf5174632a79ab4461c4c960315ac"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261fe334ca48f09ed64b8fae13f9b46cc43ac5f580c4a605cbb0a517456c8f71"},
- {file = "scikit_learn-1.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:057b991ac64b3e75c9c04b5f9395eaf19a6179244c089afdebaad98264bff37c"},
- {file = "scikit_learn-1.5.0.tar.gz", hash = "sha256:789e3db01c750ed6d496fa2db7d50637857b451e57bcae863bff707c1247bef7"},
-]
-
-[package.dependencies]
-joblib = ">=1.2.0"
-numpy = ">=1.19.5"
-scipy = ">=1.6.0"
-threadpoolctl = ">=3.1.0"
-
-[package.extras]
-benchmark = ["matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "pandas (>=1.1.5)"]
-build = ["cython (>=3.0.10)", "meson-python (>=0.15.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)"]
-docs = ["Pillow (>=7.1.2)", "matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)", "sphinx (>=6.0.0)", "sphinx-copybutton (>=0.5.2)", "sphinx-gallery (>=0.15.0)", "sphinx-prompt (>=1.3.0)", "sphinxext-opengraph (>=0.4.2)"]
-examples = ["matplotlib (>=3.3.4)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)"]
-install = ["joblib (>=1.2.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)", "threadpoolctl (>=3.1.0)"]
-maintenance = ["conda-lock (==2.5.6)"]
-tests = ["black (>=24.3.0)", "matplotlib (>=3.3.4)", "mypy (>=1.9)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "pyamg (>=4.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.2.1)", "scikit-image (>=0.17.2)"]
-
-[[package]]
-name = "scipy"
-version = "1.11.1"
-description = "Fundamental algorithms for scientific computing in Python"
-optional = false
-python-versions = "<3.13,>=3.9"
-files = [
- {file = "scipy-1.11.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:aec8c62fbe52914f9cf28d846cf0401dd80ab80788bbab909434eb336ed07c04"},
- {file = "scipy-1.11.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:3b9963798df1d8a52db41a6fc0e6fa65b1c60e85d73da27ae8bb754de4792481"},
- {file = "scipy-1.11.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e8eb42db36526b130dfbc417609498a6192381abc1975b91e3eb238e0b41c1a"},
- {file = "scipy-1.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:366a6a937110d80dca4f63b3f5b00cc89d36f678b2d124a01067b154e692bab1"},
- {file = "scipy-1.11.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:08d957ca82d3535b3b9ba6c8ff355d78fe975271874e2af267cb5add5bd78625"},
- {file = "scipy-1.11.1-cp310-cp310-win_amd64.whl", hash = "sha256:e866514bc2d660608447b6ba95c8900d591f2865c07cca0aa4f7ff3c4ca70f30"},
- {file = "scipy-1.11.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ba94eeef3c9caa4cea7b402a35bb02a5714ee1ee77eb98aca1eed4543beb0f4c"},
- {file = "scipy-1.11.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:512fdc18c65f76dadaca139348e525646d440220d8d05f6d21965b8d4466bccd"},
- {file = "scipy-1.11.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cce154372f0ebe88556ed06d7b196e9c2e0c13080ecb58d0f35062dc7cc28b47"},
- {file = "scipy-1.11.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b4bb943010203465ac81efa392e4645265077b4d9e99b66cf3ed33ae12254173"},
- {file = "scipy-1.11.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:249cfa465c379c9bb2c20123001e151ff5e29b351cbb7f9c91587260602c58d0"},
- {file = "scipy-1.11.1-cp311-cp311-win_amd64.whl", hash = "sha256:ffb28e3fa31b9c376d0fb1f74c1f13911c8c154a760312fbee87a21eb21efe31"},
- {file = "scipy-1.11.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:39154437654260a52871dfde852adf1b93b1d1bc5dc0ffa70068f16ec0be2624"},
- {file = "scipy-1.11.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:b588311875c58d1acd4ef17c983b9f1ab5391755a47c3d70b6bd503a45bfaf71"},
- {file = "scipy-1.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d51565560565a0307ed06fa0ec4c6f21ff094947d4844d6068ed04400c72d0c3"},
- {file = "scipy-1.11.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b41a0f322b4eb51b078cb3441e950ad661ede490c3aca66edef66f4b37ab1877"},
- {file = "scipy-1.11.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:396fae3f8c12ad14c5f3eb40499fd06a6fef8393a6baa352a652ecd51e74e029"},
- {file = "scipy-1.11.1-cp39-cp39-win_amd64.whl", hash = "sha256:be8c962a821957fdde8c4044efdab7a140c13294997a407eaee777acf63cbf0c"},
- {file = "scipy-1.11.1.tar.gz", hash = "sha256:fb5b492fa035334fd249f0973cc79ecad8b09c604b42a127a677b45a9a3d4289"},
-]
-
-[package.dependencies]
-numpy = ">=1.21.6,<1.28.0"
-
-[package.extras]
-dev = ["click", "cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyle", "pydevtool", "rich-click", "ruff", "types-psutil", "typing_extensions"]
-doc = ["jupytext", "matplotlib (>2)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (==0.9.0)", "sphinx (!=4.1.0)", "sphinx-design (>=0.2.0)"]
-test = ["asv", "gmpy2", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"]
-
@@ -3266 +3033,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3279,37 +3045,0 @@ numpy = ["numpy"]
-[[package]]
-name = "soxr"
-version = "0.4.0"
-description = "High quality, one-dimensional sample-rate conversion library"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "soxr-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0be9dbc6cb0de2e2147ad33ffe4dee0391ed38125248253f53d3f1a05b65425"},
- {file = "soxr-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:46c1dce06d156f9a6563c41f97d5d6978ccc993c3682c6f8190438c0f7417d36"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:784d2dd6d43d2663d384ed7e1f6a1156f98395bbd889b0a9def6c61a9e17cda1"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ee59424f4f1c81f6a9f3d03b4bde27992272dc8c36f9b08af7f31ce720fa6ba"},
- {file = "soxr-0.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:2975734033e8da5a241f2498b65513a160882dd1283cf5eb7eac5b3b262ae668"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:38374140503b17b3234d0deb83dfe0319727df1dbab41e1a576b61405fc82767"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a370f661576916e8b208990eb70e5db4e07ab025b47492a633370846bc0a9678"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4301600889696051bdb1469f8b10cace0d7e2d16a351c6b5fc947b3b41e10a58"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:12a0e460f1199aaed544a30c67f5df7a452b0647b63e0df706a17577e963e38b"},
- {file = "soxr-0.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:2f6f55c520fb90040f604b1203f2100b70c789d973bb0fd79b221187e3841311"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:226d405c40094f5fd5dd4b80c66fc61cc108018da0216833e843d82ccffdadcb"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c53d4bc99908e715665b3d45f0cc06e652e4f53bf4acf9e758c1cce02977e411"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a9cc0620d7b1effab9d408427711d52c3db6e295b5504dfcf549f4636904ed0d"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f99aaef14a7d268966c06cf6a06729eb98b2276493710d24a6f20fdcfc3ad26e"},
- {file = "soxr-0.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:63a59d36b8f8f3b1501e4fca2c034aacceb9b4d6888295afd269afbce5eb2f3f"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:38e65bb8beba55d8049ecf16e73c05ed3dd5e156d6086f594c40edb3181a7900"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5fd5e43fe568451152e20e16a71a61cda6340da934c344733a26674e041ab445"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83b3e477ff61b3579ec2ad66fa7a9b362072d5d9a5d1e61db3d366d26afbb8c8"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba0989025d70c472d62bf0e68778c9bbd0c9bee111c708cf64c26406937ca6be"},
- {file = "soxr-0.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:5e71482f092051544b196387e3779d726f26df30cba307424eac7a96285c5b64"},
- {file = "soxr-0.4.0.tar.gz", hash = "sha256:02385e3de07e28ddbc19ab41216075d889575895e778ce2ada950d5f46cf6a52"},
-]
-
-[package.dependencies]
-numpy = "*"
-
-[package.extras]
-docs = ["linkify-it-py", "myst-parser", "sphinx", "sphinx-book-theme"]
-test = ["pytest"]
-
@@ -3362,0 +3093,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3382,11 +3128,0 @@ syntax = ["tree-sitter (>=0.20.1,<0.21.0)", "tree-sitter-languages (==1.10.2)"]
-[[package]]
-name = "threadpoolctl"
-version = "3.2.0"
-description = "threadpoolctl"
-optional = false
-python-versions = ">=3.8"
-files = [
- {file = "threadpoolctl-3.2.0-py3-none-any.whl", hash = "sha256:2b7818516e423bdaebb97c723f86a7c6b0a83d3f3b0970328d66f4d9104dc032"},
- {file = "threadpoolctl-3.2.0.tar.gz", hash = "sha256:c96a0ba3bdddeaca37dc4cc7344aafad41cdb8c313f74fdfe387a867bba93355"},
-]
-
@@ -3414,0 +3151,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3478,0 +3317,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index 20d98876..d93fa84a 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "3.0.3.dev0"
@@ -577 +577 @@ optional = false
-python-versions = ">=3.9.0"
+python-versions = ">=3.8.0"
@@ -581,0 +582 @@ develop = false
+aiohttp = "*"
@@ -584,2 +585,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
-huggingface-hub = ">=0.24.0"
+fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
+huggingface-hub = ">=0.23.0"
@@ -596 +597 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
@@ -603 +604 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -606 +606,0 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
-pdfs = ["pdfplumber (>=0.11.4)"]
@@ -611,2 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -619,2 +619,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1302 +1302 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1326,0 +1327,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1701,0 +1708,17 @@ motor = ["dnspython (>=2.3.0)", "motor (>=3.0.0)"]
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -2821,0 +2845 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -2976 +2999,0 @@ files = [
- {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2984 +3006,0 @@ files = [
- {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2987,6 +3008,0 @@ files = [
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
- {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
- {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
- {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -3009 +3024,0 @@ files = [
- {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -3017 +3031,0 @@ files = [
- {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3249 +3262,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3364,0 +3378,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3416,0 +3447,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3480,0 +3613,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index 6656864e..2bcf07a9 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -221,10 +220,0 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte
-[[package]]
-name = "audioread"
-version = "3.0.0"
-description = "multi-library, cross-platform audio decoding"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "audioread-3.0.0.tar.gz", hash = "sha256:121995bd207eb1fda3d566beb851d3534275925bc35a4fb6da0cb11de0f7251a"},
-]
-
@@ -574 +564 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "4.0.0.dev0"
@@ -586 +575,0 @@ huggingface-hub = ">=0.24.0"
-librosa = {version = "*", optional = true, markers = "extra == \"audio\""}
@@ -596 +585 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+torchcodec = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -601 +590 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["soundfile (>=0.12.1)", "torchcodec (>=0.4.0)"]
@@ -603,2 +592,2 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
-docs = ["s3fs", "tensorflow (>=2.6.0)", "torch", "transformers"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+docs = ["tensorflow (>=2.6.0)", "torch", "transformers"]
@@ -608 +596,0 @@ quality = ["ruff (>=0.3.0)"]
-s3 = ["s3fs"]
@@ -611,2 +599,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -619,13 +607,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-
-[[package]]
-name = "decorator"
-version = "5.1.1"
-description = "Decorators for Humans"
-optional = false
-python-versions = ">=3.5"
-files = [
- {file = "decorator-5.1.1-py3-none-any.whl", hash = "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186"},
- {file = "decorator-5.1.1.tar.gz", hash = "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330"},
-]
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1197,11 +1173,0 @@ files = [
-[[package]]
-name = "joblib"
-version = "1.2.0"
-description = "Lightweight pipelining with Python functions"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "joblib-1.2.0-py3-none-any.whl", hash = "sha256:091138ed78f800342968c523bdde947e7a305b8594b910a0fea2ab83c3c6d385"},
- {file = "joblib-1.2.0.tar.gz", hash = "sha256:e1cee4a79e4af22881164f218d4311f60074197fb707e082e803b61f6d137018"},
-]
-
@@ -1227,15 +1192,0 @@ format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-
-[[package]]
-name = "lazy-loader"
-version = "0.2"
-description = "lazy_loader"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "lazy_loader-0.2-py3-none-any.whl", hash = "sha256:c35875f815c340f823ce3271ed645045397213f961b40ad0c0d395c3f5218eeb"},
- {file = "lazy_loader-0.2.tar.gz", hash = "sha256:0edc7a5175c400acb108f283749951fefdadedeb00adcec6e88b974a9254f18a"},
-]
-
-[package.extras]
-lint = ["pre-commit (>=3.1)"]
-test = ["pytest (>=7.2)", "pytest-cov (>=4.0)"]
-
@@ -1276 +1227 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1300,0 +1252,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1307,31 +1263,0 @@ url = "../../libs/libcommon"
-[[package]]
-name = "librosa"
-version = "0.10.0.post2"
-description = "Python module for audio and music processing"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "librosa-0.10.0.post2-py3-none-any.whl", hash = "sha256:0f3b56118cb01ea89df4b04e924c7f48c5c13d42cc55a12540eb04ae87ab5848"},
- {file = "librosa-0.10.0.post2.tar.gz", hash = "sha256:6623673da30773beaae962cb4685f188155582f25bc60fc52da968f59eea8567"},
-]
-
-[package.dependencies]
-audioread = ">=2.1.9"
-decorator = ">=4.3.0"
-joblib = ">=0.14"
-lazy-loader = ">=0.1"
-msgpack = ">=1.0"
-numba = ">=0.51.0"
-numpy = ">=1.20.3,<1.22.0 || >1.22.0,<1.22.1 || >1.22.1,<1.22.2 || >1.22.2"
-pooch = ">=1.0,<1.7"
-scikit-learn = ">=0.20.0"
-scipy = ">=1.2.0"
-soundfile = ">=0.12.1"
-soxr = ">=0.3.2"
-typing-extensions = ">=4.1.1"
-
-[package.extras]
-display = ["matplotlib (>=3.3.0)"]
-docs = ["ipython (>=7.0)", "matplotlib (>=3.3.0)", "mir-eval (>=0.5)", "numba (>=0.51)", "numpydoc", "presets", "sphinx (!=1.3.1,<6)", "sphinx-gallery (>=0.7)", "sphinx-multiversion (>=0.2.3)", "sphinx-rtd-theme (==1.*)", "sphinxcontrib-svg2pdfconverter"]
-tests = ["matplotlib (>=3.3.0)", "packaging (>=20.0)", "pytest", "pytest-cov", "pytest-mpl", "resampy (>=0.2.2)", "samplerate", "types-decorator"]
-
@@ -1376,30 +1301,0 @@ test = ["coverage", "pytest", "pytest-cov"]
-[[package]]
-name = "llvmlite"
-version = "0.42.0"
-description = "lightweight wrapper around basic LLVM functionality"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3366938e1bf63d26c34fbfb4c8e8d2ded57d11e0567d5bb243d89aab1eb56098"},
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c35da49666a21185d21b551fc3caf46a935d54d66969d32d72af109b5e7d2b6f"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:70f44ccc3c6220bd23e0ba698a63ec2a7d3205da0d848804807f37fc243e3f77"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:763f8d8717a9073b9e0246998de89929071d15b47f254c10eef2310b9aac033d"},
- {file = "llvmlite-0.42.0-cp310-cp310-win_amd64.whl", hash = "sha256:8d90edf400b4ceb3a0e776b6c6e4656d05c7187c439587e06f86afceb66d2be5"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae511caed28beaf1252dbaf5f40e663f533b79ceb408c874c01754cafabb9cbf"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:81e674c2fe85576e6c4474e8c7e7aba7901ac0196e864fe7985492b737dbab65"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb3975787f13eb97629052edb5017f6c170eebc1c14a0433e8089e5db43bcce6"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5bece0cdf77f22379f19b1959ccd7aee518afa4afbd3656c6365865f84903f9"},
- {file = "llvmlite-0.42.0-cp311-cp311-win_amd64.whl", hash = "sha256:7e0c4c11c8c2aa9b0701f91b799cb9134a6a6de51444eff5a9087fc7c1384275"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:08fa9ab02b0d0179c688a4216b8939138266519aaa0aa94f1195a8542faedb56"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b2fce7d355068494d1e42202c7aff25d50c462584233013eb4470c33b995e3ee"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebe66a86dc44634b59a3bc860c7b20d26d9aaffcd30364ebe8ba79161a9121f4"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d47494552559e00d81bfb836cf1c4d5a5062e54102cc5767d5aa1e77ccd2505c"},
- {file = "llvmlite-0.42.0-cp312-cp312-win_amd64.whl", hash = "sha256:05cb7e9b6ce69165ce4d1b994fbdedca0c62492e537b0cc86141b6e2c78d5888"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bdd3888544538a94d7ec99e7c62a0cdd8833609c85f0c23fcb6c5c591aec60ad"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d0936c2067a67fb8816c908d5457d63eba3e2b17e515c5fe00e5ee2bace06040"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a78ab89f1924fc11482209f6799a7a3fc74ddc80425a7a3e0e8174af0e9e2301"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7599b65c7af7abbc978dbf345712c60fd596aa5670496561cc10e8a71cebfb2"},
- {file = "llvmlite-0.42.0-cp39-cp39-win_amd64.whl", hash = "sha256:43d65cc4e206c2e902c1004dd5418417c4efa6c1d04df05c6c5675a27e8ca90e"},
- {file = "llvmlite-0.42.0.tar.gz", hash = "sha256:f92b09243c0cc3f457da8b983f67bd8e1295d0f5b3746c7a1861d7a99403854a"},
-]
-
@@ -1633,0 +1530,17 @@ pymongo = ">=3.4,<5.0"
+[[package]]
+name = "mpmath"
+version = "1.3.0"
+description = "Python library for arbitrary-precision floating-point arithmetic"
+optional = false
+python-versions = "*"
+files = [
+ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"},
+ {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"},
+]
+
+[package.extras]
+develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"]
+docs = ["sphinx"]
+gmpy = ["gmpy2 (>=2.1.0a4)"]
+tests = ["pytest (>=4.6)"]
+
@@ -1891,34 +1803,0 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"]
-[[package]]
-name = "numba"
-version = "0.59.1"
-description = "compiling Python code using LLVM"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "numba-0.59.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:97385a7f12212c4f4bc28f648720a92514bee79d7063e40ef66c2d30600fd18e"},
- {file = "numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0b77aecf52040de2a1eb1d7e314497b9e56fba17466c80b457b971a25bb1576d"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3476a4f641bfd58f35ead42f4dcaf5f132569c4647c6f1360ccf18ee4cda3990"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:525ef3f820931bdae95ee5379c670d5c97289c6520726bc6937a4a7d4230ba24"},
- {file = "numba-0.59.1-cp310-cp310-win_amd64.whl", hash = "sha256:990e395e44d192a12105eca3083b61307db7da10e093972ca285c85bef0963d6"},
- {file = "numba-0.59.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:43727e7ad20b3ec23ee4fc642f5b61845c71f75dd2825b3c234390c6d8d64051"},
- {file = "numba-0.59.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:411df625372c77959570050e861981e9d196cc1da9aa62c3d6a836b5cc338966"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2801003caa263d1e8497fb84829a7ecfb61738a95f62bc05693fcf1733e978e4"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:dd2842fac03be4e5324ebbbd4d2d0c8c0fc6e0df75c09477dd45b288a0777389"},
- {file = "numba-0.59.1-cp311-cp311-win_amd64.whl", hash = "sha256:0594b3dfb369fada1f8bb2e3045cd6c61a564c62e50cf1f86b4666bc721b3450"},
- {file = "numba-0.59.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:1cce206a3b92836cdf26ef39d3a3242fec25e07f020cc4feec4c4a865e340569"},
- {file = "numba-0.59.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8c8b4477763cb1fbd86a3be7050500229417bf60867c93e131fd2626edb02238"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d80bce4ef7e65bf895c29e3889ca75a29ee01da80266a01d34815918e365835"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f7ad1d217773e89a9845886401eaaab0a156a90aa2f179fdc125261fd1105096"},
- {file = "numba-0.59.1-cp312-cp312-win_amd64.whl", hash = "sha256:5bf68f4d69dd3a9f26a9b23548fa23e3bcb9042e2935257b471d2a8d3c424b7f"},
- {file = "numba-0.59.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4e0318ae729de6e5dbe64c75ead1a95eb01fabfe0e2ebed81ebf0344d32db0ae"},
- {file = "numba-0.59.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0f68589740a8c38bb7dc1b938b55d1145244c8353078eea23895d4f82c8b9ec1"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:649913a3758891c77c32e2d2a3bcbedf4a69f5fea276d11f9119677c45a422e8"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9712808e4545270291d76b9a264839ac878c5eb7d8b6e02c970dc0ac29bc8187"},
- {file = "numba-0.59.1-cp39-cp39-win_amd64.whl", hash = "sha256:8d51ccd7008a83105ad6a0082b6a2b70f1142dc7cfd76deb8c5a862367eb8c86"},
- {file = "numba-0.59.1.tar.gz", hash = "sha256:76f69132b96028d2774ed20415e8c528a34e3299a40581bae178f0994a2f370b"},
-]
-
-[package.dependencies]
-llvmlite = "==0.42.*"
-numpy = ">=1.22,<1.27"
-
@@ -2402,21 +2280,0 @@ xlsxwriter = ["xlsxwriter"]
-[[package]]
-name = "pooch"
-version = "1.6.0"
-description = "\"Pooch manages your Python library's sample data files: it automatically downloads and stores them in a local directory, with support for versioning and corruption checks.\""
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "pooch-1.6.0-py3-none-any.whl", hash = "sha256:3bf0e20027096836b8dbce0152dbb785a269abeb621618eb4bdd275ff1e23c9c"},
- {file = "pooch-1.6.0.tar.gz", hash = "sha256:57d20ec4b10dd694d2b05bb64bc6b109c6e85a6c1405794ce87ed8b341ab3f44"},
-]
-
-[package.dependencies]
-appdirs = ">=1.3.0"
-packaging = ">=20.0"
-requests = ">=2.19.0"
-
-[package.extras]
-progress = ["tqdm (>=4.41.0,<5.0.0)"]
-sftp = ["paramiko (>=2.7.0)"]
-xxhash = ["xxhash (>=1.4.3)"]
-
@@ -2735,0 +2594 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -3030,81 +2888,0 @@ boto3 = ["aiobotocore[boto3] (>=2.5.4,<3.0.0)"]
-[[package]]
-name = "scikit-learn"
-version = "1.5.0"
-description = "A set of python modules for machine learning and data mining"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:12e40ac48555e6b551f0a0a5743cc94cc5a765c9513fe708e01f0aa001da2801"},
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:f405c4dae288f5f6553b10c4ac9ea7754d5180ec11e296464adb5d6ac68b6ef5"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df8ccabbf583315f13160a4bb06037bde99ea7d8211a69787a6b7c5d4ebb6fc3"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c75ea812cd83b1385bbfa94ae971f0d80adb338a9523f6bbcb5e0b0381151d4"},
- {file = "scikit_learn-1.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:a90c5da84829a0b9b4bf00daf62754b2be741e66b5946911f5bdfaa869fcedd6"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2a65af2d8a6cce4e163a7951a4cfbfa7fceb2d5c013a4b593686c7f16445cf9d"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:4c0c56c3005f2ec1db3787aeaabefa96256580678cec783986836fc64f8ff622"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f77547165c00625551e5c250cefa3f03f2fc92c5e18668abd90bfc4be2e0bff"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:118a8d229a41158c9f90093e46b3737120a165181a1b58c03461447aa4657415"},
- {file = "scikit_learn-1.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:a03b09f9f7f09ffe8c5efffe2e9de1196c696d811be6798ad5eddf323c6f4d40"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:460806030c666addee1f074788b3978329a5bfdc9b7d63e7aad3f6d45c67a210"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:1b94d6440603752b27842eda97f6395f570941857456c606eb1d638efdb38184"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d82c2e573f0f2f2f0be897e7a31fcf4e73869247738ab8c3ce7245549af58ab8"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3a10e1d9e834e84d05e468ec501a356226338778769317ee0b84043c0d8fb06"},
- {file = "scikit_learn-1.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:855fc5fa8ed9e4f08291203af3d3e5fbdc4737bd617a371559aaa2088166046e"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:40fb7d4a9a2db07e6e0cae4dc7bdbb8fada17043bac24104d8165e10e4cff1a2"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:47132440050b1c5beb95f8ba0b2402bbd9057ce96ec0ba86f2f445dd4f34df67"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:174beb56e3e881c90424e21f576fa69c4ffcf5174632a79ab4461c4c960315ac"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261fe334ca48f09ed64b8fae13f9b46cc43ac5f580c4a605cbb0a517456c8f71"},
- {file = "scikit_learn-1.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:057b991ac64b3e75c9c04b5f9395eaf19a6179244c089afdebaad98264bff37c"},
- {file = "scikit_learn-1.5.0.tar.gz", hash = "sha256:789e3db01c750ed6d496fa2db7d50637857b451e57bcae863bff707c1247bef7"},
-]
-
-[package.dependencies]
-joblib = ">=1.2.0"
-numpy = ">=1.19.5"
-scipy = ">=1.6.0"
-threadpoolctl = ">=3.1.0"
-
-[package.extras]
-benchmark = ["matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "pandas (>=1.1.5)"]
-build = ["cython (>=3.0.10)", "meson-python (>=0.15.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)"]
-docs = ["Pillow (>=7.1.2)", "matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)", "sphinx (>=6.0.0)", "sphinx-copybutton (>=0.5.2)", "sphinx-gallery (>=0.15.0)", "sphinx-prompt (>=1.3.0)", "sphinxext-opengraph (>=0.4.2)"]
-examples = ["matplotlib (>=3.3.4)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)"]
-install = ["joblib (>=1.2.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)", "threadpoolctl (>=3.1.0)"]
-maintenance = ["conda-lock (==2.5.6)"]
-tests = ["black (>=24.3.0)", "matplotlib (>=3.3.4)", "mypy (>=1.9)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "pyamg (>=4.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.2.1)", "scikit-image (>=0.17.2)"]
-
-[[package]]
-name = "scipy"
-version = "1.11.1"
-description = "Fundamental algorithms for scientific computing in Python"
-optional = false
-python-versions = "<3.13,>=3.9"
-files = [
- {file = "scipy-1.11.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:aec8c62fbe52914f9cf28d846cf0401dd80ab80788bbab909434eb336ed07c04"},
- {file = "scipy-1.11.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:3b9963798df1d8a52db41a6fc0e6fa65b1c60e85d73da27ae8bb754de4792481"},
- {file = "scipy-1.11.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e8eb42db36526b130dfbc417609498a6192381abc1975b91e3eb238e0b41c1a"},
- {file = "scipy-1.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:366a6a937110d80dca4f63b3f5b00cc89d36f678b2d124a01067b154e692bab1"},
- {file = "scipy-1.11.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:08d957ca82d3535b3b9ba6c8ff355d78fe975271874e2af267cb5add5bd78625"},
- {file = "scipy-1.11.1-cp310-cp310-win_amd64.whl", hash = "sha256:e866514bc2d660608447b6ba95c8900d591f2865c07cca0aa4f7ff3c4ca70f30"},
- {file = "scipy-1.11.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ba94eeef3c9caa4cea7b402a35bb02a5714ee1ee77eb98aca1eed4543beb0f4c"},
- {file = "scipy-1.11.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:512fdc18c65f76dadaca139348e525646d440220d8d05f6d21965b8d4466bccd"},
- {file = "scipy-1.11.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cce154372f0ebe88556ed06d7b196e9c2e0c13080ecb58d0f35062dc7cc28b47"},
- {file = "scipy-1.11.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b4bb943010203465ac81efa392e4645265077b4d9e99b66cf3ed33ae12254173"},
- {file = "scipy-1.11.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:249cfa465c379c9bb2c20123001e151ff5e29b351cbb7f9c91587260602c58d0"},
- {file = "scipy-1.11.1-cp311-cp311-win_amd64.whl", hash = "sha256:ffb28e3fa31b9c376d0fb1f74c1f13911c8c154a760312fbee87a21eb21efe31"},
- {file = "scipy-1.11.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:39154437654260a52871dfde852adf1b93b1d1bc5dc0ffa70068f16ec0be2624"},
- {file = "scipy-1.11.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:b588311875c58d1acd4ef17c983b9f1ab5391755a47c3d70b6bd503a45bfaf71"},
- {file = "scipy-1.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d51565560565a0307ed06fa0ec4c6f21ff094947d4844d6068ed04400c72d0c3"},
- {file = "scipy-1.11.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b41a0f322b4eb51b078cb3441e950ad661ede490c3aca66edef66f4b37ab1877"},
- {file = "scipy-1.11.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:396fae3f8c12ad14c5f3eb40499fd06a6fef8393a6baa352a652ecd51e74e029"},
- {file = "scipy-1.11.1-cp39-cp39-win_amd64.whl", hash = "sha256:be8c962a821957fdde8c4044efdab7a140c13294997a407eaee777acf63cbf0c"},
- {file = "scipy-1.11.1.tar.gz", hash = "sha256:fb5b492fa035334fd249f0973cc79ecad8b09c604b42a127a677b45a9a3d4289"},
-]
-
-[package.dependencies]
-numpy = ">=1.21.6,<1.28.0"
-
-[package.extras]
-dev = ["click", "cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyle", "pydevtool", "rich-click", "ruff", "types-psutil", "typing_extensions"]
-doc = ["jupytext", "matplotlib (>2)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (==0.9.0)", "sphinx (!=4.1.0)", "sphinx-design (>=0.2.0)"]
-test = ["asv", "gmpy2", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"]
-
@@ -3165 +2942,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3178,37 +2954,0 @@ numpy = ["numpy"]
-[[package]]
-name = "soxr"
-version = "0.4.0"
-description = "High quality, one-dimensional sample-rate conversion library"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "soxr-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0be9dbc6cb0de2e2147ad33ffe4dee0391ed38125248253f53d3f1a05b65425"},
- {file = "soxr-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:46c1dce06d156f9a6563c41f97d5d6978ccc993c3682c6f8190438c0f7417d36"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:784d2dd6d43d2663d384ed7e1f6a1156f98395bbd889b0a9def6c61a9e17cda1"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ee59424f4f1c81f6a9f3d03b4bde27992272dc8c36f9b08af7f31ce720fa6ba"},
- {file = "soxr-0.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:2975734033e8da5a241f2498b65513a160882dd1283cf5eb7eac5b3b262ae668"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:38374140503b17b3234d0deb83dfe0319727df1dbab41e1a576b61405fc82767"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a370f661576916e8b208990eb70e5db4e07ab025b47492a633370846bc0a9678"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4301600889696051bdb1469f8b10cace0d7e2d16a351c6b5fc947b3b41e10a58"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:12a0e460f1199aaed544a30c67f5df7a452b0647b63e0df706a17577e963e38b"},
- {file = "soxr-0.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:2f6f55c520fb90040f604b1203f2100b70c789d973bb0fd79b221187e3841311"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:226d405c40094f5fd5dd4b80c66fc61cc108018da0216833e843d82ccffdadcb"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c53d4bc99908e715665b3d45f0cc06e652e4f53bf4acf9e758c1cce02977e411"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a9cc0620d7b1effab9d408427711d52c3db6e295b5504dfcf549f4636904ed0d"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f99aaef14a7d268966c06cf6a06729eb98b2276493710d24a6f20fdcfc3ad26e"},
- {file = "soxr-0.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:63a59d36b8f8f3b1501e4fca2c034aacceb9b4d6888295afd269afbce5eb2f3f"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:38e65bb8beba55d8049ecf16e73c05ed3dd5e156d6086f594c40edb3181a7900"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5fd5e43fe568451152e20e16a71a61cda6340da934c344733a26674e041ab445"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83b3e477ff61b3579ec2ad66fa7a9b362072d5d9a5d1e61db3d366d26afbb8c8"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba0989025d70c472d62bf0e68778c9bbd0c9bee111c708cf64c26406937ca6be"},
- {file = "soxr-0.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:5e71482f092051544b196387e3779d726f26df30cba307424eac7a96285c5b64"},
- {file = "soxr-0.4.0.tar.gz", hash = "sha256:02385e3de07e28ddbc19ab41216075d889575895e778ce2ada950d5f46cf6a52"},
-]
-
-[package.dependencies]
-numpy = "*"
-
-[package.extras]
-docs = ["linkify-it-py", "myst-parser", "sphinx", "sphinx-book-theme"]
-test = ["pytest"]
-
@@ -3261,0 +3002,17 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0"
+[[package]]
+name = "sympy"
+version = "1.14.0"
+description = "Computer algebra system (CAS) in Python"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
+]
+
+[package.dependencies]
+mpmath = ">=1.1.0,<1.4"
+
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
+
@@ -3281,11 +3037,0 @@ syntax = ["tree-sitter (>=0.20.1,<0.21.0)", "tree-sitter-languages (==1.10.2)"]
-[[package]]
-name = "threadpoolctl"
-version = "3.1.0"
-description = "threadpoolctl"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "threadpoolctl-3.1.0-py3-none-any.whl", hash = "sha256:8b99adda265feb6773280df41eece7b2e6561b772d21ffd52e372f999024907b"},
- {file = "threadpoolctl-3.1.0.tar.gz", hash = "sha256:a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380"},
-]
-
@@ -3313,0 +3060,102 @@ files = [
+[[package]]
+name = "torch"
+version = "2.7.1"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
+
+[[package]]
+name = "torch"
+version = "2.7.1+cpu"
+description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
+optional = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
+]
+
+[package.dependencies]
+filelock = "*"
+fsspec = "*"
+jinja2 = "*"
+networkx = "*"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
+
+[package.extras]
+opt-einsum = ["opt-einsum (>=3.3)"]
+optree = ["optree (>=0.13.0)"]
+
+[package.source]
+type = "url"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
+
@@ -3377,0 +3226,11 @@ files = [
+[[package]]
+name = "typing-extensions"
+version = "4.14.0"
+description = "Backported and Experimental Type Hints for Python 3.9+"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"},
+ {file = "typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4"},
+]
+
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index bc7c7e0a..0cea8003 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -243,10 +242,0 @@ tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pyte
-[[package]]
-name = "audioread"
-version = "3.0.0"
-description = "multi-library, cross-platform audio decoding"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "audioread-3.0.0.tar.gz", hash = "sha256:121995bd207eb1fda3d566beb851d3534275925bc35a4fb6da0cb11de0f7251a"},
-]
-
@@ -882 +872 @@ name = "datasets"
-version = "3.6.0.dev0"
+version = "4.0.0.dev0"
@@ -894 +883,0 @@ huggingface-hub = ">=0.24.0"
-librosa = {version = "*", optional = true, markers = "extra == \"audio\""}
@@ -904 +893 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
+torchcodec = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -909 +898 @@ xxhash = "*"
-audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
+audio = ["soundfile (>=0.12.1)", "torchcodec (>=0.4.0)"]
@@ -911,2 +900,2 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
-docs = ["s3fs", "tensorflow (>=2.6.0)", "torch", "transformers"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+docs = ["tensorflow (>=2.6.0)", "torch", "transformers"]
@@ -916 +904,0 @@ quality = ["ruff (>=0.3.0)"]
-s3 = ["s3fs"]
@@ -919,2 +907,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "numba (>=0.56.4)", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchcodec (>=0.4.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -927,13 +915,2 @@ url = "https://github.com/huggingface/datasets.git"
-reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
-
-[[package]]
-name = "decorator"
-version = "5.1.1"
-description = "Decorators for Humans"
-optional = false
-python-versions = ">=3.5"
-files = [
- {file = "decorator-5.1.1-py3-none-any.whl", hash = "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186"},
- {file = "decorator-5.1.1.tar.gz", hash = "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330"},
-]
+reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
+resolved_reference = "c2490a4f148f8547d7df55daca48512805fc2a32"
@@ -1564,14 +1540,0 @@ files = [
-[[package]]
-name = "intel-openmp"
-version = "2021.4.0"
-description = "Intel OpenMP* Runtime Library"
-optional = false
-python-versions = "*"
-files = [
- {file = "intel_openmp-2021.4.0-py2.py3-none-macosx_10_15_x86_64.macosx_11_0_x86_64.whl", hash = "sha256:41c01e266a7fdb631a7609191709322da2bbf24b252ba763f125dd651bcc7675"},
- {file = "intel_openmp-2021.4.0-py2.py3-none-manylinux1_i686.whl", hash = "sha256:3b921236a38384e2016f0f3d65af6732cf2c12918087128a9163225451e776f2"},
- {file = "intel_openmp-2021.4.0-py2.py3-none-manylinux1_x86_64.whl", hash = "sha256:e2240ab8d01472fed04f3544a878cda5da16c26232b7ea1b59132dbfb48b186e"},
- {file = "intel_openmp-2021.4.0-py2.py3-none-win32.whl", hash = "sha256:6e863d8fd3d7e8ef389d52cf97a50fe2afe1a19247e8c0d168ce021546f96fc9"},
- {file = "intel_openmp-2021.4.0-py2.py3-none-win_amd64.whl", hash = "sha256:eef4c8bcc8acefd7f5cd3b9384dbf73d59e2c99fc56545712ded913f43c4a94f"},
-]
-
@@ -1606,11 +1568,0 @@ files = [
-[[package]]
-name = "joblib"
-version = "1.2.0"
-description = "Lightweight pipelining with Python functions"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "joblib-1.2.0-py3-none-any.whl", hash = "sha256:091138ed78f800342968c523bdde947e7a305b8594b910a0fea2ab83c3c6d385"},
- {file = "joblib-1.2.0.tar.gz", hash = "sha256:e1cee4a79e4af22881164f218d4311f60074197fb707e082e803b61f6d137018"},
-]
-
@@ -1653,15 +1604,0 @@ test = ["pytest", "pytest-cov"]
-[[package]]
-name = "lazy-loader"
-version = "0.2"
-description = "lazy_loader"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "lazy_loader-0.2-py3-none-any.whl", hash = "sha256:c35875f815c340f823ce3271ed645045397213f961b40ad0c0d395c3f5218eeb"},
- {file = "lazy_loader-0.2.tar.gz", hash = "sha256:0edc7a5175c400acb108f283749951fefdadedeb00adcec6e88b974a9254f18a"},
-]
-
-[package.extras]
-lint = ["pre-commit (>=3.1)"]
-test = ["pytest (>=7.2)", "pytest-cov (>=4.0)"]
-
@@ -1680 +1617 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "c2490a4f148f8547d7df55daca48512805fc2a32", extras = ["audio", "vision"]}
@@ -1704,0 +1642,6 @@ starlette-prometheus = "^0.9.0"
+torch = [
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl", markers = "sys_platform == \"linux\" and platform_machine != \"aarch64\" or sys_platform == \"darwin\" and platform_machine != \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == \"darwin\" and platform_machine == \"arm64\""},
+ {url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl", markers = "sys_platform == \"linux\" and platform_machine == \"aarch64\""},
+]
+torchcodec = "0.4.0"
@@ -1711,31 +1653,0 @@ url = "../../libs/libcommon"
-[[package]]
-name = "librosa"
-version = "0.10.0.post2"
-description = "Python module for audio and music processing"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "librosa-0.10.0.post2-py3-none-any.whl", hash = "sha256:0f3b56118cb01ea89df4b04e924c7f48c5c13d42cc55a12540eb04ae87ab5848"},
- {file = "librosa-0.10.0.post2.tar.gz", hash = "sha256:6623673da30773beaae962cb4685f188155582f25bc60fc52da968f59eea8567"},
-]
-
-[package.dependencies]
-audioread = ">=2.1.9"
-decorator = ">=4.3.0"
-joblib = ">=0.14"
-lazy-loader = ">=0.1"
-msgpack = ">=1.0"
-numba = ">=0.51.0"
-numpy = ">=1.20.3,<1.22.0 || >1.22.0,<1.22.1 || >1.22.1,<1.22.2 || >1.22.2"
-pooch = ">=1.0,<1.7"
-scikit-learn = ">=0.20.0"
-scipy = ">=1.2.0"
-soundfile = ">=0.12.1"
-soxr = ">=0.3.2"
-typing-extensions = ">=4.1.1"
-
-[package.extras]
-display = ["matplotlib (>=3.3.0)"]
-docs = ["ipython (>=7.0)", "matplotlib (>=3.3.0)", "mir-eval (>=0.5)", "numba (>=0.51)", "numpydoc", "presets", "sphinx (!=1.3.1,<6)", "sphinx-gallery (>=0.7)", "sphinx-multiversion (>=0.2.3)", "sphinx-rtd-theme (==1.*)", "sphinxcontrib-svg2pdfconverter"]
-tests = ["matplotlib (>=3.3.0)", "packaging (>=20.0)", "pytest", "pytest-cov", "pytest-mpl", "resampy (>=0.2.2)", "samplerate", "types-decorator"]
-
@@ -1780,30 +1691,0 @@ test = ["coverage", "pytest", "pytest-cov"]
-[[package]]
-name = "llvmlite"
-version = "0.42.0"
-description = "lightweight wrapper around basic LLVM functionality"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3366938e1bf63d26c34fbfb4c8e8d2ded57d11e0567d5bb243d89aab1eb56098"},
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c35da49666a21185d21b551fc3caf46a935d54d66969d32d72af109b5e7d2b6f"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:70f44ccc3c6220bd23e0ba698a63ec2a7d3205da0d848804807f37fc243e3f77"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:763f8d8717a9073b9e0246998de89929071d15b47f254c10eef2310b9aac033d"},
- {file = "llvmlite-0.42.0-cp310-cp310-win_amd64.whl", hash = "sha256:8d90edf400b4ceb3a0e776b6c6e4656d05c7187c439587e06f86afceb66d2be5"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae511caed28beaf1252dbaf5f40e663f533b79ceb408c874c01754cafabb9cbf"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:81e674c2fe85576e6c4474e8c7e7aba7901ac0196e864fe7985492b737dbab65"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb3975787f13eb97629052edb5017f6c170eebc1c14a0433e8089e5db43bcce6"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5bece0cdf77f22379f19b1959ccd7aee518afa4afbd3656c6365865f84903f9"},
- {file = "llvmlite-0.42.0-cp311-cp311-win_amd64.whl", hash = "sha256:7e0c4c11c8c2aa9b0701f91b799cb9134a6a6de51444eff5a9087fc7c1384275"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:08fa9ab02b0d0179c688a4216b8939138266519aaa0aa94f1195a8542faedb56"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b2fce7d355068494d1e42202c7aff25d50c462584233013eb4470c33b995e3ee"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebe66a86dc44634b59a3bc860c7b20d26d9aaffcd30364ebe8ba79161a9121f4"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d47494552559e00d81bfb836cf1c4d5a5062e54102cc5767d5aa1e77ccd2505c"},
- {file = "llvmlite-0.42.0-cp312-cp312-win_amd64.whl", hash = "sha256:05cb7e9b6ce69165ce4d1b994fbdedca0c62492e537b0cc86141b6e2c78d5888"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bdd3888544538a94d7ec99e7c62a0cdd8833609c85f0c23fcb6c5c591aec60ad"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d0936c2067a67fb8816c908d5457d63eba3e2b17e515c5fe00e5ee2bace06040"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a78ab89f1924fc11482209f6799a7a3fc74ddc80425a7a3e0e8174af0e9e2301"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7599b65c7af7abbc978dbf345712c60fd596aa5670496561cc10e8a71cebfb2"},
- {file = "llvmlite-0.42.0-cp39-cp39-win_amd64.whl", hash = "sha256:43d65cc4e206c2e902c1004dd5418417c4efa6c1d04df05c6c5675a27e8ca90e"},
- {file = "llvmlite-0.42.0.tar.gz", hash = "sha256:f92b09243c0cc3f457da8b983f67bd8e1295d0f5b3746c7a1861d7a99403854a"},
-]
-
@@ -1947,10 +1828,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2111,18 +1982,0 @@ psutil = {version = ">=4.0.0", markers = "sys_platform != \"cygwin\""}
-[[package]]
-name = "mkl"
-version = "2021.4.0"
-description = "Intel® oneAPI Math Kernel Library"
-optional = false
-python-versions = "*"
-files = [
- {file = "mkl-2021.4.0-py2.py3-none-macosx_10_15_x86_64.macosx_11_0_x86_64.whl", hash = "sha256:67460f5cd7e30e405b54d70d1ed3ca78118370b65f7327d495e9c8847705e2fb"},
- {file = "mkl-2021.4.0-py2.py3-none-manylinux1_i686.whl", hash = "sha256:636d07d90e68ccc9630c654d47ce9fdeb036bb46e2b193b3a9ac8cfea683cce5"},
- {file = "mkl-2021.4.0-py2.py3-none-manylinux1_x86_64.whl", hash = "sha256:398dbf2b0d12acaf54117a5210e8f191827f373d362d796091d161f610c1ebfb"},
- {file = "mkl-2021.4.0-py2.py3-none-win32.whl", hash = "sha256:439c640b269a5668134e3dcbcea4350459c4a8bc46469669b2d67e07e3d330e8"},
- {file = "mkl-2021.4.0-py2.py3-none-win_amd64.whl", hash = "sha256:ceef3cafce4c009dd25f65d7ad0d833a0fbadc3d8903991ec92351fe5de1e718"},
-]
-
-[package.dependencies]
-intel-openmp = "==2021.*"
-tbb = "==2021.*"
-
@@ -2535,34 +2388,0 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"]
-[[package]]
-name = "numba"
-version = "0.59.1"
-description = "compiling Python code using LLVM"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "numba-0.59.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:97385a7f12212c4f4bc28f648720a92514bee79d7063e40ef66c2d30600fd18e"},
- {file = "numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0b77aecf52040de2a1eb1d7e314497b9e56fba17466c80b457b971a25bb1576d"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3476a4f641bfd58f35ead42f4dcaf5f132569c4647c6f1360ccf18ee4cda3990"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:525ef3f820931bdae95ee5379c670d5c97289c6520726bc6937a4a7d4230ba24"},
- {file = "numba-0.59.1-cp310-cp310-win_amd64.whl", hash = "sha256:990e395e44d192a12105eca3083b61307db7da10e093972ca285c85bef0963d6"},
- {file = "numba-0.59.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:43727e7ad20b3ec23ee4fc642f5b61845c71f75dd2825b3c234390c6d8d64051"},
- {file = "numba-0.59.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:411df625372c77959570050e861981e9d196cc1da9aa62c3d6a836b5cc338966"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2801003caa263d1e8497fb84829a7ecfb61738a95f62bc05693fcf1733e978e4"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:dd2842fac03be4e5324ebbbd4d2d0c8c0fc6e0df75c09477dd45b288a0777389"},
- {file = "numba-0.59.1-cp311-cp311-win_amd64.whl", hash = "sha256:0594b3dfb369fada1f8bb2e3045cd6c61a564c62e50cf1f86b4666bc721b3450"},
- {file = "numba-0.59.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:1cce206a3b92836cdf26ef39d3a3242fec25e07f020cc4feec4c4a865e340569"},
- {file = "numba-0.59.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8c8b4477763cb1fbd86a3be7050500229417bf60867c93e131fd2626edb02238"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d80bce4ef7e65bf895c29e3889ca75a29ee01da80266a01d34815918e365835"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f7ad1d217773e89a9845886401eaaab0a156a90aa2f179fdc125261fd1105096"},
- {file = "numba-0.59.1-cp312-cp312-win_amd64.whl", hash = "sha256:5bf68f4d69dd3a9f26a9b23548fa23e3bcb9042e2935257b471d2a8d3c424b7f"},
- {file = "numba-0.59.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4e0318ae729de6e5dbe64c75ead1a95eb01fabfe0e2ebed81ebf0344d32db0ae"},
- {file = "numba-0.59.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0f68589740a8c38bb7dc1b938b55d1145244c8353078eea23895d4f82c8b9ec1"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:649913a3758891c77c32e2d2a3bcbedf4a69f5fea276d11f9119677c45a422e8"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9712808e4545270291d76b9a264839ac878c5eb7d8b6e02c970dc0ac29bc8187"},
- {file = "numba-0.59.1-cp39-cp39-win_amd64.whl", hash = "sha256:8d51ccd7008a83105ad6a0082b6a2b70f1142dc7cfd76deb8c5a862367eb8c86"},
- {file = "numba-0.59.1.tar.gz", hash = "sha256:76f69132b96028d2774ed20415e8c528a34e3299a40581bae178f0994a2f370b"},
-]
-
-[package.dependencies]
-llvmlite = "==0.42.*"
-numpy = ">=1.22,<1.27"
-
@@ -3071,21 +2890,0 @@ xlsxwriter = ["xlsxwriter"]
-[[package]]
-name = "pooch"
-version = "1.6.0"
-description = "\"Pooch manages your Python library's sample data files: it automatically downloads and stores them in a local directory, with support for versioning and corruption checks.\""
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "pooch-1.6.0-py3-none-any.whl", hash = "sha256:3bf0e20027096836b8dbce0152dbb785a269abeb621618eb4bdd275ff1e23c9c"},
- {file = "pooch-1.6.0.tar.gz", hash = "sha256:57d20ec4b10dd694d2b05bb64bc6b109c6e85a6c1405794ce87ed8b341ab3f44"},
-]
-
-[package.dependencies]
-appdirs = ">=1.3.0"
-packaging = ">=20.0"
-requests = ">=2.19.0"
-
-[package.extras]
-progress = ["tqdm (>=4.41.0,<5.0.0)"]
-sftp = ["paramiko (>=2.7.0)"]
-xxhash = ["xxhash (>=1.4.3)"]
-
@@ -3730,0 +3530 @@ files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc"},
@@ -4367,87 +4166,0 @@ crt = ["botocore[crt] (>=1.33.2,<2.0a.0)"]
-[[package]]
-name = "scikit-learn"
-version = "1.5.0"
-description = "A set of python modules for machine learning and data mining"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:12e40ac48555e6b551f0a0a5743cc94cc5a765c9513fe708e01f0aa001da2801"},
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:f405c4dae288f5f6553b10c4ac9ea7754d5180ec11e296464adb5d6ac68b6ef5"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df8ccabbf583315f13160a4bb06037bde99ea7d8211a69787a6b7c5d4ebb6fc3"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c75ea812cd83b1385bbfa94ae971f0d80adb338a9523f6bbcb5e0b0381151d4"},
- {file = "scikit_learn-1.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:a90c5da84829a0b9b4bf00daf62754b2be741e66b5946911f5bdfaa869fcedd6"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2a65af2d8a6cce4e163a7951a4cfbfa7fceb2d5c013a4b593686c7f16445cf9d"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:4c0c56c3005f2ec1db3787aeaabefa96256580678cec783986836fc64f8ff622"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f77547165c00625551e5c250cefa3f03f2fc92c5e18668abd90bfc4be2e0bff"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:118a8d229a41158c9f90093e46b3737120a165181a1b58c03461447aa4657415"},
- {file = "scikit_learn-1.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:a03b09f9f7f09ffe8c5efffe2e9de1196c696d811be6798ad5eddf323c6f4d40"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:460806030c666addee1f074788b3978329a5bfdc9b7d63e7aad3f6d45c67a210"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:1b94d6440603752b27842eda97f6395f570941857456c606eb1d638efdb38184"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d82c2e573f0f2f2f0be897e7a31fcf4e73869247738ab8c3ce7245549af58ab8"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3a10e1d9e834e84d05e468ec501a356226338778769317ee0b84043c0d8fb06"},
- {file = "scikit_learn-1.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:855fc5fa8ed9e4f08291203af3d3e5fbdc4737bd617a371559aaa2088166046e"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:40fb7d4a9a2db07e6e0cae4dc7bdbb8fada17043bac24104d8165e10e4cff1a2"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:47132440050b1c5beb95f8ba0b2402bbd9057ce96ec0ba86f2f445dd4f34df67"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:174beb56e3e881c90424e21f576fa69c4ffcf5174632a79ab4461c4c960315ac"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261fe334ca48f09ed64b8fae13f9b46cc43ac5f580c4a605cbb0a517456c8f71"},
- {file = "scikit_learn-1.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:057b991ac64b3e75c9c04b5f9395eaf19a6179244c089afdebaad98264bff37c"},
- {file = "scikit_learn-1.5.0.tar.gz", hash = "sha256:789e3db01c750ed6d496fa2db7d50637857b451e57bcae863bff707c1247bef7"},
-]
-
-[package.dependencies]
-joblib = ">=1.2.0"
-numpy = ">=1.19.5"
-scipy = ">=1.6.0"
-threadpoolctl = ">=3.1.0"
-
-[package.extras]
-benchmark = ["matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "pandas (>=1.1.5)"]
-build = ["cython (>=3.0.10)", "meson-python (>=0.15.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)"]
-docs = ["Pillow (>=7.1.2)", "matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)", "sphinx (>=6.0.0)", "sphinx-copybutton (>=0.5.2)", "sphinx-gallery (>=0.15.0)", "sphinx-prompt (>=1.3.0)", "sphinxext-opengraph (>=0.4.2)"]
-examples = ["matplotlib (>=3.3.4)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)"]
-install = ["joblib (>=1.2.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)", "threadpoolctl (>=3.1.0)"]
-maintenance = ["conda-lock (==2.5.6)"]
-tests = ["black (>=24.3.0)", "matplotlib (>=3.3.4)", "mypy (>=1.9)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "pyamg (>=4.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.2.1)", "scikit-image (>=0.17.2)"]
-
-[[package]]
-name = "scipy"
-version = "1.12.0"
-description = "Fundamental algorithms for scientific computing in Python"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "scipy-1.12.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:78e4402e140879387187f7f25d91cc592b3501a2e51dfb320f48dfb73565f10b"},
- {file = "scipy-1.12.0-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:f5f00ebaf8de24d14b8449981a2842d404152774c1a1d880c901bf454cb8e2a1"},
- {file = "scipy-1.12.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e53958531a7c695ff66c2e7bb7b79560ffdc562e2051644c5576c39ff8efb563"},
- {file = "scipy-1.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5e32847e08da8d895ce09d108a494d9eb78974cf6de23063f93306a3e419960c"},
- {file = "scipy-1.12.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:4c1020cad92772bf44b8e4cdabc1df5d87376cb219742549ef69fc9fd86282dd"},
- {file = "scipy-1.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:75ea2a144096b5e39402e2ff53a36fecfd3b960d786b7efd3c180e29c39e53f2"},
- {file = "scipy-1.12.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:408c68423f9de16cb9e602528be4ce0d6312b05001f3de61fe9ec8b1263cad08"},
- {file = "scipy-1.12.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:5adfad5dbf0163397beb4aca679187d24aec085343755fcdbdeb32b3679f254c"},
- {file = "scipy-1.12.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c3003652496f6e7c387b1cf63f4bb720951cfa18907e998ea551e6de51a04467"},
- {file = "scipy-1.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8b8066bce124ee5531d12a74b617d9ac0ea59245246410e19bca549656d9a40a"},
- {file = "scipy-1.12.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:8bee4993817e204d761dba10dbab0774ba5a8612e57e81319ea04d84945375ba"},
- {file = "scipy-1.12.0-cp311-cp311-win_amd64.whl", hash = "sha256:a24024d45ce9a675c1fb8494e8e5244efea1c7a09c60beb1eeb80373d0fecc70"},
- {file = "scipy-1.12.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:e7e76cc48638228212c747ada851ef355c2bb5e7f939e10952bc504c11f4e372"},
- {file = "scipy-1.12.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f7ce148dffcd64ade37b2df9315541f9adad6efcaa86866ee7dd5db0c8f041c3"},
- {file = "scipy-1.12.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9c39f92041f490422924dfdb782527a4abddf4707616e07b021de33467f917bc"},
- {file = "scipy-1.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a7ebda398f86e56178c2fa94cad15bf457a218a54a35c2a7b4490b9f9cb2676c"},
- {file = "scipy-1.12.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:95e5c750d55cf518c398a8240571b0e0782c2d5a703250872f36eaf737751338"},
- {file = "scipy-1.12.0-cp312-cp312-win_amd64.whl", hash = "sha256:e646d8571804a304e1da01040d21577685ce8e2db08ac58e543eaca063453e1c"},
- {file = "scipy-1.12.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:913d6e7956c3a671de3b05ccb66b11bc293f56bfdef040583a7221d9e22a2e35"},
- {file = "scipy-1.12.0-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:bba1b0c7256ad75401c73e4b3cf09d1f176e9bd4248f0d3112170fb2ec4db067"},
- {file = "scipy-1.12.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:730badef9b827b368f351eacae2e82da414e13cf8bd5051b4bdfd720271a5371"},
- {file = "scipy-1.12.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6546dc2c11a9df6926afcbdd8a3edec28566e4e785b915e849348c6dd9f3f490"},
- {file = "scipy-1.12.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:196ebad3a4882081f62a5bf4aeb7326aa34b110e533aab23e4374fcccb0890dc"},
- {file = "scipy-1.12.0-cp39-cp39-win_amd64.whl", hash = "sha256:b360f1b6b2f742781299514e99ff560d1fe9bd1bff2712894b52abe528d1fd1e"},
- {file = "scipy-1.12.0.tar.gz", hash = "sha256:4bf5abab8a36d20193c698b0f1fc282c1d083c94723902c447e5d2f1780936a3"},
-]
-
-[package.dependencies]
-numpy = ">=1.22.4,<1.29.0"
-
-[package.extras]
-dev = ["click", "cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyle", "pydevtool", "rich-click", "ruff", "types-psutil", "typing_extensions"]
-doc = ["jupytext", "matplotlib (>2)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (==0.9.0)", "sphinx (!=4.1.0)", "sphinx-design (>=0.2.0)"]
-test = ["asv", "gmpy2", "hypothesis", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"]
-
@@ -4544 +4256,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -4557,37 +4268,0 @@ numpy = ["numpy"]
-[[package]]
-name = "soxr"
-version = "0.4.0"
-description = "High quality, one-dimensional sample-rate conversion library"
-optional = false
-python-versions = ">=3.9"
-files = [
- {file = "soxr-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0be9dbc6cb0de2e2147ad33ffe4dee0391ed38125248253f53d3f1a05b65425"},
- {file = "soxr-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:46c1dce06d156f9a6563c41f97d5d6978ccc993c3682c6f8190438c0f7417d36"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:784d2dd6d43d2663d384ed7e1f6a1156f98395bbd889b0a9def6c61a9e17cda1"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ee59424f4f1c81f6a9f3d03b4bde27992272dc8c36f9b08af7f31ce720fa6ba"},
- {file = "soxr-0.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:2975734033e8da5a241f2498b65513a160882dd1283cf5eb7eac5b3b262ae668"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:38374140503b17b3234d0deb83dfe0319727df1dbab41e1a576b61405fc82767"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a370f661576916e8b208990eb70e5db4e07ab025b47492a633370846bc0a9678"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4301600889696051bdb1469f8b10cace0d7e2d16a351c6b5fc947b3b41e10a58"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:12a0e460f1199aaed544a30c67f5df7a452b0647b63e0df706a17577e963e38b"},
- {file = "soxr-0.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:2f6f55c520fb90040f604b1203f2100b70c789d973bb0fd79b221187e3841311"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:226d405c40094f5fd5dd4b80c66fc61cc108018da0216833e843d82ccffdadcb"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c53d4bc99908e715665b3d45f0cc06e652e4f53bf4acf9e758c1cce02977e411"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a9cc0620d7b1effab9d408427711d52c3db6e295b5504dfcf549f4636904ed0d"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f99aaef14a7d268966c06cf6a06729eb98b2276493710d24a6f20fdcfc3ad26e"},
- {file = "soxr-0.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:63a59d36b8f8f3b1501e4fca2c034aacceb9b4d6888295afd269afbce5eb2f3f"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:38e65bb8beba55d8049ecf16e73c05ed3dd5e156d6086f594c40edb3181a7900"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5fd5e43fe568451152e20e16a71a61cda6340da934c344733a26674e041ab445"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83b3e477ff61b3579ec2ad66fa7a9b362072d5d9a5d1e61db3d366d26afbb8c8"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba0989025d70c472d62bf0e68778c9bbd0c9bee111c708cf64c26406937ca6be"},
- {file = "soxr-0.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:5e71482f092051544b196387e3779d726f26df30cba307424eac7a96285c5b64"},
- {file = "soxr-0.4.0.tar.gz", hash = "sha256:02385e3de07e28ddbc19ab41216075d889575895e778ce2ada950d5f46cf6a52"},
-]
-
-[package.dependencies]
-numpy = "*"
-
-[package.extras]
-docs = ["linkify-it-py", "myst-parser", "sphinx", "sphinx-book-theme"]
-test = ["pytest"]
-
@@ -4799 +4474 @@ name = "sympy"
-version = "1.12.1"
+version = "1.14.0"
@@ -4802 +4477 @@ optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.9"
@@ -4804,2 +4479,2 @@ files = [
- {file = "sympy-1.12.1-py3-none-any.whl", hash = "sha256:9b2cbc7f1a640289430e13d2a56f02f867a1da0190f2f99d8968c2f74da0e515"},
- {file = "sympy-1.12.1.tar.gz", hash = "sha256:2877b03f998cd8c08f07cd0de5b767119cd3ef40d09f41c30d722f6686b0fb88"},
+ {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"},
+ {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"},
@@ -4809 +4484 @@ files = [
-mpmath = ">=1.1.0,<1.4.0"
+mpmath = ">=1.1.0,<1.4"
@@ -4811,12 +4486,2 @@ mpmath = ">=1.1.0,<1.4.0"
-[[package]]
-name = "tbb"
-version = "2021.12.0"
-description = "Intel® oneAPI Threading Building Blocks (oneTBB)"
-optional = false
-python-versions = "*"
-files = [
- {file = "tbb-2021.12.0-py2.py3-none-manylinux1_i686.whl", hash = "sha256:f2cc9a7f8ababaa506cbff796ce97c3bf91062ba521e15054394f773375d81d8"},
- {file = "tbb-2021.12.0-py2.py3-none-manylinux1_x86_64.whl", hash = "sha256:a925e9a7c77d3a46ae31c34b0bb7f801c4118e857d137b68f68a8e458fcf2bd7"},
- {file = "tbb-2021.12.0-py3-none-win32.whl", hash = "sha256:b1725b30c174048edc8be70bd43bb95473f396ce895d91151a474d0fa9f450a8"},
- {file = "tbb-2021.12.0-py3-none-win_amd64.whl", hash = "sha256:fc2772d850229f2f3df85f1109c4844c495a2db7433d38200959ee9265b34789"},
-]
+[package.extras]
+dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"]
@@ -4936,11 +4600,0 @@ torch = ["torch (>=1.6.0)"]
-[[package]]
-name = "threadpoolctl"
-version = "3.1.0"
-description = "threadpoolctl"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "threadpoolctl-3.1.0-py3-none-any.whl", hash = "sha256:8b99adda265feb6773280df41eece7b2e6561b772d21ffd52e372f999024907b"},
- {file = "threadpoolctl-3.1.0.tar.gz", hash = "sha256:a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380"},
-]
-
@@ -4992 +4646 @@ name = "torch"
-version = "2.3.0"
+version = "2.7.1"
@@ -4995 +4649 @@ optional = false
-python-versions = ">=3.8.0"
+python-versions = ">=3.9.0"
@@ -4997 +4651 @@ files = [
- {file = "torch-2.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:37bcdd926f35d5c72f1a6d28229733244bb2653a8fa779c4c10dd97e330d6ba2"},
+ {file = "torch-2.7.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:351be905d1ba693f317be603441e4ed9580ed9a8d7ee17b3dae60fa2ff49bff7"},
@@ -5004 +4657,0 @@ jinja2 = "*"
-mkl = {version = ">=2021.1.1,<=2021.4.0", markers = "platform_system == \"Windows\""}
@@ -5006,2 +4659,2 @@ networkx = "*"
-sympy = "*"
-typing-extensions = ">=4.8.0"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
@@ -5011 +4664 @@ opt-einsum = ["opt-einsum (>=3.3)"]
-optree = ["optree (>=0.9.1)"]
+optree = ["optree (>=0.13.0)"]
@@ -5015 +4668 @@ type = "url"
-url = "https://download.pytorch.org/whl/cpu/torch-2.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl"
@@ -5019 +4672 @@ name = "torch"
-version = "2.3.0"
+version = "2.7.1+cpu"
@@ -5022 +4675 @@ optional = false
-python-versions = ">=3.8.0"
+python-versions = ">=3.9.0"
@@ -5024 +4677 @@ files = [
- {file = "torch-2.3.0-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:760f8bedff506ce9e6e103498f9b1e9e15809e008368594c3a66bf74a8a51380"},
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:a4551cb97b83df5f93fc0d7538332535828581e1db2f179afc287027afbdd6e8"},
@@ -5031 +4683,0 @@ jinja2 = "*"
-mkl = {version = ">=2021.1.1,<=2021.4.0", markers = "platform_system == \"Windows\""}
@@ -5033,2 +4685,2 @@ networkx = "*"
-sympy = "*"
-typing-extensions = ">=4.8.0"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
@@ -5038 +4690 @@ opt-einsum = ["opt-einsum (>=3.3)"]
-optree = ["optree (>=0.9.1)"]
+optree = ["optree (>=0.13.0)"]
@@ -5042 +4694 @@ type = "url"
-url = "https://download.pytorch.org/whl/cpu/torch-2.3.0-cp39-none-macosx_11_0_arm64.whl"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_aarch64.whl"
@@ -5046 +4698 @@ name = "torch"
-version = "2.3.0+cpu"
+version = "2.7.1+cpu"
@@ -5049 +4701 @@ optional = false
-python-versions = ">=3.8.0"
+python-versions = ">=3.9.0"
@@ -5051 +4703 @@ files = [
- {file = "torch-2.3.0+cpu-cp39-cp39-linux_x86_64.whl", hash = "sha256:1e86e225e472392440ace378ba3165b5e87648e8b5fbf16adc41c0df881c38b8"},
+ {file = "torch-2.7.1+cpu-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:d205cac087d60bc176bdc0b63a1d00dc7a4ee5ac76fd20a2ca318ac65674167e"},
@@ -5058 +4709,0 @@ jinja2 = "*"
-mkl = {version = ">=2021.1.1,<=2021.4.0", markers = "platform_system == \"Windows\""}
@@ -5060,2 +4711,2 @@ networkx = "*"
-sympy = "*"
-typing-extensions = ">=4.8.0"
+sympy = ">=1.13.3"
+typing-extensions = ">=4.10.0"
@@ -5065 +4716 @@ opt-einsum = ["opt-einsum (>=3.3)"]
-optree = ["optree (>=0.9.1)"]
+optree = ["optree (>=0.13.0)"]
@@ -5069 +4720,25 @@ type = "url"
-url = "https://download.pytorch.org/whl/cpu/torch-2.3.0%2Bcpu-cp39-cp39-linux_x86_64.whl"
+url = "https://download.pytorch.org/whl/cpu/torch-2.7.1%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl"
+
+[[package]]
+name = "torchcodec"
+version = "0.4.0"
+description = "A video decoder for PyTorch"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "torchcodec-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:395361147274fd3163f7b4707b38050cebfbac836fa0bd8ddf80d2460da9d285"},
+ {file = "torchcodec-0.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:950ccb7d113e9fdc3c05361ce7f5c09bde120df481eb3e6d8ce79db9e202e30f"},
+ {file = "torchcodec-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4a1c488df253c62ed67b945f3be27a800acbc3fecacda52127fbabd72a2c6e2b"},
+ {file = "torchcodec-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a2b3ee4c40236eec82faa61f5941f1bb746bed81bb0a0e00751142f0cbf0e5e0"},
+ {file = "torchcodec-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:29ee0ad7514d5636d3a889cbdc92d4ed68e8f283d8da971fc6faa001e3e5dd67"},
+ {file = "torchcodec-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:0c1211bc2fb68cac5080d71635880e5a1ddc0d95f038cad1f7c3d5c32492f770"},
+ {file = "torchcodec-0.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:89d95adb8cf89cf85ff1c09c15f3de0df3b63c2e6cae5be0b387af0e8c84dbec"},
+ {file = "torchcodec-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:474b476880b70f44dce47672a98e3516cd15bad2ddde2d0537319d12c0a3e80e"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:51e94f4eb63bac48e7ec4fc11c03ddb0cfa9af7210077d507666ecb2aa81e0ac"},
+ {file = "torchcodec-0.4.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:87a85dfd1e1555c48c61bc152f03545d11940b71cf55079aa4c06cd41492467f"},
+ {file = "torchcodec-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6bce0b91fa73a430c67616be219e30ec68cede3f9690b553bd462833a408e654"},
+ {file = "torchcodec-0.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:13c26650e022713bc6f4f8ffcc57dd424406a5768bc5e61227459e86725031f2"},
+]
+
+[package.extras]
+dev = ["numpy", "pillow", "pytest"]
@@ -5653 +5328 @@ python-versions = "3.9.18"
-content-hash = "bb3fec5fed3a703cbb138a3cf21e85e71600c7db4fc1e93ddc3e2da6114ca8c7"
+content-hash = "226eb73b10d7c81f291d72c63c76672cbaf8de6cf245b4f5272da1e005ee6c1f"
diff --git a/services/worker/pyproject.toml b/services/worker/pyproject.toml
index 27721f7a..38a36f69 100644
--- a/services/worker/pyproject.toml
+++ b/services/worker/pyproject.toml
@@ -23,6 +22,0 @@ starlette = "^0.37.1"
-torch = [
- { url = "https://download.pytorch.org/whl/cpu/torch-2.3.0%2Bcpu-cp39-cp39-linux_x86_64.whl", markers = "sys_platform == 'linux' and platform_machine != 'aarch64'"},
- { url = "https://download.pytorch.org/whl/cpu/torch-2.3.0%2Bcpu-cp39-cp39-linux_x86_64.whl", markers = "sys_platform == 'darwin' and platform_machine != 'arm64'"},
- { url = "https://download.pytorch.org/whl/cpu/torch-2.3.0-cp39-none-macosx_11_0_arm64.whl", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'"},
- { url = "https://download.pytorch.org/whl/cpu/torch-2.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", markers = "sys_platform == 'linux' and platform_machine == 'aarch64'"},
-]
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index bc924cf8..4a2e466a 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -172,4 +172,6 @@ def parse_repo_filename(filename: str) -> tuple[str, str]:
- if split[-1] in "0123456789":
- part_suffix = PART_SUFFIX.format(split[-1])
- if split.endswith(part_suffix):
- split = split[: -len(part_suffix)] # noqa: E203
+ if PART_SUFFIX.format("") in split:
+ part_number = split.split(PART_SUFFIX.format(""), 1)[1]
+ if part_number.isnumeric():
+ part_suffix = PART_SUFFIX.format(part_number)
+ if split.endswith(part_suffix):
+ split = split[: -len(part_suffix)] # noqa: E203
diff --git a/services/worker/src/worker/job_runners/dataset/modalities.py b/services/worker/src/worker/job_runners/dataset/modalities.py
index 3b76fc39..79b2d9c5 100644
--- a/services/worker/src/worker/job_runners/dataset/modalities.py
+++ b/services/worker/src/worker/job_runners/dataset/modalities.py
@@ -7 +7 @@ from http import HTTPStatus
-from datasets import Audio, Features, Image, LargeList, Pdf, Sequence, Translation, TranslationVariableLanguages, Value
+from datasets import Audio, Features, Image, LargeList, List, Pdf, Translation, TranslationVariableLanguages, Value
@@ -69,4 +69 @@ def detect_features_modalities(features: Features) -> set[DatasetModality]:
- and (
- (isinstance(feature, (LargeList, Sequence)) and feature.feature == Value("float32"))
- or (isinstance(feature, list) and feature[0] == Value("float32"))
- )
+ and (isinstance(feature, (LargeList, List)) and feature.feature == Value("float32"))
diff --git a/services/worker/src/worker/job_runners/split/descriptive_statistics.py b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
index 5400025f..511117a5 100644
--- a/services/worker/src/worker/job_runners/split/descriptive_statistics.py
+++ b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
@@ -10 +10 @@ import pyarrow.parquet as pq
-from datasets import Features, LargeList, Sequence
+from datasets import Features, LargeList, List
@@ -77,3 +77 @@ def is_extension_feature(feature: FeatureType) -> bool:
- elif isinstance(feature, (list, tuple)):
- return any(is_extension_feature(f) for f in feature)
- elif isinstance(feature, (LargeList, Sequence)):
+ elif isinstance(feature, (LargeList, List)):
@@ -217 +215 @@ def compute_descriptive_statistics_response(
- isinstance(dataset_feature, dict) and dataset_feature.get("_type") in ("LargeList", "Sequence")
+ isinstance(dataset_feature, dict) and dataset_feature.get("_type") in ("LargeList", "List", "Sequence")
@@ -266 +264 @@ def compute_descriptive_statistics_response(
- f"{NUMERICAL_DTYPES}, {STRING_DTYPES}, ClassLabel, Image, Audio, list/Sequence, datetime and bool. "
+ f"{NUMERICAL_DTYPES}, {STRING_DTYPES}, ClassLabel, Image, Audio, List, datetime and bool. "
diff --git a/services/worker/tests/fixtures/datasets.py b/services/worker/tests/fixtures/datasets.py
index 2b471a98..4c64fc67 100644
--- a/services/worker/tests/fixtures/datasets.py
+++ b/services/worker/tests/fixtures/datasets.py
@@ -22 +22 @@ from datasets import (
- Sequence,
+ List,
@@ -89 +89 @@ def datasets() -> Mapping[str, Dataset]:
- "sequence": other([{"a": 0}], Sequence(feature={"a": Value(dtype="int64")})),
+ "sequence": other([{"a": 0}], List({"a": Value(dtype="int64")})),
@@ -94 +94,12 @@ def datasets() -> Mapping[str, Dataset]:
- "audio": other({"array": [0.1, 0.2, 0.3], "sampling_rate": sampling_rate}, Audio(sampling_rate=sampling_rate)),
+ "audio": other(
+ str(
+ Path(__file__).resolve().parent.parent.parent.parent.parent
+ / "libs"
+ / "libcommon"
+ / "tests"
+ / "viewer_utils"
+ / "data"
+ / "test_audio_16000.mp3"
+ ),
+ Audio(sampling_rate=sampling_rate),
+ ),
@@ -106 +117 @@ def datasets() -> Mapping[str, Dataset]:
- [Image()],
+ List(Image()),
@@ -110,2 +121,2 @@ def datasets() -> Mapping[str, Dataset]:
- {"array": [0.1, 0.2, 0.3], "sampling_rate": 16_000},
- {"array": [0.1, 0.2, 0.3], "sampling_rate": 16_000},
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
@@ -113 +124 @@ def datasets() -> Mapping[str, Dataset]:
- [Audio()],
+ List(Audio()),
@@ -120 +131 @@ def datasets() -> Mapping[str, Dataset]:
- Sequence(feature=Image()),
+ List(feature=Image()),
@@ -124,2 +135,2 @@ def datasets() -> Mapping[str, Dataset]:
- {"array": [0.1, 0.2, 0.3], "sampling_rate": 16_000},
- {"array": [0.1, 0.2, 0.3], "sampling_rate": 16_000},
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
@@ -127 +138 @@ def datasets() -> Mapping[str, Dataset]:
- Sequence(feature=Audio()),
+ List(feature=Audio()),
@@ -138,2 +149,2 @@ def datasets() -> Mapping[str, Dataset]:
- {"array": [0.1, 0.2, 0.3], "sampling_rate": 16_000},
- {"array": [0.1, 0.2, 0.3], "sampling_rate": 16_000},
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
+ str(Path(__file__).resolve().parent.parent / "viewer_utils" / "data" / "test_audio_16000.mp3"),
@@ -143 +154 @@ def datasets() -> Mapping[str, Dataset]:
- {"a": Value(dtype="int64"), "b": [Image()], "c": {"ca": [Audio()]}},
+ {"a": Value(dtype="int64"), "b": List(Image()), "c": {"ca": List(Audio())}},
@@ -146 +157 @@ def datasets() -> Mapping[str, Dataset]:
- [{"a": {"b": 0}}, {"a": {"b": 1}}], Sequence(feature={"a": {"b": Value(dtype="int64")}})
+ [{"a": {"b": 0}}, {"a": {"b": 1}}], List(feature={"a": {"b": Value(dtype="int64")}})
@@ -200,9 +211 @@ def datasets() -> Mapping[str, Dataset]:
- "sequence_list": [
- [1],
- [1, 2],
- None,
- [1, 2, 3, 4],
- [1, 2, 3, 4, 5],
- ],
- "sequence_list_all_null": null_column(5),
- "sequence_struct": [
+ "list_struct": [
@@ -215 +218 @@ def datasets() -> Mapping[str, Dataset]:
- "audio": audio_dataset["audio"] + [None],
+ "audio": list(audio_dataset["audio"]) + [None],
@@ -217 +220 @@ def datasets() -> Mapping[str, Dataset]:
- "image": image_dataset["image"] + [None],
+ "image": list(image_dataset["image"]) + [None],
@@ -225,5 +228,3 @@ def datasets() -> Mapping[str, Dataset]:
- "list": [Value(dtype="int32")],
- "list_all_null": [Value(dtype="int32")],
- "sequence_list": Sequence(Value(dtype="int32")),
- "sequence_list_all_null": Sequence(Value(dtype="int32")),
- "sequence_struct": Sequence({"author": Value("string"), "likes": Value("int32")}),
+ "list": List(Value(dtype="int32")),
+ "list_all_null": List(Value(dtype="int32")),
+ "list_struct": List({"author": Value("string"), "likes": Value("int32")}),
diff --git a/services/worker/tests/fixtures/hub.py b/services/worker/tests/fixtures/hub.py
index 78355373..c9f9fe5a 100644
--- a/services/worker/tests/fixtures/hub.py
+++ b/services/worker/tests/fixtures/hub.py
@@ -644 +644 @@ def create_dataset_info_response_for_audio(dataset: str, config: str) -> Any:
- "splits": {"train": {"name": "train", "num_bytes": 59, "num_examples": 1, "dataset_name": None}},
+ "splits": {"train": {"name": "train", "num_bytes": 15364, "num_examples": 1, "dataset_name": None}},
@@ -646 +646 @@ def create_dataset_info_response_for_audio(dataset: str, config: str) -> Any:
- "dataset_size": 59,
+ "dataset_size": 15364,
@@ -726 +726 @@ PARTIAL_CSV_PARQUET_SIZE = 8_188
-AUDIO_PARQUET_SIZE = 1_384
+AUDIO_PARQUET_SIZE = 16_542
@@ -768,2 +768,2 @@ def get_AUDIO_first_rows_response(dataset: str) -> Any:
- "src": f"http://localhost/assets/{dataset}/--/{DATASET_GIT_REVISION_PLACEHOLDER}/--/{config}/{split}/0/col/audio.wav",
- "type": "audio/wav",
+ "src": f"http://localhost/assets/{dataset}/--/{DATASET_GIT_REVISION_PLACEHOLDER}/--/{config}/{split}/0/col/audio.mp3",
+ "type": "audio/mpeg",
@@ -795 +795 @@ IMAGES_LIST_cols = {
- "col": [{"_type": "Image"}],
+ "col": {"_type": "List", "feature": {"_type": "Image"}},
diff --git a/services/worker/tests/fixtures/statistics_dataset.py b/services/worker/tests/fixtures/statistics_dataset.py
index 416a68f1..47c8a28c 100644
--- a/services/worker/tests/fixtures/statistics_dataset.py
+++ b/services/worker/tests/fixtures/statistics_dataset.py
@@ -8 +8 @@ from typing import Optional
-from datasets import Array2D, Audio, ClassLabel, Dataset, Features, Image, Sequence, Value
+from datasets import Array2D, Audio, ClassLabel, Dataset, Features, Image, List, Value
@@ -1339,22 +1338,0 @@ statistics_dataset = Dataset.from_dict(
- "array__list_column": [
- [[[1, 2, 3]]],
- [[[1, 2, 3]]],
- [[[1, 2, 3]]],
- [[[4, 5, 6]], [[4, 5, 6]]],
- [[[4, 5, 6]], [[4, 5, 6]]],
- [[[4, 5, 6]], [[4, 5, 6]]],
- [[[7, 8, 9]]],
- [[[7, 8, 9]]],
- [[[7, 8, 9]], [[7, 8, 9]], [[7, 8, 9]]],
- [[[10, 11, 12]]],
- [[[10, 11, 12]]],
- [[[10, 11, 12]]],
- [[[13, 14, 15]]],
- [[[13, 14, 15]]],
- [[[13, 14, 15]]],
- [[[16, 17, 18]]],
- [[[16, 17, 18]]],
- [[[16, 17, 18]]],
- [[[19, 20, 21]]],
- [[[19, 20, 21]], [[19, 20, 21]], [[19, 20, 21]], [[19, 20, 21]]],
- ],
@@ -1417,8 +1395,7 @@ statistics_dataset = Dataset.from_dict(
- "list__int_column": [Value("int32")],
- "list__int_null_column": [Value("int32")],
- "list__int_all_null_column": [Value("int32")],
- "list__string_column": [Value("string")],
- "list__string_null_column": [Value("string")],
- "list__string_all_null_column": [Value("string")],
- "list__dict_column": [{"author": Value("string"), "content": Value("string"), "likes": Value("int32")}],
- "list__dict_null_column": [
+ "list__int_column": List(Value("int32")),
+ "list__int_null_column": List(Value("int32")),
+ "list__int_all_null_column": List(Value("int32")),
+ "list__string_column": List(Value("string")),
+ "list__string_null_column": List(Value("string")),
+ "list__string_all_null_column": List(Value("string")),
+ "list__dict_column": List(
@@ -1426,2 +1403,5 @@ statistics_dataset = Dataset.from_dict(
- ],
- "list__dict_all_null_column": [
+ ),
+ "list__dict_null_column": List(
+ {"author": Value("string"), "content": Value("string"), "likes": Value("int32")}
+ ),
+ "list__dict_all_null_column": List(
@@ -1429,12 +1408,0 @@ statistics_dataset = Dataset.from_dict(
- ],
- "list__sequence_int_column": Sequence(Value("int64")),
- "list__sequence_int_null_column": Sequence(Value("int64")),
- "list__sequence_int_all_null_column": Sequence(Value("int64")),
- "list__sequence_class_label_column": Sequence(ClassLabel(names=["cat", "dog"])),
- "list__sequence_class_label_null_column": Sequence(ClassLabel(names=["cat", "dog"])),
- "list__sequence_class_label_all_null_column": Sequence(ClassLabel(names=["cat", "dog"])),
- "list__sequence_of_sequence_bool_column": Sequence(Sequence(Value("bool"))),
- "list__sequence_of_sequence_bool_null_column": Sequence(Sequence(Value("bool"))),
- "list__sequence_of_sequence_bool_all_null_column": Sequence(Sequence(Value("bool"))),
- "list__sequence_of_sequence_dict_column": Sequence(
- Sequence({"author": Value("string"), "likes": Value("int32")})
@@ -1442,2 +1410,16 @@ statistics_dataset = Dataset.from_dict(
- "list__sequence_of_sequence_dict_null_column": Sequence(
- Sequence({"author": Value("string"), "likes": Value("int32")})
+ "list__sequence_int_column": List(Value("int64")),
+ "list__sequence_int_null_column": List(Value("int64")),
+ "list__sequence_int_all_null_column": List(Value("int64")),
+ "list__sequence_class_label_column": List(ClassLabel(names=["cat", "dog"])),
+ "list__sequence_class_label_null_column": List(ClassLabel(names=["cat", "dog"])),
+ "list__sequence_class_label_all_null_column": List(ClassLabel(names=["cat", "dog"])),
+ "list__sequence_of_sequence_bool_column": List(List(Value("bool"))),
+ "list__sequence_of_sequence_bool_null_column": List(List(Value("bool"))),
+ "list__sequence_of_sequence_bool_all_null_column": List(List(Value("bool"))),
+ "list__sequence_of_sequence_dict_column": List(
+ List(
+ {
+ "author": Value("string"),
+ "likes": Value("int32"),
+ }
+ )
@@ -1445,2 +1427,7 @@ statistics_dataset = Dataset.from_dict(
- "list__sequence_of_sequence_dict_all_null_column": Sequence(
- Sequence({"author": Value("string"), "likes": Value("int32")})
+ "list__sequence_of_sequence_dict_null_column": List(
+ List(
+ {
+ "author": Value("string"),
+ "likes": Value("int32"),
+ }
+ )
@@ -1448,3 +1435,7 @@ statistics_dataset = Dataset.from_dict(
- "list__sequence_of_list_dict_column": Sequence([{"author": Value("string"), "likes": Value("int32")}]),
- "list__sequence_of_list_dict_null_column": Sequence(
- [{"author": Value("string"), "likes": Value("int32")}]
+ "list__sequence_of_sequence_dict_all_null_column": List(
+ List(
+ {
+ "author": Value("string"),
+ "likes": Value("int32"),
+ }
+ )
@@ -1452,2 +1443,3 @@ statistics_dataset = Dataset.from_dict(
- "list__sequence_of_list_dict_all_null_column": Sequence(
- [{"author": Value("string"), "likes": Value("int32")}]
+ "list__sequence_of_list_dict_column": List(List({"author": Value("string"), "likes": Value("int32")})),
+ "list__sequence_of_list_dict_null_column": List(
+ List({"author": Value("string"), "likes": Value("int32")})
@@ -1455,2 +1447,4 @@ statistics_dataset = Dataset.from_dict(
- "array__list_column": [Array2D(shape=(1, 3), dtype="int32")],
- "array__sequence_column": Sequence(Array2D(shape=(1, 3), dtype="int32")),
+ "list__sequence_of_list_dict_all_null_column": List(
+ List({"author": Value("string"), "likes": Value("int32")})
+ ),
+ "array__sequence_column": List(Array2D(shape=(1, 3), dtype="int32")),
@@ -1482,153 +1476,3 @@ statistics_not_supported_dataset = Dataset.from_dict(
- "list__sequence_dict_column": [
- [{"author": "cat", "content": "mouse", "likes": 5}],
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}],
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}],
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}],
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}],
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}, {}],
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}, {}],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [],
- [],
- ],
- "list__sequence_dict_null_column": [
- None,
- None,
- None,
- None,
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}],
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}, {}],
- [{"author": "cat", "content": "mouse", "likes": 5}, {"author": "cat", "content": "mouse", "likes": 5}, {}],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- {"author": "cat", "content": "mouse", "likes": 5},
- ],
- [],
- [],
- ],
- "list__sequence_dict_all_null_column": null_column(20),
+ "list__sequence_dict_column": [{"author": ["cat"], "likes": [5]}, {"author": ["cat"], "likes": [5]}],
+ "list__sequence_dict_null_column": [None, {"author": ["cat"], "likes": [5]}],
+ "list__sequence_dict_all_null_column": null_column(2),
@@ -1638,9 +1482,12 @@ statistics_not_supported_dataset = Dataset.from_dict(
- "list__sequence_dict_column": Sequence(
- {"author": Value("string"), "content": Value("string"), "likes": Value("int32")}
- ),
- "list__sequence_dict_null_column": Sequence(
- {"author": Value("string"), "content": Value("string"), "likes": Value("int32")}
- ),
- "list__sequence_dict_all_null_column": Sequence(
- {"author": Value("string"), "content": Value("string"), "likes": Value("int32")}
- ),
+ "list__sequence_dict_column": {
+ "author": List(Value("string")),
+ "likes": List(Value("int32")),
+ },
+ "list__sequence_dict_null_column": {
+ "author": List(Value("string")),
+ "likes": List(Value("int32")),
+ },
+ "list__sequence_dict_all_null_column": {
+ "author": List(Value("string")),
+ "likes": List(Value("int32")),
+ },
diff --git a/services/worker/tests/job_runners/config/test_parquet_and_info.py b/services/worker/tests/job_runners/config/test_parquet_and_info.py
index b3a27c2d..171721eb 100644
--- a/services/worker/tests/job_runners/config/test_parquet_and_info.py
+++ b/services/worker/tests/job_runners/config/test_parquet_and_info.py
@@ -934,0 +935 @@ def test_get_writer_batch_size_from_row_group_size(
+ ("config", "split", 999_999, 1000_000, False, "config/split-part99/9999.parquet"),
@@ -936 +937 @@ def test_get_writer_batch_size_from_row_group_size(
- ("config", "split", 0, 100_001, False, None),
+ ("config", "split", 0, 1000_001, False, None),
diff --git a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
index 90bc1b07..2d20bb0c 100644
--- a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
+++ b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
@@ -21,3 +21,7 @@ squad_info = {
- "feature": {
- "text": {"dtype": "string", "_type": "Value"},
- "answer_start": {"dtype": "int32", "_type": "Value"},
+ "text": {
+ "feature": {"dtype": "string", "_type": "Value"},
+ "_type": "List",
+ },
+ "answer_start": {
+ "feature": {"dtype": "int32", "_type": "Value"},
+ "_type": "List",
@@ -25 +28,0 @@ squad_info = {
- "_type": "Sequence",
@@ -150,0 +154,3 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
+ if "answer_start" in sub_field["@id"]:
+ assert sub_field["isArray"] is True
+ assert sub_field["arrayShape"] == "-1"
diff --git a/services/worker/tests/job_runners/dataset/test_modalities.py b/services/worker/tests/job_runners/dataset/test_modalities.py
index 0cb5985b..6a1fafee 100644
--- a/services/worker/tests/job_runners/dataset/test_modalities.py
+++ b/services/worker/tests/job_runners/dataset/test_modalities.py
@@ -9 +9 @@ import pytest
-from datasets import Features, Image, Sequence, Value
+from datasets import Features, Image, List, Value
@@ -45 +45 @@ not_tabular_features_2 = Features({"col1": Value("int8"), "col2": Value("string"
-time_series_features = Features({"window": Sequence(Value("float32")), "target": Value("float32")})
+time_series_features = Features({"window": List(Value("float32")), "target": Value("float32")})
|
|
03ada1cd032fd9b4128f1dcd9eda443517e51833
|
Quentin Lhoest
| 2025-06-19T13:34:25 |
fix max files per repo (#3201)
|
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index 242b8743..bc924cf8 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -96 +96 @@ MAX_FILES_PER_DIRECTORY = 10_000 # hf hub limitation
-MAX_FILES_PER_REPOSITORY = 100_000 # hf hub limitation
+MAX_FILES_PER_REPOSITORY = 1_000_000 # hf hub limitation (actually it is 100k but some repos have more)
|
|
18ab83985978dfe0976f94243d4c91e01e77ef82
|
Andrea Francis Soria Jimenez
| 2025-06-14T01:44:30 |
Try pymupdf for thumbnail (#3200)
|
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index 06a13fd5..ec660329 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -1185,0 +1186 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2581,0 +2583,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index 9e609b14..8afab502 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -1185,0 +1186 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2581,0 +2583,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index cae74396..ec8e0565 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -1252,0 +1253 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2679,0 +2681,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index e2a3fb80..a30ddf8e 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -2717,0 +2718,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
@@ -4203 +4219 @@ python-versions = "3.9.18"
-content-hash = "a2d18ffb38e8e5dbb6a65641c33166a3106de3d927940aa51d27754d50ce840a"
+content-hash = "4ea5f0dea17f076ccac2b3d127ab067d56cadaa3db82a39fc4c96aaa8fe7d7b4"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index 756a6a55..60e00362 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -29,0 +30 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -73,0 +75 @@ module = [
+ "fitz.*",
diff --git a/libs/libcommon/src/libcommon/viewer_utils/asset.py b/libs/libcommon/src/libcommon/viewer_utils/asset.py
index 23067b2d..9b59d90d 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/asset.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/asset.py
@@ -8,0 +9 @@ from typing import TYPE_CHECKING, Any, Optional, TypedDict, Union
+import fitz
@@ -157,2 +158,6 @@ def create_pdf_file(
- with LOCK:
- thumbnail = pdf.pages[0].to_image()
+ thumbnail_buffer = BytesIO()
+ pdf.stream.seek(0)
+ with fitz.open(stream=pdf.stream.read(), filetype="pdf") as doc:
+ thumbnail = doc.load_page(0).get_pixmap().pil_image()
+ thumbnail.save(thumbnail_buffer, format="PNG")
+ thumbnail_buffer.seek(0)
@@ -161,3 +165,0 @@ def create_pdf_file(
- thumbnail_buffer = BytesIO()
- thumbnail.save(thumbnail_buffer)
- thumbnail_buffer.seek(0)
@@ -205,2 +207,2 @@ def create_pdf_file(
- height=thumbnail.annotated.height,
- width=thumbnail.annotated.width,
+ height=thumbnail.height,
+ width=thumbnail.width,
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index 9fd4ba31..1794af97 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -1276,0 +1277 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2692,0 +2694,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index 250b79ef..ec067788 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -1295,0 +1296 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2725,0 +2727,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index 20ec824c..0af4887a 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -1314,0 +1315 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2792,0 +2794,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index 6b853ff9..e8ac6aff 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -1298,0 +1299 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2731,0 +2733,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index 8ea2b624..20d98876 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -1321,0 +1322 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2811,0 +2813,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index e8ccffa3..6656864e 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -1295,0 +1296 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -2725,0 +2727,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index f633c183..bc7c7e0a 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -1699,0 +1700 @@ pymongoarrow = "^1.3.0"
+pymupdf = "^1.26.1"
@@ -3720,0 +3722,16 @@ test = ["polars", "pytest", "pytz"]
+[[package]]
+name = "pymupdf"
+version = "1.26.1"
+description = "A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e"},
+ {file = "pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63"},
+ {file = "pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9"},
+ {file = "pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win32.whl", hash = "sha256:82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5"},
+ {file = "pymupdf-1.26.1-cp39-abi3-win_amd64.whl", hash = "sha256:8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f"},
+ {file = "pymupdf-1.26.1.tar.gz", hash = "sha256:372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9"},
+]
+
|
|
f20c5c1b079da24777d86cd1295891ec446ef133
|
Andrea Francis Soria Jimenez
| 2025-06-10T15:19:04 |
Try multithreading for Pdf processing in /rows, /search and /filter (#3198)
|
diff --git a/libs/libapi/src/libapi/rows_utils.py b/libs/libapi/src/libapi/rows_utils.py
index 9741b9c8..3ba5c308 100644
--- a/libs/libapi/src/libapi/rows_utils.py
+++ b/libs/libapi/src/libapi/rows_utils.py
@@ -69 +69 @@ async def transform_rows(
- if "Audio(" in str(features) or "Image(" in str(features):
+ if "Audio(" in str(features) or "Image(" in str(features) or "Pdf(" in str(features):
diff --git a/libs/libapi/tests/conftest.py b/libs/libapi/tests/conftest.py
index 7b55759d..4c41a32f 100644
--- a/libs/libapi/tests/conftest.py
+++ b/libs/libapi/tests/conftest.py
@@ -57,0 +58,7 @@ def image_path() -> str:
+@fixture
+def document_path() -> str:
+ document_path = Path(__file__).resolve().parent / "data" / "test_document.pdf"
+ assert document_path.is_file()
+ return str(document_path)
+
+
diff --git a/libs/libapi/tests/data/test_document.pdf b/libs/libapi/tests/data/test_document.pdf
new file mode 100644
index 00000000..85cbeeb2
Binary files /dev/null and b/libs/libapi/tests/data/test_document.pdf differ
diff --git a/libs/libapi/tests/test_response.py b/libs/libapi/tests/test_response.py
index 046b07eb..6de88b52 100644
--- a/libs/libapi/tests/test_response.py
+++ b/libs/libapi/tests/test_response.py
@@ -7 +7 @@ import pytest
-from datasets import Dataset, Image
+from datasets import Dataset, Image, Pdf
@@ -11,0 +12 @@ from libcommon.url_preparator import URLPreparator
+from pdfplumber import open as open_pdf
@@ -119,0 +121,31 @@ async def test_create_response_with_image(image_path: str, storage_client: Stora
+
+
+async def test_create_response_with_document(document_path: str, storage_client: StorageClient) -> None:
+ document_list = [document_path] * 5 # testing with multiple documents to ensure multithreading works
+ ds = Dataset.from_dict({"document": document_list}).cast_column("document", Pdf())
+ ds_document = Dataset(embed_table_storage(ds.data))
+ dataset, config, split = "ds_document", "default", "train"
+ document_key = "ds_document/--/revision/--/default/train/0/document/document.pdf"
+ thumbnail_key = "ds_document/--/revision/--/default/train/0/document/document.pdf.png"
+
+ response = await create_response(
+ dataset=dataset,
+ revision="revision",
+ config=config,
+ split=split,
+ storage_client=storage_client,
+ pa_table=ds_document.data,
+ offset=0,
+ features=ds_document.features,
+ unsupported_columns=[],
+ num_rows_total=10,
+ partial=False,
+ )
+ assert response["features"] == [{"feature_idx": 0, "name": "document", "type": {"_type": "Pdf"}}]
+ assert len(response["rows"]) == len(document_list)
+ assert response["partial"] is False
+ assert storage_client.exists(document_key)
+ pdf = open_pdf(f"{storage_client.storage_root}/{document_key}")
+ assert pdf is not None
+ thumbnail = PILImage.open(f"{storage_client.storage_root}/{thumbnail_key}")
+ assert thumbnail is not None
diff --git a/libs/libcommon/src/libcommon/viewer_utils/asset.py b/libs/libcommon/src/libcommon/viewer_utils/asset.py
index f719ec3f..23067b2d 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/asset.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/asset.py
@@ -3,0 +4 @@
+import threading
@@ -18,0 +20 @@ DATASET_GIT_REVISION_PLACEHOLDER = "{dataset_git_revision}"
+LOCK = threading.Lock()
@@ -155 +157,2 @@ def create_pdf_file(
- thumbnail = pdf.pages[0].to_image()
+ with LOCK:
+ thumbnail = pdf.pages[0].to_image()
|
|
4e78113aa873df4639fed39994c5cde3bd2eabff
|
Andrea Francis Soria Jimenez
| 2025-05-29T18:08:15 |
Temporary disable multi threading for PDFs (#3196)
|
diff --git a/libs/libapi/src/libapi/rows_utils.py b/libs/libapi/src/libapi/rows_utils.py
index 3ba5c308..9741b9c8 100644
--- a/libs/libapi/src/libapi/rows_utils.py
+++ b/libs/libapi/src/libapi/rows_utils.py
@@ -69 +69 @@ async def transform_rows(
- if "Audio(" in str(features) or "Image(" in str(features) or "Pdf(" in str(features):
+ if "Audio(" in str(features) or "Image(" in str(features):
|
|
e785a0fdcd6addc6bb8cb829def261415e744af9
|
Andrea Francis Soria Jimenez
| 2025-05-29T14:19:25 |
feat: Thumbnail and PDF for new column type (#3193)
|
diff --git a/docs/source/openapi.json b/docs/source/openapi.json
index f83e9d2b..f5d55a02 100644
--- a/docs/source/openapi.json
+++ b/docs/source/openapi.json
@@ -394,0 +395,3 @@
+ },
+ {
+ "$ref": "#/components/schemas/PdfFeature"
@@ -579,0 +583,13 @@
+ "PdfFeature": {
+ "type": "object",
+ "required": ["_type"],
+ "properties": {
+ "_type": {
+ "type": "string",
+ "enum": ["Pdf"]
+ },
+ "decode": {
+ "type": "boolean"
+ }
+ }
+ },
@@ -659,0 +676,3 @@
+ },
+ {
+ "$ref": "#/components/schemas/PdfCell"
@@ -806,0 +826,16 @@
+ "PdfCell": {
+ "type": "object",
+ "properties": {
+ "src": {
+ "type": "string",
+ "format": "uri"
+ },
+ "thumbnail":{
+ "$ref": "#/components/schemas/ImageCell"
+ },
+ "size_bytes": {
+ "type": "integer"
+ }
+ },
+ "required": ["src", "thumbnail", "size_bytes"]
+ },
diff --git a/e2e/tests/conftest.py b/e2e/tests/conftest.py
index 78bccc6d..71d25945 100644
--- a/e2e/tests/conftest.py
+++ b/e2e/tests/conftest.py
@@ -96,0 +97,15 @@ def normal_user_audios_public_dataset() -> Iterator[str]:
+
+
[email protected](scope="session")
+def normal_user_pdfs_public_dataset() -> Iterator[str]:
+ with tmp_dataset(
+ namespace=NORMAL_USER,
+ token=NORMAL_USER_TOKEN,
+ files={
+ "1.pdf": str(Path(__file__).resolve().parent / "data" / "pdfs" / "1.pdf"),
+ "2.pdf": str(Path(__file__).resolve().parent / "data" / "pdfs" / "2.pdf"),
+ "metadata.csv": str(Path(__file__).resolve().parent / "data" / "pdfs" / "metadata.csv"),
+ },
+ ) as dataset:
+ print("Created dataset:", dataset)
+ yield dataset
diff --git a/e2e/tests/data/pdfs/1.pdf b/e2e/tests/data/pdfs/1.pdf
new file mode 100644
index 00000000..85cbeeb2
Binary files /dev/null and b/e2e/tests/data/pdfs/1.pdf differ
diff --git a/e2e/tests/data/pdfs/2.pdf b/e2e/tests/data/pdfs/2.pdf
new file mode 100644
index 00000000..8eb899bd
Binary files /dev/null and b/e2e/tests/data/pdfs/2.pdf differ
diff --git a/e2e/tests/data/pdfs/metadata.csv b/e2e/tests/data/pdfs/metadata.csv
new file mode 100644
index 00000000..4d770182
--- /dev/null
+++ b/e2e/tests/data/pdfs/metadata.csv
@@ -0,0 +1,3 @@
+file_name,text,has_images
+1.pdf,This is a PDF with an embedded image below,1
+2.pdf,This is a dummy PDF in US Letter size,0
diff --git a/e2e/tests/test_52_search.py b/e2e/tests/test_52_search.py
index 78e0875d..795d6c59 100644
--- a/e2e/tests/test_52_search.py
+++ b/e2e/tests/test_52_search.py
@@ -104,0 +105,31 @@ def test_search_audios_endpoint(normal_user_audios_public_dataset: str) -> None:
+
+
+def test_search_pdfs_endpoint(normal_user_pdfs_public_dataset: str) -> None:
+ dataset = normal_user_pdfs_public_dataset
+ config, split = get_default_config_split()
+ query = "embedded"
+ rows_response = poll_until_ready_and_assert(
+ relative_url=f"/search?dataset={dataset}&config={config}&split={split}&query={query}",
+ dataset=dataset,
+ should_retry_x_error_codes=["ResponseNotFound"],
+ # ^ I had 404 errors without it. It should return something else at one point.
+ )
+ content = rows_response.json()
+
+ # ensure the URL is signed
+ url = content["rows"][0]["row"]["pdf"]["src"]
+ assert "document.pdf?Expires=" in url, url
+ assert "&Signature=" in url, url
+ assert "&Key-Pair-Id=" in url, url
+ # ensure the URL is valid
+ response = poll(url, url="")
+ assert response.status_code == 200, response
+
+ # ensure the PDF's thumbnail URL is signed
+ thumbnail_url = content["rows"][0]["row"]["pdf"]["thumbnail"]["src"]
+ assert "document.pdf.png?Expires=" in thumbnail_url, thumbnail_url
+ assert "&Signature=" in thumbnail_url, thumbnail_url
+ assert "&Key-Pair-Id=" in thumbnail_url, thumbnail_url
+ # ensure the PDF's thumbnail URL is valid
+ response = poll(thumbnail_url, url="")
+ assert response.status_code == 200, response
diff --git a/e2e/tests/test_53_filter.py b/e2e/tests/test_53_filter.py
index d553cea2..b25c0118 100644
--- a/e2e/tests/test_53_filter.py
+++ b/e2e/tests/test_53_filter.py
@@ -164,0 +165,31 @@ def test_filter_audios_endpoint(normal_user_audios_public_dataset: str) -> None:
+
+
+def test_filter_pdfs_endpoint(normal_user_pdfs_public_dataset: str) -> None:
+ dataset = normal_user_pdfs_public_dataset
+ config, split = get_default_config_split()
+ where = "has_images=1"
+ rows_response = poll_until_ready_and_assert(
+ relative_url=f"/filter?dataset={dataset}&config={config}&split={split}&where={where}",
+ dataset=dataset,
+ should_retry_x_error_codes=["ResponseNotFound"],
+ # ^ I had 404 errors without it. It should return something else at one point.
+ )
+ content = rows_response.json()
+
+ # ensure the URL is signed
+ url = content["rows"][0]["row"]["pdf"]["src"]
+ assert "document.pdf?Expires=" in url, url
+ assert "&Signature=" in url, url
+ assert "&Key-Pair-Id=" in url, url
+ # ensure the URL is valid
+ response = poll(url, url="")
+ assert response.status_code == 200, response
+
+ # ensure the PDF's thumbnail URL is signed
+ thumbnail_url = content["rows"][0]["row"]["pdf"]["thumbnail"]["src"]
+ assert "document.pdf.png?Expires=" in thumbnail_url, thumbnail_url
+ assert "&Signature=" in thumbnail_url, thumbnail_url
+ assert "&Key-Pair-Id=" in thumbnail_url, thumbnail_url
+ # ensure the PDF's thumbnail URL is valid
+ response = poll(thumbnail_url, url="")
+ assert response.status_code == 200, response
diff --git a/e2e/tests/test_54_rows.py b/e2e/tests/test_54_rows.py
index 7119f159..198bdc42 100644
--- a/e2e/tests/test_54_rows.py
+++ b/e2e/tests/test_54_rows.py
@@ -83,0 +84,30 @@ def test_rows_audios_endpoint(normal_user_audios_public_dataset: str) -> None:
+
+
+def test_rows_pdfs_endpoint(normal_user_pdfs_public_dataset: str) -> None:
+ dataset = normal_user_pdfs_public_dataset
+ config, split = get_default_config_split()
+ rows_response = poll_until_ready_and_assert(
+ relative_url=f"/rows?dataset={dataset}&config={config}&split={split}",
+ dataset=dataset,
+ should_retry_x_error_codes=["ResponseNotFound"],
+ # ^ I had 404 errors without it. It should return something else at one point.
+ )
+ content = rows_response.json()
+
+ # ensure the PDF URL is signed
+ url = content["rows"][0]["row"]["pdf"]["src"]
+ assert "document.pdf?Expires=" in url, url
+ assert "&Signature=" in url, url
+ assert "&Key-Pair-Id=" in url, url
+ # ensure the PDF URL is valid
+ response = poll(url, url="")
+ assert response.status_code == 200, response
+
+ # ensure the PDF's thumbnail URL is signed
+ thumbnail_url = content["rows"][0]["row"]["pdf"]["thumbnail"]["src"]
+ assert "document.pdf.png?Expires=" in thumbnail_url, thumbnail_url
+ assert "&Signature=" in thumbnail_url, thumbnail_url
+ assert "&Key-Pair-Id=" in thumbnail_url, thumbnail_url
+ # ensure the PDF's thumbnail URL is valid
+ response = poll(thumbnail_url, url="")
+ assert response.status_code == 200, response
diff --git a/e2e/tests/test_55_first_rows.py b/e2e/tests/test_55_first_rows.py
index 835cd4d3..7a25d13e 100644
--- a/e2e/tests/test_55_first_rows.py
+++ b/e2e/tests/test_55_first_rows.py
@@ -50,0 +51,33 @@ def test_first_rows_audios_endpoint(normal_user_audios_public_dataset: str) -> N
+
+
+def test_first_rows_pdfs_endpoint(normal_user_pdfs_public_dataset: str) -> None:
+ dataset = normal_user_pdfs_public_dataset
+ config, split = get_default_config_split()
+ rows_response = poll_until_ready_and_assert(
+ relative_url=f"/first-rows?dataset={dataset}&config={config}&split={split}",
+ dataset=dataset,
+ should_retry_x_error_codes=["ResponseNotFound"],
+ # ^ I had 404 errors without it. It should return something else at one point.
+ )
+ content = rows_response.json()
+
+ # ensure the URL is signed
+ url = content["rows"][0]["row"]["pdf"]["src"]
+ assert isinstance(url, str), url
+ assert "document.pdf?Expires=" in url, url
+ assert "&Signature=" in url, url
+ assert "&Key-Pair-Id=" in url, url
+ # ensure the URL has been signed only once
+ assert url.count("Expires") == 1, url
+ # ensure the URL is valid
+ response = poll(url, url="")
+ assert response.status_code == 200, response
+
+ # ensure the PDF's thumbnail URL is signed
+ thumbnail_url = content["rows"][0]["row"]["pdf"]["thumbnail"]["src"]
+ assert "document.pdf.png?Expires=" in thumbnail_url, thumbnail_url
+ assert "&Signature=" in thumbnail_url, thumbnail_url
+ assert "&Key-Pair-Id=" in thumbnail_url, thumbnail_url
+ # ensure the PDF's thumbnail URL is valid
+ response = poll(thumbnail_url, url="")
+ assert response.status_code == 200, response
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index da16b04b..9ac26991 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -627 +627 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -631,4 +631,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -658 +656 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -666,2 +664,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -670,0 +669,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1479 +1483 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1490,0 +1495 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -1619,0 +1625,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2186,0 +2202,36 @@ xml = ["lxml (>=4.9.2)"]
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2767,0 +2819,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -3129,0 +3203 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/front/admin_ui/pyproject.toml b/front/admin_ui/pyproject.toml
index f4ef4c1f..ea9087c6 100644
--- a/front/admin_ui/pyproject.toml
+++ b/front/admin_ui/pyproject.toml
@@ -11 +11 @@ gradio = "^4.19.2"
-libcommon = { path = "../../libs/libcommon", develop=true }
+libcommon = {path = "../../libs/libcommon", develop = true}
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index 884b8a29..06a13fd5 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -564,4 +564,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -591 +589 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -599,2 +597,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -603,0 +602,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1162 +1166 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1173,0 +1178 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -2019,0 +2025,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2554,0 +2596,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -2904,0 +2968 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index 2fe09105..9e609b14 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -564,4 +564,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -591 +589 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -599,2 +597,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -603,0 +602,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1162 +1166 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1173,0 +1178 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -2019,0 +2025,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2554,0 +2596,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -2904,0 +2968 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index 0b6dd3ba..cae74396 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -567 +567 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -571,4 +571,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -598 +596 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -606,2 +604,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -610,0 +609,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1229 +1233 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1240,0 +1245 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -1409,0 +1415,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2072,0 +2088,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2642,0 +2694,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -2749,0 +2823 @@ files = [
+ {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2756,0 +2831 @@ files = [
+ {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2758,0 +2834,6 @@ files = [
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
+ {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2774,0 +2856 @@ files = [
+ {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2781,0 +2864 @@ files = [
+ {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3012,0 +3096 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/libs/libapi/src/libapi/rows_utils.py b/libs/libapi/src/libapi/rows_utils.py
index 9741b9c8..3ba5c308 100644
--- a/libs/libapi/src/libapi/rows_utils.py
+++ b/libs/libapi/src/libapi/rows_utils.py
@@ -69 +69 @@ async def transform_rows(
- if "Audio(" in str(features) or "Image(" in str(features):
+ if "Audio(" in str(features) or "Image(" in str(features) or "Pdf(" in str(features):
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index a63cba06..e2a3fb80 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -223,2 +223,2 @@ name = "audioread"
-version = "3.0.0"
-description = "multi-library, cross-platform audio decoding"
+version = "3.0.1"
+description = "Multi-library, cross-platform audio decoding."
@@ -228 +228,2 @@ files = [
- {file = "audioread-3.0.0.tar.gz", hash = "sha256:121995bd207eb1fda3d566beb851d3534275925bc35a4fb6da0cb11de0f7251a"},
+ {file = "audioread-3.0.1-py3-none-any.whl", hash = "sha256:4cdce70b8adc0da0a3c9e0d85fb10b3ace30fbdf8d1670fd443929b61d117c33"},
+ {file = "audioread-3.0.1.tar.gz", hash = "sha256:ac5460a5498c48bdf2e8e767402583a4dcd13f4414d286f42ce4379e8b35066d"},
@@ -230,0 +232,3 @@ files = [
+[package.extras]
+test = ["tox"]
+
@@ -596 +600 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -600,4 +604,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -627 +629 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -635,2 +637,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -639,0 +642,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -642 +650 @@ name = "decorator"
-version = "5.1.1"
+version = "5.2.1"
@@ -645 +653 @@ optional = false
-python-versions = ">=3.5"
+python-versions = ">=3.8"
@@ -647,2 +655,2 @@ files = [
- {file = "decorator-5.1.1-py3-none-any.whl", hash = "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186"},
- {file = "decorator-5.1.1.tar.gz", hash = "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330"},
+ {file = "decorator-5.2.1-py3-none-any.whl", hash = "sha256:d316bb415a2d9e2d2b3abcc4084c6502fc09240e292cd76a76afc106a1c8e04a"},
+ {file = "decorator-5.2.1.tar.gz", hash = "sha256:65f266143752f734b0a7cc83c46f4618af75b8c5911b00ccb61d0ac9b6da0360"},
@@ -664,2 +672,2 @@ name = "dill"
-version = "0.3.6"
-description = "serialize all of python"
+version = "0.3.8"
+description = "serialize all of Python"
@@ -667 +675 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.8"
@@ -669,2 +677,2 @@ files = [
- {file = "dill-0.3.6-py3-none-any.whl", hash = "sha256:a07ffd2351b8c678dfc4a856a3005f8067aea51d6ba6c700796a4d9e280f39f0"},
- {file = "dill-0.3.6.tar.gz", hash = "sha256:e5db55f3687856d8fbdab002ed78544e1c4559a130302693d839dfe8f93f2373"},
+ {file = "dill-0.3.8-py3-none-any.whl", hash = "sha256:c36ca9ffb54365bdd2f8eb3eff7d2a21237f8452b57ace88b1ac615b7e815bd7"},
+ {file = "dill-0.3.8.tar.gz", hash = "sha256:3ebe3c479ad625c4553aca177444d89b486b1d84982eeacded644afc0cf797ca"},
@@ -674,0 +683 @@ graph = ["objgraph (>=1.7.2)"]
+profile = ["gprof2dot (>=2022.7.29)"]
@@ -1218 +1227 @@ name = "joblib"
-version = "1.2.0"
+version = "1.5.1"
@@ -1221 +1230 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -1223,2 +1232,2 @@ files = [
- {file = "joblib-1.2.0-py3-none-any.whl", hash = "sha256:091138ed78f800342968c523bdde947e7a305b8594b910a0fea2ab83c3c6d385"},
- {file = "joblib-1.2.0.tar.gz", hash = "sha256:e1cee4a79e4af22881164f218d4311f60074197fb707e082e803b61f6d137018"},
+ {file = "joblib-1.5.1-py3-none-any.whl", hash = "sha256:4719a31f054c7d766948dcd83e9613686b27114f190f717cec7eaa2084f8a74a"},
+ {file = "joblib-1.5.1.tar.gz", hash = "sha256:f4f86e351f39fe3d0d32a9f2c3d8af1ee4cec285aafcb27003dda5205576b444"},
@@ -1229,2 +1238,2 @@ name = "lazy-loader"
-version = "0.2"
-description = "lazy_loader"
+version = "0.4"
+description = "Makes it easy to load subpackages and functions on demand."
@@ -1234,2 +1243,2 @@ files = [
- {file = "lazy_loader-0.2-py3-none-any.whl", hash = "sha256:c35875f815c340f823ce3271ed645045397213f961b40ad0c0d395c3f5218eeb"},
- {file = "lazy_loader-0.2.tar.gz", hash = "sha256:0edc7a5175c400acb108f283749951fefdadedeb00adcec6e88b974a9254f18a"},
+ {file = "lazy_loader-0.4-py3-none-any.whl", hash = "sha256:342aa8e14d543a154047afb4ba8ef17f5563baad3fc610d7b15b213b0f119efc"},
+ {file = "lazy_loader-0.4.tar.gz", hash = "sha256:47c75182589b91a4e1a85a136c074285a5ad4d9f39c63e0d7fb76391c4574cd1"},
@@ -1237,0 +1247,3 @@ files = [
+[package.dependencies]
+packaging = "*"
+
@@ -1239,2 +1251,3 @@ files = [
-lint = ["pre-commit (>=3.1)"]
-test = ["pytest (>=7.2)", "pytest-cov (>=4.0)"]
+dev = ["changelist (==0.5)"]
+lint = ["pre-commit (==3.7.0)"]
+test = ["pytest (>=7.4)", "pytest-cov (>=4.1)"]
@@ -1244 +1257 @@ name = "librosa"
-version = "0.10.0.post2"
+version = "0.11.0"
@@ -1247 +1260 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.8"
@@ -1249,2 +1262,2 @@ files = [
- {file = "librosa-0.10.0.post2-py3-none-any.whl", hash = "sha256:0f3b56118cb01ea89df4b04e924c7f48c5c13d42cc55a12540eb04ae87ab5848"},
- {file = "librosa-0.10.0.post2.tar.gz", hash = "sha256:6623673da30773beaae962cb4685f188155582f25bc60fc52da968f59eea8567"},
+ {file = "librosa-0.11.0-py3-none-any.whl", hash = "sha256:0b6415c4fd68bff4c29288abe67c6d80b587e0e1e2cfb0aad23e4559504a7fa1"},
+ {file = "librosa-0.11.0.tar.gz", hash = "sha256:f5ed951ca189b375bbe2e33b2abd7e040ceeee302b9bbaeeffdfddb8d0ace908"},
@@ -1256,2 +1269,2 @@ decorator = ">=4.3.0"
-joblib = ">=0.14"
-lazy-loader = ">=0.1"
+joblib = ">=1.0"
+lazy_loader = ">=0.1"
@@ -1260,4 +1273,4 @@ numba = ">=0.51.0"
-numpy = ">=1.20.3,<1.22.0 || >1.22.0,<1.22.1 || >1.22.1,<1.22.2 || >1.22.2"
-pooch = ">=1.0,<1.7"
-scikit-learn = ">=0.20.0"
-scipy = ">=1.2.0"
+numpy = ">=1.22.3"
+pooch = ">=1.1"
+scikit-learn = ">=1.1.0"
+scipy = ">=1.6.0"
@@ -1266 +1279 @@ soxr = ">=0.3.2"
-typing-extensions = ">=4.1.1"
+typing_extensions = ">=4.1.1"
@@ -1269,3 +1282,3 @@ typing-extensions = ">=4.1.1"
-display = ["matplotlib (>=3.3.0)"]
-docs = ["ipython (>=7.0)", "matplotlib (>=3.3.0)", "mir-eval (>=0.5)", "numba (>=0.51)", "numpydoc", "presets", "sphinx (!=1.3.1,<6)", "sphinx-gallery (>=0.7)", "sphinx-multiversion (>=0.2.3)", "sphinx-rtd-theme (==1.*)", "sphinxcontrib-svg2pdfconverter"]
-tests = ["matplotlib (>=3.3.0)", "packaging (>=20.0)", "pytest", "pytest-cov", "pytest-mpl", "resampy (>=0.2.2)", "samplerate", "types-decorator"]
+display = ["matplotlib (>=3.5.0)"]
+docs = ["ipython (>=7.0)", "matplotlib (>=3.5.0)", "mir_eval (>=0.5)", "numba (>=0.51)", "numpydoc", "presets", "sphinx (!=1.3.1)", "sphinx-copybutton (>=0.5.2)", "sphinx-gallery (>=0.7)", "sphinx-multiversion (>=0.2.3)", "sphinx_rtd_theme (>=1.2.0)", "sphinxcontrib-googleanalytics (>=0.4)", "sphinxcontrib-svg2pdfconverter"]
+tests = ["matplotlib (>=3.5.0)", "packaging (>=20.0)", "pytest", "pytest-cov", "pytest-mpl", "resampy (>=0.2.2)", "samplerate", "types-decorator"]
@@ -1313 +1326 @@ name = "llvmlite"
-version = "0.42.0"
+version = "0.43.0"
@@ -1318,21 +1331,21 @@ files = [
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:3366938e1bf63d26c34fbfb4c8e8d2ded57d11e0567d5bb243d89aab1eb56098"},
- {file = "llvmlite-0.42.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c35da49666a21185d21b551fc3caf46a935d54d66969d32d72af109b5e7d2b6f"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:70f44ccc3c6220bd23e0ba698a63ec2a7d3205da0d848804807f37fc243e3f77"},
- {file = "llvmlite-0.42.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:763f8d8717a9073b9e0246998de89929071d15b47f254c10eef2310b9aac033d"},
- {file = "llvmlite-0.42.0-cp310-cp310-win_amd64.whl", hash = "sha256:8d90edf400b4ceb3a0e776b6c6e4656d05c7187c439587e06f86afceb66d2be5"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae511caed28beaf1252dbaf5f40e663f533b79ceb408c874c01754cafabb9cbf"},
- {file = "llvmlite-0.42.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:81e674c2fe85576e6c4474e8c7e7aba7901ac0196e864fe7985492b737dbab65"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb3975787f13eb97629052edb5017f6c170eebc1c14a0433e8089e5db43bcce6"},
- {file = "llvmlite-0.42.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5bece0cdf77f22379f19b1959ccd7aee518afa4afbd3656c6365865f84903f9"},
- {file = "llvmlite-0.42.0-cp311-cp311-win_amd64.whl", hash = "sha256:7e0c4c11c8c2aa9b0701f91b799cb9134a6a6de51444eff5a9087fc7c1384275"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:08fa9ab02b0d0179c688a4216b8939138266519aaa0aa94f1195a8542faedb56"},
- {file = "llvmlite-0.42.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b2fce7d355068494d1e42202c7aff25d50c462584233013eb4470c33b995e3ee"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebe66a86dc44634b59a3bc860c7b20d26d9aaffcd30364ebe8ba79161a9121f4"},
- {file = "llvmlite-0.42.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d47494552559e00d81bfb836cf1c4d5a5062e54102cc5767d5aa1e77ccd2505c"},
- {file = "llvmlite-0.42.0-cp312-cp312-win_amd64.whl", hash = "sha256:05cb7e9b6ce69165ce4d1b994fbdedca0c62492e537b0cc86141b6e2c78d5888"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bdd3888544538a94d7ec99e7c62a0cdd8833609c85f0c23fcb6c5c591aec60ad"},
- {file = "llvmlite-0.42.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d0936c2067a67fb8816c908d5457d63eba3e2b17e515c5fe00e5ee2bace06040"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a78ab89f1924fc11482209f6799a7a3fc74ddc80425a7a3e0e8174af0e9e2301"},
- {file = "llvmlite-0.42.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7599b65c7af7abbc978dbf345712c60fd596aa5670496561cc10e8a71cebfb2"},
- {file = "llvmlite-0.42.0-cp39-cp39-win_amd64.whl", hash = "sha256:43d65cc4e206c2e902c1004dd5418417c4efa6c1d04df05c6c5675a27e8ca90e"},
- {file = "llvmlite-0.42.0.tar.gz", hash = "sha256:f92b09243c0cc3f457da8b983f67bd8e1295d0f5b3746c7a1861d7a99403854a"},
+ {file = "llvmlite-0.43.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a289af9a1687c6cf463478f0fa8e8aa3b6fb813317b0d70bf1ed0759eab6f761"},
+ {file = "llvmlite-0.43.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6d4fd101f571a31acb1559ae1af30f30b1dc4b3186669f92ad780e17c81e91bc"},
+ {file = "llvmlite-0.43.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7d434ec7e2ce3cc8f452d1cd9a28591745de022f931d67be688a737320dfcead"},
+ {file = "llvmlite-0.43.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6912a87782acdff6eb8bf01675ed01d60ca1f2551f8176a300a886f09e836a6a"},
+ {file = "llvmlite-0.43.0-cp310-cp310-win_amd64.whl", hash = "sha256:14f0e4bf2fd2d9a75a3534111e8ebeb08eda2f33e9bdd6dfa13282afacdde0ed"},
+ {file = "llvmlite-0.43.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3e8d0618cb9bfe40ac38a9633f2493d4d4e9fcc2f438d39a4e854f39cc0f5f98"},
+ {file = "llvmlite-0.43.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e0a9a1a39d4bf3517f2af9d23d479b4175ead205c592ceeb8b89af48a327ea57"},
+ {file = "llvmlite-0.43.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c1da416ab53e4f7f3bc8d4eeba36d801cc1894b9fbfbf2022b29b6bad34a7df2"},
+ {file = "llvmlite-0.43.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:977525a1e5f4059316b183fb4fd34fa858c9eade31f165427a3977c95e3ee749"},
+ {file = "llvmlite-0.43.0-cp311-cp311-win_amd64.whl", hash = "sha256:d5bd550001d26450bd90777736c69d68c487d17bf371438f975229b2b8241a91"},
+ {file = "llvmlite-0.43.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f99b600aa7f65235a5a05d0b9a9f31150c390f31261f2a0ba678e26823ec38f7"},
+ {file = "llvmlite-0.43.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:35d80d61d0cda2d767f72de99450766250560399edc309da16937b93d3b676e7"},
+ {file = "llvmlite-0.43.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eccce86bba940bae0d8d48ed925f21dbb813519169246e2ab292b5092aba121f"},
+ {file = "llvmlite-0.43.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:df6509e1507ca0760787a199d19439cc887bfd82226f5af746d6977bd9f66844"},
+ {file = "llvmlite-0.43.0-cp312-cp312-win_amd64.whl", hash = "sha256:7a2872ee80dcf6b5dbdc838763d26554c2a18aa833d31a2635bff16aafefb9c9"},
+ {file = "llvmlite-0.43.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9cd2a7376f7b3367019b664c21f0c61766219faa3b03731113ead75107f3b66c"},
+ {file = "llvmlite-0.43.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:18e9953c748b105668487b7c81a3e97b046d8abf95c4ddc0cd3c94f4e4651ae8"},
+ {file = "llvmlite-0.43.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:74937acd22dc11b33946b67dca7680e6d103d6e90eeaaaf932603bec6fe7b03a"},
+ {file = "llvmlite-0.43.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc9efc739cc6ed760f795806f67889923f7274276f0eb45092a1473e40d9b867"},
+ {file = "llvmlite-0.43.0-cp39-cp39-win_amd64.whl", hash = "sha256:47e147cdda9037f94b399bf03bfd8a6b6b1f2f90be94a454e3386f006455a9b4"},
+ {file = "llvmlite-0.43.0.tar.gz", hash = "sha256:ae2b5b5c3ef67354824fb75517c8db5fbe93bc02cd9671f3c62271626bc041d5"},
@@ -1393,0 +1407,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -1765,2 +1788,2 @@ name = "multiprocess"
-version = "0.70.14"
-description = "better multiprocessing and multithreading in python"
+version = "0.70.16"
+description = "better multiprocessing and multithreading in Python"
@@ -1768 +1791 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.8"
@@ -1770,14 +1793,12 @@ files = [
- {file = "multiprocess-0.70.14-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:560a27540daef4ce8b24ed3cc2496a3c670df66c96d02461a4da67473685adf3"},
- {file = "multiprocess-0.70.14-pp37-pypy37_pp73-manylinux_2_24_i686.whl", hash = "sha256:bfbbfa36f400b81d1978c940616bc77776424e5e34cb0c94974b178d727cfcd5"},
- {file = "multiprocess-0.70.14-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:89fed99553a04ec4f9067031f83a886d7fdec5952005551a896a4b6a59575bb9"},
- {file = "multiprocess-0.70.14-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:40a5e3685462079e5fdee7c6789e3ef270595e1755199f0d50685e72523e1d2a"},
- {file = "multiprocess-0.70.14-pp38-pypy38_pp73-manylinux_2_24_i686.whl", hash = "sha256:44936b2978d3f2648727b3eaeab6d7fa0bedf072dc5207bf35a96d5ee7c004cf"},
- {file = "multiprocess-0.70.14-pp38-pypy38_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:e628503187b5d494bf29ffc52d3e1e57bb770ce7ce05d67c4bbdb3a0c7d3b05f"},
- {file = "multiprocess-0.70.14-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:0d5da0fc84aacb0e4bd69c41b31edbf71b39fe2fb32a54eaedcaea241050855c"},
- {file = "multiprocess-0.70.14-pp39-pypy39_pp73-manylinux_2_24_i686.whl", hash = "sha256:6a7b03a5b98e911a7785b9116805bd782815c5e2bd6c91c6a320f26fd3e7b7ad"},
- {file = "multiprocess-0.70.14-pp39-pypy39_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:cea5bdedd10aace3c660fedeac8b087136b4366d4ee49a30f1ebf7409bce00ae"},
- {file = "multiprocess-0.70.14-py310-none-any.whl", hash = "sha256:7dc1f2f6a1d34894c8a9a013fbc807971e336e7cc3f3ff233e61b9dc679b3b5c"},
- {file = "multiprocess-0.70.14-py37-none-any.whl", hash = "sha256:93a8208ca0926d05cdbb5b9250a604c401bed677579e96c14da3090beb798193"},
- {file = "multiprocess-0.70.14-py38-none-any.whl", hash = "sha256:6725bc79666bbd29a73ca148a0fb5f4ea22eed4a8f22fce58296492a02d18a7b"},
- {file = "multiprocess-0.70.14-py39-none-any.whl", hash = "sha256:63cee628b74a2c0631ef15da5534c8aedbc10c38910b9c8b18dcd327528d1ec7"},
- {file = "multiprocess-0.70.14.tar.gz", hash = "sha256:3eddafc12f2260d27ae03fe6069b12570ab4764ab59a75e81624fac453fbf46a"},
+ {file = "multiprocess-0.70.16-pp310-pypy310_pp73-macosx_10_13_x86_64.whl", hash = "sha256:476887be10e2f59ff183c006af746cb6f1fd0eadcfd4ef49e605cbe2659920ee"},
+ {file = "multiprocess-0.70.16-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:d951bed82c8f73929ac82c61f01a7b5ce8f3e5ef40f5b52553b4f547ce2b08ec"},
+ {file = "multiprocess-0.70.16-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:37b55f71c07e2d741374998c043b9520b626a8dddc8b3129222ca4f1a06ef67a"},
+ {file = "multiprocess-0.70.16-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:ba8c31889abf4511c7308a8c52bb4a30b9d590e7f58523302ba00237702ca054"},
+ {file = "multiprocess-0.70.16-pp39-pypy39_pp73-macosx_10_13_x86_64.whl", hash = "sha256:0dfd078c306e08d46d7a8d06fb120313d87aa43af60d66da43ffff40b44d2f41"},
+ {file = "multiprocess-0.70.16-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:e7b9d0f307cd9bd50851afaac0dba2cb6c44449efff697df7c7645f7d3f2be3a"},
+ {file = "multiprocess-0.70.16-py310-none-any.whl", hash = "sha256:c4a9944c67bd49f823687463660a2d6daae94c289adff97e0f9d696ba6371d02"},
+ {file = "multiprocess-0.70.16-py311-none-any.whl", hash = "sha256:af4cabb0dac72abfb1e794fa7855c325fd2b55a10a44628a3c1ad3311c04127a"},
+ {file = "multiprocess-0.70.16-py312-none-any.whl", hash = "sha256:fc0544c531920dde3b00c29863377f87e1632601092ea2daca74e4beb40faa2e"},
+ {file = "multiprocess-0.70.16-py38-none-any.whl", hash = "sha256:a71d82033454891091a226dfc319d0cfa8019a4e888ef9ca910372a446de4435"},
+ {file = "multiprocess-0.70.16-py39-none-any.whl", hash = "sha256:a0bafd3ae1b732eac64be2e72038231c1ba97724b60b09400d68f229fcc2fbf3"},
+ {file = "multiprocess-0.70.16.tar.gz", hash = "sha256:161af703d4652a0e1410be6abccecde4a7ddffd19341be0a7011b94aeb171ac1"},
@@ -1787 +1808 @@ files = [
-dill = ">=0.3.6"
+dill = ">=0.3.8"
@@ -1867 +1888 @@ name = "numba"
-version = "0.59.1"
+version = "0.60.0"
@@ -1872,26 +1893,26 @@ files = [
- {file = "numba-0.59.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:97385a7f12212c4f4bc28f648720a92514bee79d7063e40ef66c2d30600fd18e"},
- {file = "numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0b77aecf52040de2a1eb1d7e314497b9e56fba17466c80b457b971a25bb1576d"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3476a4f641bfd58f35ead42f4dcaf5f132569c4647c6f1360ccf18ee4cda3990"},
- {file = "numba-0.59.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:525ef3f820931bdae95ee5379c670d5c97289c6520726bc6937a4a7d4230ba24"},
- {file = "numba-0.59.1-cp310-cp310-win_amd64.whl", hash = "sha256:990e395e44d192a12105eca3083b61307db7da10e093972ca285c85bef0963d6"},
- {file = "numba-0.59.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:43727e7ad20b3ec23ee4fc642f5b61845c71f75dd2825b3c234390c6d8d64051"},
- {file = "numba-0.59.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:411df625372c77959570050e861981e9d196cc1da9aa62c3d6a836b5cc338966"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2801003caa263d1e8497fb84829a7ecfb61738a95f62bc05693fcf1733e978e4"},
- {file = "numba-0.59.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:dd2842fac03be4e5324ebbbd4d2d0c8c0fc6e0df75c09477dd45b288a0777389"},
- {file = "numba-0.59.1-cp311-cp311-win_amd64.whl", hash = "sha256:0594b3dfb369fada1f8bb2e3045cd6c61a564c62e50cf1f86b4666bc721b3450"},
- {file = "numba-0.59.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:1cce206a3b92836cdf26ef39d3a3242fec25e07f020cc4feec4c4a865e340569"},
- {file = "numba-0.59.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8c8b4477763cb1fbd86a3be7050500229417bf60867c93e131fd2626edb02238"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d80bce4ef7e65bf895c29e3889ca75a29ee01da80266a01d34815918e365835"},
- {file = "numba-0.59.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f7ad1d217773e89a9845886401eaaab0a156a90aa2f179fdc125261fd1105096"},
- {file = "numba-0.59.1-cp312-cp312-win_amd64.whl", hash = "sha256:5bf68f4d69dd3a9f26a9b23548fa23e3bcb9042e2935257b471d2a8d3c424b7f"},
- {file = "numba-0.59.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4e0318ae729de6e5dbe64c75ead1a95eb01fabfe0e2ebed81ebf0344d32db0ae"},
- {file = "numba-0.59.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0f68589740a8c38bb7dc1b938b55d1145244c8353078eea23895d4f82c8b9ec1"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:649913a3758891c77c32e2d2a3bcbedf4a69f5fea276d11f9119677c45a422e8"},
- {file = "numba-0.59.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9712808e4545270291d76b9a264839ac878c5eb7d8b6e02c970dc0ac29bc8187"},
- {file = "numba-0.59.1-cp39-cp39-win_amd64.whl", hash = "sha256:8d51ccd7008a83105ad6a0082b6a2b70f1142dc7cfd76deb8c5a862367eb8c86"},
- {file = "numba-0.59.1.tar.gz", hash = "sha256:76f69132b96028d2774ed20415e8c528a34e3299a40581bae178f0994a2f370b"},
-]
-
-[package.dependencies]
-llvmlite = "==0.42.*"
-numpy = ">=1.22,<1.27"
+ {file = "numba-0.60.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5d761de835cd38fb400d2c26bb103a2726f548dc30368853121d66201672e651"},
+ {file = "numba-0.60.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:159e618ef213fba758837f9837fb402bbe65326e60ba0633dbe6c7f274d42c1b"},
+ {file = "numba-0.60.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1527dc578b95c7c4ff248792ec33d097ba6bef9eda466c948b68dfc995c25781"},
+ {file = "numba-0.60.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fe0b28abb8d70f8160798f4de9d486143200f34458d34c4a214114e445d7124e"},
+ {file = "numba-0.60.0-cp310-cp310-win_amd64.whl", hash = "sha256:19407ced081d7e2e4b8d8c36aa57b7452e0283871c296e12d798852bc7d7f198"},
+ {file = "numba-0.60.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a17b70fc9e380ee29c42717e8cc0bfaa5556c416d94f9aa96ba13acb41bdece8"},
+ {file = "numba-0.60.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3fb02b344a2a80efa6f677aa5c40cd5dd452e1b35f8d1c2af0dfd9ada9978e4b"},
+ {file = "numba-0.60.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5f4fde652ea604ea3c86508a3fb31556a6157b2c76c8b51b1d45eb40c8598703"},
+ {file = "numba-0.60.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4142d7ac0210cc86432b818338a2bc368dc773a2f5cf1e32ff7c5b378bd63ee8"},
+ {file = "numba-0.60.0-cp311-cp311-win_amd64.whl", hash = "sha256:cac02c041e9b5bc8cf8f2034ff6f0dbafccd1ae9590dc146b3a02a45e53af4e2"},
+ {file = "numba-0.60.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:d7da4098db31182fc5ffe4bc42c6f24cd7d1cb8a14b59fd755bfee32e34b8404"},
+ {file = "numba-0.60.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:38d6ea4c1f56417076ecf8fc327c831ae793282e0ff51080c5094cb726507b1c"},
+ {file = "numba-0.60.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:62908d29fb6a3229c242e981ca27e32a6e606cc253fc9e8faeb0e48760de241e"},
+ {file = "numba-0.60.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0ebaa91538e996f708f1ab30ef4d3ddc344b64b5227b67a57aa74f401bb68b9d"},
+ {file = "numba-0.60.0-cp312-cp312-win_amd64.whl", hash = "sha256:f75262e8fe7fa96db1dca93d53a194a38c46da28b112b8a4aca168f0df860347"},
+ {file = "numba-0.60.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:01ef4cd7d83abe087d644eaa3d95831b777aa21d441a23703d649e06b8e06b74"},
+ {file = "numba-0.60.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:819a3dfd4630d95fd574036f99e47212a1af41cbcb019bf8afac63ff56834449"},
+ {file = "numba-0.60.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0b983bd6ad82fe868493012487f34eae8bf7dd94654951404114f23c3466d34b"},
+ {file = "numba-0.60.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c151748cd269ddeab66334bd754817ffc0cabd9433acb0f551697e5151917d25"},
+ {file = "numba-0.60.0-cp39-cp39-win_amd64.whl", hash = "sha256:3031547a015710140e8c87226b4cfe927cac199835e5bf7d4fe5cb64e814e3ab"},
+ {file = "numba-0.60.0.tar.gz", hash = "sha256:5df6158e5584eece5fc83294b949fd30b9f1125df7708862205217e068aabf16"},
+]
+
+[package.dependencies]
+llvmlite = "==0.43.*"
+numpy = ">=1.22,<2.1"
@@ -2123,0 +2145,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2281,0 +2339,16 @@ testing = ["aboutcode-toolkit (>=6.0.0)", "black", "pytest (>=6,!=7.0.0)", "pyte
+[[package]]
+name = "platformdirs"
+version = "4.3.8"
+description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`."
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "platformdirs-4.3.8-py3-none-any.whl", hash = "sha256:ff7059bb7eb1179e2685604f4aaf157cfd9535242bd23742eadc3c13542139b4"},
+ {file = "platformdirs-4.3.8.tar.gz", hash = "sha256:3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc"},
+]
+
+[package.extras]
+docs = ["furo (>=2024.8.6)", "proselint (>=0.14)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=8.3.4)", "pytest-cov (>=6)", "pytest-mock (>=3.14)"]
+type = ["mypy (>=1.14.1)"]
+
@@ -2342,2 +2415,2 @@ name = "pooch"
-version = "1.6.0"
-description = "\"Pooch manages your Python library's sample data files: it automatically downloads and stores them in a local directory, with support for versioning and corruption checks.\""
+version = "1.8.2"
+description = "A friend to fetch your data files"
@@ -2345 +2418 @@ optional = false
-python-versions = ">=3.6"
+python-versions = ">=3.7"
@@ -2347,2 +2420,2 @@ files = [
- {file = "pooch-1.6.0-py3-none-any.whl", hash = "sha256:3bf0e20027096836b8dbce0152dbb785a269abeb621618eb4bdd275ff1e23c9c"},
- {file = "pooch-1.6.0.tar.gz", hash = "sha256:57d20ec4b10dd694d2b05bb64bc6b109c6e85a6c1405794ce87ed8b341ab3f44"},
+ {file = "pooch-1.8.2-py3-none-any.whl", hash = "sha256:3529a57096f7198778a5ceefd5ac3ef0e4d06a6ddaf9fc2d609b806f25302c47"},
+ {file = "pooch-1.8.2.tar.gz", hash = "sha256:76561f0de68a01da4df6af38e9955c4c9d1a5c90da73f7e40276a5728ec83d10"},
@@ -2352 +2424,0 @@ files = [
-appdirs = ">=1.3.0"
@@ -2353,0 +2426 @@ packaging = ">=20.0"
+platformdirs = ">=2.5.0"
@@ -2658,0 +2732,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -2926 +3021 @@ name = "scikit-learn"
-version = "1.5.0"
+version = "1.6.1"
@@ -2931,21 +3026,30 @@ files = [
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:12e40ac48555e6b551f0a0a5743cc94cc5a765c9513fe708e01f0aa001da2801"},
- {file = "scikit_learn-1.5.0-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:f405c4dae288f5f6553b10c4ac9ea7754d5180ec11e296464adb5d6ac68b6ef5"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df8ccabbf583315f13160a4bb06037bde99ea7d8211a69787a6b7c5d4ebb6fc3"},
- {file = "scikit_learn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c75ea812cd83b1385bbfa94ae971f0d80adb338a9523f6bbcb5e0b0381151d4"},
- {file = "scikit_learn-1.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:a90c5da84829a0b9b4bf00daf62754b2be741e66b5946911f5bdfaa869fcedd6"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2a65af2d8a6cce4e163a7951a4cfbfa7fceb2d5c013a4b593686c7f16445cf9d"},
- {file = "scikit_learn-1.5.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:4c0c56c3005f2ec1db3787aeaabefa96256580678cec783986836fc64f8ff622"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f77547165c00625551e5c250cefa3f03f2fc92c5e18668abd90bfc4be2e0bff"},
- {file = "scikit_learn-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:118a8d229a41158c9f90093e46b3737120a165181a1b58c03461447aa4657415"},
- {file = "scikit_learn-1.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:a03b09f9f7f09ffe8c5efffe2e9de1196c696d811be6798ad5eddf323c6f4d40"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:460806030c666addee1f074788b3978329a5bfdc9b7d63e7aad3f6d45c67a210"},
- {file = "scikit_learn-1.5.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:1b94d6440603752b27842eda97f6395f570941857456c606eb1d638efdb38184"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d82c2e573f0f2f2f0be897e7a31fcf4e73869247738ab8c3ce7245549af58ab8"},
- {file = "scikit_learn-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3a10e1d9e834e84d05e468ec501a356226338778769317ee0b84043c0d8fb06"},
- {file = "scikit_learn-1.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:855fc5fa8ed9e4f08291203af3d3e5fbdc4737bd617a371559aaa2088166046e"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:40fb7d4a9a2db07e6e0cae4dc7bdbb8fada17043bac24104d8165e10e4cff1a2"},
- {file = "scikit_learn-1.5.0-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:47132440050b1c5beb95f8ba0b2402bbd9057ce96ec0ba86f2f445dd4f34df67"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:174beb56e3e881c90424e21f576fa69c4ffcf5174632a79ab4461c4c960315ac"},
- {file = "scikit_learn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261fe334ca48f09ed64b8fae13f9b46cc43ac5f580c4a605cbb0a517456c8f71"},
- {file = "scikit_learn-1.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:057b991ac64b3e75c9c04b5f9395eaf19a6179244c089afdebaad98264bff37c"},
- {file = "scikit_learn-1.5.0.tar.gz", hash = "sha256:789e3db01c750ed6d496fa2db7d50637857b451e57bcae863bff707c1247bef7"},
+ {file = "scikit_learn-1.6.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d056391530ccd1e501056160e3c9673b4da4805eb67eb2bdf4e983e1f9c9204e"},
+ {file = "scikit_learn-1.6.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:0c8d036eb937dbb568c6242fa598d551d88fb4399c0344d95c001980ec1c7d36"},
+ {file = "scikit_learn-1.6.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8634c4bd21a2a813e0a7e3900464e6d593162a29dd35d25bdf0103b3fce60ed5"},
+ {file = "scikit_learn-1.6.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:775da975a471c4f6f467725dff0ced5c7ac7bda5e9316b260225b48475279a1b"},
+ {file = "scikit_learn-1.6.1-cp310-cp310-win_amd64.whl", hash = "sha256:8a600c31592bd7dab31e1c61b9bbd6dea1b3433e67d264d17ce1017dbdce8002"},
+ {file = "scikit_learn-1.6.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:72abc587c75234935e97d09aa4913a82f7b03ee0b74111dcc2881cba3c5a7b33"},
+ {file = "scikit_learn-1.6.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:b3b00cdc8f1317b5f33191df1386c0befd16625f49d979fe77a8d44cae82410d"},
+ {file = "scikit_learn-1.6.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dc4765af3386811c3ca21638f63b9cf5ecf66261cc4815c1db3f1e7dc7b79db2"},
+ {file = "scikit_learn-1.6.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:25fc636bdaf1cc2f4a124a116312d837148b5e10872147bdaf4887926b8c03d8"},
+ {file = "scikit_learn-1.6.1-cp311-cp311-win_amd64.whl", hash = "sha256:fa909b1a36e000a03c382aade0bd2063fd5680ff8b8e501660c0f59f021a6415"},
+ {file = "scikit_learn-1.6.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:926f207c804104677af4857b2c609940b743d04c4c35ce0ddc8ff4f053cddc1b"},
+ {file = "scikit_learn-1.6.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:2c2cae262064e6a9b77eee1c8e768fc46aa0b8338c6a8297b9b6759720ec0ff2"},
+ {file = "scikit_learn-1.6.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1061b7c028a8663fb9a1a1baf9317b64a257fcb036dae5c8752b2abef31d136f"},
+ {file = "scikit_learn-1.6.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e69fab4ebfc9c9b580a7a80111b43d214ab06250f8a7ef590a4edf72464dd86"},
+ {file = "scikit_learn-1.6.1-cp312-cp312-win_amd64.whl", hash = "sha256:70b1d7e85b1c96383f872a519b3375f92f14731e279a7b4c6cfd650cf5dffc52"},
+ {file = "scikit_learn-1.6.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2ffa1e9e25b3d93990e74a4be2c2fc61ee5af85811562f1288d5d055880c4322"},
+ {file = "scikit_learn-1.6.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:dc5cf3d68c5a20ad6d571584c0750ec641cc46aeef1c1507be51300e6003a7e1"},
+ {file = "scikit_learn-1.6.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c06beb2e839ecc641366000ca84f3cf6fa9faa1777e29cf0c04be6e4d096a348"},
+ {file = "scikit_learn-1.6.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e8ca8cb270fee8f1f76fa9bfd5c3507d60c6438bbee5687f81042e2bb98e5a97"},
+ {file = "scikit_learn-1.6.1-cp313-cp313-win_amd64.whl", hash = "sha256:7a1c43c8ec9fde528d664d947dc4c0789be4077a3647f232869f41d9bf50e0fb"},
+ {file = "scikit_learn-1.6.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:a17c1dea1d56dcda2fac315712f3651a1fea86565b64b48fa1bc090249cbf236"},
+ {file = "scikit_learn-1.6.1-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:6a7aa5f9908f0f28f4edaa6963c0a6183f1911e63a69aa03782f0d924c830a35"},
+ {file = "scikit_learn-1.6.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0650e730afb87402baa88afbf31c07b84c98272622aaba002559b614600ca691"},
+ {file = "scikit_learn-1.6.1-cp313-cp313t-win_amd64.whl", hash = "sha256:3f59fe08dc03ea158605170eb52b22a105f238a5d512c4470ddeca71feae8e5f"},
+ {file = "scikit_learn-1.6.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6849dd3234e87f55dce1db34c89a810b489ead832aaf4d4550b7ea85628be6c1"},
+ {file = "scikit_learn-1.6.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:e7be3fa5d2eb9be7d77c3734ff1d599151bb523674be9b834e8da6abe132f44e"},
+ {file = "scikit_learn-1.6.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:44a17798172df1d3c1065e8fcf9019183f06c87609b49a124ebdf57ae6cb0107"},
+ {file = "scikit_learn-1.6.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8b7a3b86e411e4bce21186e1c180d792f3d99223dcfa3b4f597ecc92fa1a422"},
+ {file = "scikit_learn-1.6.1-cp39-cp39-win_amd64.whl", hash = "sha256:7a73d457070e3318e32bdb3aa79a8d990474f19035464dfd8bede2883ab5dc3b"},
+ {file = "scikit_learn-1.6.1.tar.gz", hash = "sha256:b4fc2525eca2c69a59260f583c56a7557c6ccdf8deafdba6e060f94c1c59738e"},
@@ -2962,2 +3066,2 @@ benchmark = ["matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "pandas (>=1.
-build = ["cython (>=3.0.10)", "meson-python (>=0.15.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)"]
-docs = ["Pillow (>=7.1.2)", "matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)", "sphinx (>=6.0.0)", "sphinx-copybutton (>=0.5.2)", "sphinx-gallery (>=0.15.0)", "sphinx-prompt (>=1.3.0)", "sphinxext-opengraph (>=0.4.2)"]
+build = ["cython (>=3.0.10)", "meson-python (>=0.16.0)", "numpy (>=1.19.5)", "scipy (>=1.6.0)"]
+docs = ["Pillow (>=7.1.2)", "matplotlib (>=3.3.4)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "plotly (>=5.14.0)", "polars (>=0.20.30)", "pooch (>=1.6.0)", "pydata-sphinx-theme (>=0.15.3)", "scikit-image (>=0.17.2)", "seaborn (>=0.9.0)", "sphinx (>=7.3.7)", "sphinx-copybutton (>=0.5.2)", "sphinx-design (>=0.5.0)", "sphinx-design (>=0.6.0)", "sphinx-gallery (>=0.17.1)", "sphinx-prompt (>=1.4.0)", "sphinx-remove-toctrees (>=1.0.0.post1)", "sphinxcontrib-sass (>=0.3.4)", "sphinxext-opengraph (>=0.9.1)", "towncrier (>=24.8.0)"]
@@ -2967 +3071 @@ maintenance = ["conda-lock (==2.5.6)"]
-tests = ["black (>=24.3.0)", "matplotlib (>=3.3.4)", "mypy (>=1.9)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "polars (>=0.20.23)", "pooch (>=1.6.0)", "pyamg (>=4.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.2.1)", "scikit-image (>=0.17.2)"]
+tests = ["black (>=24.3.0)", "matplotlib (>=3.3.4)", "mypy (>=1.9)", "numpydoc (>=1.2.0)", "pandas (>=1.1.5)", "polars (>=0.20.30)", "pooch (>=1.6.0)", "pyamg (>=4.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.5.1)", "scikit-image (>=0.17.2)"]
@@ -2971 +3075 @@ name = "scipy"
-version = "1.11.1"
+version = "1.13.1"
@@ -2974 +3078 @@ optional = false
-python-versions = "<3.13,>=3.9"
+python-versions = ">=3.9"
@@ -2976,19 +3080,25 @@ files = [
- {file = "scipy-1.11.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:aec8c62fbe52914f9cf28d846cf0401dd80ab80788bbab909434eb336ed07c04"},
- {file = "scipy-1.11.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:3b9963798df1d8a52db41a6fc0e6fa65b1c60e85d73da27ae8bb754de4792481"},
- {file = "scipy-1.11.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e8eb42db36526b130dfbc417609498a6192381abc1975b91e3eb238e0b41c1a"},
- {file = "scipy-1.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:366a6a937110d80dca4f63b3f5b00cc89d36f678b2d124a01067b154e692bab1"},
- {file = "scipy-1.11.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:08d957ca82d3535b3b9ba6c8ff355d78fe975271874e2af267cb5add5bd78625"},
- {file = "scipy-1.11.1-cp310-cp310-win_amd64.whl", hash = "sha256:e866514bc2d660608447b6ba95c8900d591f2865c07cca0aa4f7ff3c4ca70f30"},
- {file = "scipy-1.11.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ba94eeef3c9caa4cea7b402a35bb02a5714ee1ee77eb98aca1eed4543beb0f4c"},
- {file = "scipy-1.11.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:512fdc18c65f76dadaca139348e525646d440220d8d05f6d21965b8d4466bccd"},
- {file = "scipy-1.11.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cce154372f0ebe88556ed06d7b196e9c2e0c13080ecb58d0f35062dc7cc28b47"},
- {file = "scipy-1.11.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b4bb943010203465ac81efa392e4645265077b4d9e99b66cf3ed33ae12254173"},
- {file = "scipy-1.11.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:249cfa465c379c9bb2c20123001e151ff5e29b351cbb7f9c91587260602c58d0"},
- {file = "scipy-1.11.1-cp311-cp311-win_amd64.whl", hash = "sha256:ffb28e3fa31b9c376d0fb1f74c1f13911c8c154a760312fbee87a21eb21efe31"},
- {file = "scipy-1.11.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:39154437654260a52871dfde852adf1b93b1d1bc5dc0ffa70068f16ec0be2624"},
- {file = "scipy-1.11.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:b588311875c58d1acd4ef17c983b9f1ab5391755a47c3d70b6bd503a45bfaf71"},
- {file = "scipy-1.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d51565560565a0307ed06fa0ec4c6f21ff094947d4844d6068ed04400c72d0c3"},
- {file = "scipy-1.11.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b41a0f322b4eb51b078cb3441e950ad661ede490c3aca66edef66f4b37ab1877"},
- {file = "scipy-1.11.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:396fae3f8c12ad14c5f3eb40499fd06a6fef8393a6baa352a652ecd51e74e029"},
- {file = "scipy-1.11.1-cp39-cp39-win_amd64.whl", hash = "sha256:be8c962a821957fdde8c4044efdab7a140c13294997a407eaee777acf63cbf0c"},
- {file = "scipy-1.11.1.tar.gz", hash = "sha256:fb5b492fa035334fd249f0973cc79ecad8b09c604b42a127a677b45a9a3d4289"},
+ {file = "scipy-1.13.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:20335853b85e9a49ff7572ab453794298bcf0354d8068c5f6775a0eabf350aca"},
+ {file = "scipy-1.13.1-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:d605e9c23906d1994f55ace80e0125c587f96c020037ea6aa98d01b4bd2e222f"},
+ {file = "scipy-1.13.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cfa31f1def5c819b19ecc3a8b52d28ffdcc7ed52bb20c9a7589669dd3c250989"},
+ {file = "scipy-1.13.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f26264b282b9da0952a024ae34710c2aff7d27480ee91a2e82b7b7073c24722f"},
+ {file = "scipy-1.13.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:eccfa1906eacc02de42d70ef4aecea45415f5be17e72b61bafcfd329bdc52e94"},
+ {file = "scipy-1.13.1-cp310-cp310-win_amd64.whl", hash = "sha256:2831f0dc9c5ea9edd6e51e6e769b655f08ec6db6e2e10f86ef39bd32eb11da54"},
+ {file = "scipy-1.13.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:27e52b09c0d3a1d5b63e1105f24177e544a222b43611aaf5bc44d4a0979e32f9"},
+ {file = "scipy-1.13.1-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:54f430b00f0133e2224c3ba42b805bfd0086fe488835effa33fa291561932326"},
+ {file = "scipy-1.13.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e89369d27f9e7b0884ae559a3a956e77c02114cc60a6058b4e5011572eea9299"},
+ {file = "scipy-1.13.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a78b4b3345f1b6f68a763c6e25c0c9a23a9fd0f39f5f3d200efe8feda560a5fa"},
+ {file = "scipy-1.13.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:45484bee6d65633752c490404513b9ef02475b4284c4cfab0ef946def50b3f59"},
+ {file = "scipy-1.13.1-cp311-cp311-win_amd64.whl", hash = "sha256:5713f62f781eebd8d597eb3f88b8bf9274e79eeabf63afb4a737abc6c84ad37b"},
+ {file = "scipy-1.13.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:5d72782f39716b2b3509cd7c33cdc08c96f2f4d2b06d51e52fb45a19ca0c86a1"},
+ {file = "scipy-1.13.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:017367484ce5498445aade74b1d5ab377acdc65e27095155e448c88497755a5d"},
+ {file = "scipy-1.13.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:949ae67db5fa78a86e8fa644b9a6b07252f449dcf74247108c50e1d20d2b4627"},
+ {file = "scipy-1.13.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:de3ade0e53bc1f21358aa74ff4830235d716211d7d077e340c7349bc3542e884"},
+ {file = "scipy-1.13.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2ac65fb503dad64218c228e2dc2d0a0193f7904747db43014645ae139c8fad16"},
+ {file = "scipy-1.13.1-cp312-cp312-win_amd64.whl", hash = "sha256:cdd7dacfb95fea358916410ec61bbc20440f7860333aee6d882bb8046264e949"},
+ {file = "scipy-1.13.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:436bbb42a94a8aeef855d755ce5a465479c721e9d684de76bf61a62e7c2b81d5"},
+ {file = "scipy-1.13.1-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:8335549ebbca860c52bf3d02f80784e91a004b71b059e3eea9678ba994796a24"},
+ {file = "scipy-1.13.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d533654b7d221a6a97304ab63c41c96473ff04459e404b83275b60aa8f4b7004"},
+ {file = "scipy-1.13.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:637e98dcf185ba7f8e663e122ebf908c4702420477ae52a04f9908707456ba4d"},
+ {file = "scipy-1.13.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a014c2b3697bde71724244f63de2476925596c24285c7a637364761f8710891c"},
+ {file = "scipy-1.13.1-cp39-cp39-win_amd64.whl", hash = "sha256:392e4ec766654852c25ebad4f64e4e584cf19820b980bc04960bca0b0cd6eaa2"},
+ {file = "scipy-1.13.1.tar.gz", hash = "sha256:095a87a0312b08dfd6a6155cbbd310a8c51800fc931b8c0b84003014b874ed3c"},
@@ -2998 +3108 @@ files = [
-numpy = ">=1.21.6,<1.28.0"
+numpy = ">=1.22.4,<2.3"
@@ -3001,3 +3111,3 @@ numpy = ">=1.21.6,<1.28.0"
-dev = ["click", "cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyle", "pydevtool", "rich-click", "ruff", "types-psutil", "typing_extensions"]
-doc = ["jupytext", "matplotlib (>2)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (==0.9.0)", "sphinx (!=4.1.0)", "sphinx-design (>=0.2.0)"]
-test = ["asv", "gmpy2", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"]
+dev = ["cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyle", "pydevtool", "rich-click", "ruff", "types-psutil", "typing_extensions"]
+doc = ["jupyterlite-pyodide-kernel", "jupyterlite-sphinx (>=0.12.0)", "jupytext", "matplotlib (>=3.5)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (>=0.15.2)", "sphinx (>=5.0.0)", "sphinx-design (>=0.4.0)"]
+test = ["array-api-strict", "asv", "gmpy2", "hypothesis (>=6.30)", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"]
@@ -3058,0 +3169 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3073 +3184 @@ name = "soxr"
-version = "0.4.0"
+version = "0.5.0.post1"
@@ -3078,21 +3189,21 @@ files = [
- {file = "soxr-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0be9dbc6cb0de2e2147ad33ffe4dee0391ed38125248253f53d3f1a05b65425"},
- {file = "soxr-0.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:46c1dce06d156f9a6563c41f97d5d6978ccc993c3682c6f8190438c0f7417d36"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:784d2dd6d43d2663d384ed7e1f6a1156f98395bbd889b0a9def6c61a9e17cda1"},
- {file = "soxr-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ee59424f4f1c81f6a9f3d03b4bde27992272dc8c36f9b08af7f31ce720fa6ba"},
- {file = "soxr-0.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:2975734033e8da5a241f2498b65513a160882dd1283cf5eb7eac5b3b262ae668"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:38374140503b17b3234d0deb83dfe0319727df1dbab41e1a576b61405fc82767"},
- {file = "soxr-0.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a370f661576916e8b208990eb70e5db4e07ab025b47492a633370846bc0a9678"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4301600889696051bdb1469f8b10cace0d7e2d16a351c6b5fc947b3b41e10a58"},
- {file = "soxr-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:12a0e460f1199aaed544a30c67f5df7a452b0647b63e0df706a17577e963e38b"},
- {file = "soxr-0.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:2f6f55c520fb90040f604b1203f2100b70c789d973bb0fd79b221187e3841311"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:226d405c40094f5fd5dd4b80c66fc61cc108018da0216833e843d82ccffdadcb"},
- {file = "soxr-0.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c53d4bc99908e715665b3d45f0cc06e652e4f53bf4acf9e758c1cce02977e411"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a9cc0620d7b1effab9d408427711d52c3db6e295b5504dfcf549f4636904ed0d"},
- {file = "soxr-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f99aaef14a7d268966c06cf6a06729eb98b2276493710d24a6f20fdcfc3ad26e"},
- {file = "soxr-0.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:63a59d36b8f8f3b1501e4fca2c034aacceb9b4d6888295afd269afbce5eb2f3f"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:38e65bb8beba55d8049ecf16e73c05ed3dd5e156d6086f594c40edb3181a7900"},
- {file = "soxr-0.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5fd5e43fe568451152e20e16a71a61cda6340da934c344733a26674e041ab445"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83b3e477ff61b3579ec2ad66fa7a9b362072d5d9a5d1e61db3d366d26afbb8c8"},
- {file = "soxr-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba0989025d70c472d62bf0e68778c9bbd0c9bee111c708cf64c26406937ca6be"},
- {file = "soxr-0.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:5e71482f092051544b196387e3779d726f26df30cba307424eac7a96285c5b64"},
- {file = "soxr-0.4.0.tar.gz", hash = "sha256:02385e3de07e28ddbc19ab41216075d889575895e778ce2ada950d5f46cf6a52"},
+ {file = "soxr-0.5.0.post1-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:7406d782d85f8cf64e66b65e6b7721973de8a1dc50b9e88bc2288c343a987484"},
+ {file = "soxr-0.5.0.post1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fa0a382fb8d8e2afed2c1642723b2d2d1b9a6728ff89f77f3524034c8885b8c9"},
+ {file = "soxr-0.5.0.post1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b01d3efb95a2851f78414bcd00738b0253eec3f5a1e5482838e965ffef84969"},
+ {file = "soxr-0.5.0.post1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fcc049b0a151a65aa75b92f0ac64bb2dba785d16b78c31c2b94e68c141751d6d"},
+ {file = "soxr-0.5.0.post1-cp310-cp310-win_amd64.whl", hash = "sha256:97f269bc26937c267a2ace43a77167d0c5c8bba5a2b45863bb6042b5b50c474e"},
+ {file = "soxr-0.5.0.post1-cp311-cp311-macosx_10_14_x86_64.whl", hash = "sha256:6fb77b626773a966e3d8f6cb24f6f74b5327fa5dc90f1ff492450e9cdc03a378"},
+ {file = "soxr-0.5.0.post1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:39e0f791ba178d69cd676485dbee37e75a34f20daa478d90341ecb7f6d9d690f"},
+ {file = "soxr-0.5.0.post1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f0b558f445ba4b64dbcb37b5f803052eee7d93b1dbbbb97b3ec1787cb5a28eb"},
+ {file = "soxr-0.5.0.post1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca6903671808e0a6078b0d146bb7a2952b118dfba44008b2aa60f221938ba829"},
+ {file = "soxr-0.5.0.post1-cp311-cp311-win_amd64.whl", hash = "sha256:c4d8d5283ed6f5efead0df2c05ae82c169cfdfcf5a82999c2d629c78b33775e8"},
+ {file = "soxr-0.5.0.post1-cp312-abi3-macosx_10_14_x86_64.whl", hash = "sha256:fef509466c9c25f65eae0ce1e4b9ac9705d22c6038c914160ddaf459589c6e31"},
+ {file = "soxr-0.5.0.post1-cp312-abi3-macosx_11_0_arm64.whl", hash = "sha256:4704ba6b13a3f1e41d12acf192878384c1c31f71ce606829c64abdf64a8d7d32"},
+ {file = "soxr-0.5.0.post1-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bd052a66471a7335b22a6208601a9d0df7b46b8d087dce4ff6e13eed6a33a2a1"},
+ {file = "soxr-0.5.0.post1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3f16810dd649ab1f433991d2a9661e9e6a116c2b4101039b53b3c3e90a094fc"},
+ {file = "soxr-0.5.0.post1-cp312-abi3-win_amd64.whl", hash = "sha256:b1be9fee90afb38546bdbd7bde714d1d9a8c5a45137f97478a83b65e7f3146f6"},
+ {file = "soxr-0.5.0.post1-cp39-cp39-macosx_10_14_x86_64.whl", hash = "sha256:c5af7b355959061beb90a1d73c4834ece4549f07b708f8c73c088153cec29935"},
+ {file = "soxr-0.5.0.post1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e1dda616fc797b1507b65486f3116ed2c929f13c722922963dd419d64ada6c07"},
+ {file = "soxr-0.5.0.post1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94de2812368e98cb42b4eaeddf8ee1657ecc19bd053f8e67b9b5aa12a3592012"},
+ {file = "soxr-0.5.0.post1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c8e9c980637e03d3f345a4fd81d56477a58c294fb26205fa121bc4eb23d9d01"},
+ {file = "soxr-0.5.0.post1-cp39-cp39-win_amd64.whl", hash = "sha256:7e71b0b0db450f36de70f1047505231db77a713f8c47df9342582ae8a4b828f2"},
+ {file = "soxr-0.5.0.post1.tar.gz", hash = "sha256:7092b9f3e8a416044e1fa138c8172520757179763b85dc53aa9504f4813cff73"},
@@ -3176 +3287 @@ name = "threadpoolctl"
-version = "3.1.0"
+version = "3.6.0"
@@ -3179 +3290 @@ optional = false
-python-versions = ">=3.6"
+python-versions = ">=3.9"
@@ -3181,2 +3292,2 @@ files = [
- {file = "threadpoolctl-3.1.0-py3-none-any.whl", hash = "sha256:8b99adda265feb6773280df41eece7b2e6561b772d21ffd52e372f999024907b"},
- {file = "threadpoolctl-3.1.0.tar.gz", hash = "sha256:a335baacfaa4400ae1f0d8e3a58d6674d2f8828e3716bb2802c44955ad391380"},
+ {file = "threadpoolctl-3.6.0-py3-none-any.whl", hash = "sha256:43a0b8fd5a2928500110039e43a5eed8480b918967083ea48dc3ab9f13c4a7fb"},
+ {file = "threadpoolctl-3.6.0.tar.gz", hash = "sha256:8ab8b4aa3491d812b623328249fab5302a68d2d71745c8a4c719a2fcaba9f44e"},
@@ -3872 +3983 @@ name = "xxhash"
-version = "3.2.0"
+version = "3.5.0"
@@ -3875 +3986 @@ optional = false
-python-versions = ">=3.6"
+python-versions = ">=3.7"
@@ -3877,98 +3988,123 @@ files = [
- {file = "xxhash-3.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:af44b9e59c4b2926a4e3c7f9d29949ff42fcea28637ff6b8182e654461932be8"},
- {file = "xxhash-3.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1bdd57973e2b802ef32553d7bebf9402dac1557874dbe5c908b499ea917662cd"},
- {file = "xxhash-3.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b7c9aa77bbce61a5e681bd39cb6a804338474dcc90abe3c543592aa5d6c9a9b"},
- {file = "xxhash-3.2.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:11bf87dc7bb8c3b0b5e24b7b941a9a19d8c1f88120b6a03a17264086bc8bb023"},
- {file = "xxhash-3.2.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2783d41487ce6d379fdfaa7332fca5187bf7010b9bddcf20cafba923bc1dc665"},
- {file = "xxhash-3.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:561076ca0dcef2fbc20b2bc2765bff099e002e96041ae9dbe910a863ca6ee3ea"},
- {file = "xxhash-3.2.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3a26eeb4625a6e61cedc8c1b39b89327c9c7e1a8c2c4d786fe3f178eb839ede6"},
- {file = "xxhash-3.2.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:d93a44d0104d1b9b10de4e7aadf747f6efc1d7ec5ed0aa3f233a720725dd31bd"},
- {file = "xxhash-3.2.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:89585adc73395a10306d2e2036e50d6c4ac0cf8dd47edf914c25488871b64f6d"},
- {file = "xxhash-3.2.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:a892b4b139126a86bfdcb97cd912a2f8c4e8623869c3ef7b50871451dd7afeb0"},
- {file = "xxhash-3.2.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:e998efb190653f70e0f30d92b39fc645145369a4823bee46af8ddfc244aa969d"},
- {file = "xxhash-3.2.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:e8ed3bd2b8bb3277710843ca63e4f5c3ee6f8f80b083be5b19a7a9905420d11e"},
- {file = "xxhash-3.2.0-cp310-cp310-win32.whl", hash = "sha256:20181cbaed033c72cb881b2a1d13c629cd1228f113046133469c9a48cfcbcd36"},
- {file = "xxhash-3.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:a0f7a16138279d707db778a63264d1d6016ac13ffd3f1e99f54b2855d6c0d8e1"},
- {file = "xxhash-3.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5daff3fb5bfef30bc5a2cb143810d376d43461445aa17aece7210de52adbe151"},
- {file = "xxhash-3.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:75bb5be3c5de702a547715f320ecf5c8014aeca750ed5147ca75389bd22e7343"},
- {file = "xxhash-3.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:01f36b671ff55cb1d5c2f6058b799b697fd0ae4b4582bba6ed0999678068172a"},
- {file = "xxhash-3.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d4d4519123aac73c93159eb8f61db9682393862dd669e7eae034ecd0a35eadac"},
- {file = "xxhash-3.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:994e4741d5ed70fc2a335a91ef79343c6b1089d7dfe6e955dd06f8ffe82bede6"},
- {file = "xxhash-3.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:919bc1b010aa6ff0eb918838ff73a435aed9e9a19c3202b91acecd296bf75607"},
- {file = "xxhash-3.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:17b65454c5accbb079c45eca546c27c4782f5175aa320758fafac896b1549d27"},
- {file = "xxhash-3.2.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b0c094d5e65a46dbf3fe0928ff20873a747e6abfd2ed4b675beeb2750624bc2e"},
- {file = "xxhash-3.2.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:f94163ebe2d5546e6a5977e96d83621f4689c1054053428cf8d4c28b10f92f69"},
- {file = "xxhash-3.2.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:cead7c0307977a00b3f784cff676e72c147adbcada19a2e6fc2ddf54f37cf387"},
- {file = "xxhash-3.2.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:a0e1bd0260c1da35c1883321ce2707ceea07127816ab625e1226ec95177b561a"},
- {file = "xxhash-3.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cc8878935671490efe9275fb4190a6062b73277bd273237179b9b5a2aa436153"},
- {file = "xxhash-3.2.0-cp311-cp311-win32.whl", hash = "sha256:a433f6162b18d52f7068175d00bd5b1563b7405f926a48d888a97b90a160c40d"},
- {file = "xxhash-3.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:a32d546a1752e4ee7805d6db57944f7224afa7428d22867006b6486e4195c1f3"},
- {file = "xxhash-3.2.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:82daaab720866bf690b20b49de5640b0c27e3b8eea2d08aa75bdca2b0f0cfb63"},
- {file = "xxhash-3.2.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3126df6520cbdbaddd87ce74794b2b6c45dd2cf6ac2b600a374b8cdb76a2548c"},
- {file = "xxhash-3.2.0-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e172c1ee40507ae3b8d220f4048aaca204f203e1e4197e8e652f5c814f61d1aa"},
- {file = "xxhash-3.2.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5384f1d9f30876f5d5b618464fb19ff7ce6c0fe4c690fbaafd1c52adc3aae807"},
- {file = "xxhash-3.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26cb52174a7e96a17acad27a3ca65b24713610ac479c99ac9640843822d3bebf"},
- {file = "xxhash-3.2.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fbcd613a5e76b1495fc24db9c37a6b7ee5f214fd85979187ec4e032abfc12ded"},
- {file = "xxhash-3.2.0-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:f988daf25f31726d5b9d0be6af636ca9000898f9ea43a57eac594daea25b0948"},
- {file = "xxhash-3.2.0-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:bbc30c98ab006ab9fc47e5ed439c00f706bc9d4441ff52693b8b6fea335163e0"},
- {file = "xxhash-3.2.0-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:2408d49260b0a4a7cc6ba445aebf38e073aeaf482f8e32767ca477e32ccbbf9e"},
- {file = "xxhash-3.2.0-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:3f4152fd0bf8b03b79f2f900fd6087a66866537e94b5a11fd0fd99ef7efe5c42"},
- {file = "xxhash-3.2.0-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:0eea848758e4823a01abdbcccb021a03c1ee4100411cbeeb7a5c36a202a0c13c"},
- {file = "xxhash-3.2.0-cp36-cp36m-win32.whl", hash = "sha256:77709139af5123c578ab06cf999429cdb9ab211047acd0c787e098dcb3f1cb4d"},
- {file = "xxhash-3.2.0-cp36-cp36m-win_amd64.whl", hash = "sha256:91687671fd9d484a4e201ad266d366b695a45a1f2b41be93d116ba60f1b8f3b3"},
- {file = "xxhash-3.2.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:e4af8bc5c3fcc2192c266421c6aa2daab1a18e002cb8e66ef672030e46ae25cf"},
- {file = "xxhash-3.2.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8be562e2ce3e481d9209b6f254c3d7c5ff920eb256aba2380d2fb5ba75d4f87"},
- {file = "xxhash-3.2.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9eba0c7c12126b12f7fcbea5513f28c950d28f33d2a227f74b50b77789e478e8"},
- {file = "xxhash-3.2.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2198c4901a0223c48f6ec0a978b60bca4f4f7229a11ca4dc96ca325dd6a29115"},
- {file = "xxhash-3.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50ce82a71b22a3069c02e914bf842118a53065e2ec1c6fb54786e03608ab89cc"},
- {file = "xxhash-3.2.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b5019fb33711c30e54e4e57ae0ca70af9d35b589d385ac04acd6954452fa73bb"},
- {file = "xxhash-3.2.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:0d54ac023eef7e3ac9f0b8841ae8a376b933043bc2ad428121346c6fa61c491c"},
- {file = "xxhash-3.2.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:c55fa832fc3fe64e0d29da5dc9b50ba66ca93312107cec2709300ea3d3bab5c7"},
- {file = "xxhash-3.2.0-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:f4ce006215497993ae77c612c1883ca4f3973899573ce0c52fee91f0d39c4561"},
- {file = "xxhash-3.2.0-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:1afb9b9d27fd675b436cb110c15979976d92d761ad6e66799b83756402f3a974"},
- {file = "xxhash-3.2.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:baa99cebf95c1885db21e119395f222a706a2bb75a545f0672880a442137725e"},
- {file = "xxhash-3.2.0-cp37-cp37m-win32.whl", hash = "sha256:75aa692936942ccb2e8fd6a386c81c61630ac1b6d6e921698122db8a930579c3"},
- {file = "xxhash-3.2.0-cp37-cp37m-win_amd64.whl", hash = "sha256:0a2cdfb5cae9fafb9f7b65fd52ecd60cf7d72c13bb2591ea59aaefa03d5a8827"},
- {file = "xxhash-3.2.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:3a68d1e8a390b660d94b9360ae5baa8c21a101bd9c4790a8b30781bada9f1fc6"},
- {file = "xxhash-3.2.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:ce7c3ce28f94302df95eaea7c9c1e2c974b6d15d78a0c82142a97939d7b6c082"},
- {file = "xxhash-3.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0dcb419bf7b0bc77d366e5005c25682249c5521a63fd36c51f584bd91bb13bd5"},
- {file = "xxhash-3.2.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ae521ed9287f86aac979eeac43af762f03d9d9797b2272185fb9ddd810391216"},
- {file = "xxhash-3.2.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b0d16775094423088ffa357d09fbbb9ab48d2fb721d42c0856b801c86f616eec"},
- {file = "xxhash-3.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fe454aeab348c42f56d6f7434ff758a3ef90787ac81b9ad5a363cd61b90a1b0b"},
- {file = "xxhash-3.2.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:052fd0efdd5525c2dbc61bebb423d92aa619c4905bba605afbf1e985a562a231"},
- {file = "xxhash-3.2.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:02badf3754e2133de254a4688798c4d80f0060635087abcb461415cb3eb82115"},
- {file = "xxhash-3.2.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:66b8a90b28c13c2aae7a71b32638ceb14cefc2a1c8cf23d8d50dfb64dfac7aaf"},
- {file = "xxhash-3.2.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:649cdf19df175925ad87289ead6f760cd840730ee85abc5eb43be326a0a24d97"},
- {file = "xxhash-3.2.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:4b948a03f89f5c72d69d40975af8af241111f0643228796558dc1cae8f5560b0"},
- {file = "xxhash-3.2.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49f51fab7b762da7c2cee0a3d575184d3b9be5e2f64f26cae2dd286258ac9b3c"},
- {file = "xxhash-3.2.0-cp38-cp38-win32.whl", hash = "sha256:1a42994f0d42b55514785356722d9031f064fd34e495b3a589e96db68ee0179d"},
- {file = "xxhash-3.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:0a6d58ba5865475e53d6c2c4fa6a62e2721e7875e146e2681e5337a6948f12e7"},
- {file = "xxhash-3.2.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:aabdbc082030f8df613e2d2ea1f974e7ad36a539bdfc40d36f34e55c7e4b8e94"},
- {file = "xxhash-3.2.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:498843b66b9ca416e9d03037e5875c8d0c0ab9037527e22df3b39aa5163214cd"},
- {file = "xxhash-3.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a910b1193cd90af17228f5d6069816646df0148f14f53eefa6b2b11a1dedfcd0"},
- {file = "xxhash-3.2.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bb6d8ce31dc25faf4da92991320e211fa7f42de010ef51937b1dc565a4926501"},
- {file = "xxhash-3.2.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:883dc3d3942620f4c7dbc3fd6162f50a67f050b714e47da77444e3bcea7d91cc"},
- {file = "xxhash-3.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:59dc8bfacf89b8f5be54d55bc3b4bd6d74d0c5320c8a63d2538ac7df5b96f1d5"},
- {file = "xxhash-3.2.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:61e6aa1d30c2af692aa88c4dd48709426e8b37bff6a574ee2de677579c34a3d6"},
- {file = "xxhash-3.2.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:314ec0bd21f0ee8d30f2bd82ed3759314bd317ddbbd8555668f3d20ab7a8899a"},
- {file = "xxhash-3.2.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:dad638cde3a5357ad3163b80b3127df61fb5b5e34e9e05a87697144400ba03c7"},
- {file = "xxhash-3.2.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:eaa3ea15025b56076d806b248948612289b093e8dcda8d013776b3848dffff15"},
- {file = "xxhash-3.2.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:7deae3a312feb5c17c97cbf18129f83cbd3f1f9ec25b0f50e2bd9697befb22e7"},
- {file = "xxhash-3.2.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:add774341c09853b1612c64a526032d95ab1683053325403e1afbe3ad2f374c5"},
- {file = "xxhash-3.2.0-cp39-cp39-win32.whl", hash = "sha256:9b94749130ef3119375c599bfce82142c2500ef9ed3280089157ee37662a7137"},
- {file = "xxhash-3.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:e57d94a1552af67f67b27db5dba0b03783ea69d5ca2af2f40e098f0ba3ce3f5f"},
- {file = "xxhash-3.2.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:92fd765591c83e5c5f409b33eac1d3266c03d3d11c71a7dbade36d5cdee4fbc0"},
- {file = "xxhash-3.2.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8970f6a411a9839a02b23b7e90bbbba4a6de52ace009274998566dc43f36ca18"},
- {file = "xxhash-3.2.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5f3e33fe6cbab481727f9aeb136a213aed7e33cd1ca27bd75e916ffacc18411"},
- {file = "xxhash-3.2.0-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:368265392cb696dd53907e2328b5a8c1bee81cf2142d0cc743caf1c1047abb36"},
- {file = "xxhash-3.2.0-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:3b1f3c6d67fa9f49c4ff6b25ce0e7143bab88a5bc0f4116dd290c92337d0ecc7"},
- {file = "xxhash-3.2.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:c5e8db6e1ee7267b7c412ad0afd5863bf7a95286b8333a5958c8097c69f94cf5"},
- {file = "xxhash-3.2.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:761df3c7e2c5270088b691c5a8121004f84318177da1ca1db64222ec83c44871"},
- {file = "xxhash-3.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2d15a707e7f689531eb4134eccb0f8bf3844bb8255ad50823aa39708d9e6755"},
- {file = "xxhash-3.2.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e6b2ba4ff53dd5f57d728095e3def7375eb19c90621ce3b41b256de84ec61cfd"},
- {file = "xxhash-3.2.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:61b0bcf946fdfd8ab5f09179dc2b5c74d1ef47cedfc6ed0ec01fdf0ee8682dd3"},
- {file = "xxhash-3.2.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:f7b79f0f302396d8e0d444826ceb3d07b61977793886ebae04e82796c02e42dc"},
- {file = "xxhash-3.2.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e0773cd5c438ffcd5dbff91cdd503574f88a4b960e70cedeb67736583a17a918"},
- {file = "xxhash-3.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ec1f57127879b419a2c8d2db9d9978eb26c61ae17e5972197830430ae78d25b"},
- {file = "xxhash-3.2.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3d4b15c00e807b1d3d0b612338c814739dec310b80fb069bd732b98ddc709ad7"},
- {file = "xxhash-3.2.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:9d3f686e3d1c8900c5459eee02b60c7399e20ec5c6402364068a343c83a61d90"},
- {file = "xxhash-3.2.0.tar.gz", hash = "sha256:1afd47af8955c5db730f630ad53ae798cf7fae0acb64cebb3cf94d35c47dd088"},
+ {file = "xxhash-3.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ece616532c499ee9afbb83078b1b952beffef121d989841f7f4b3dc5ac0fd212"},
+ {file = "xxhash-3.5.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:3171f693dbc2cef6477054a665dc255d996646b4023fe56cb4db80e26f4cc520"},
+ {file = "xxhash-3.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7c5d3e570ef46adaf93fc81b44aca6002b5a4d8ca11bd0580c07eac537f36680"},
+ {file = "xxhash-3.5.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7cb29a034301e2982df8b1fe6328a84f4b676106a13e9135a0d7e0c3e9f806da"},
+ {file = "xxhash-3.5.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5d0d307d27099bb0cbeea7260eb39ed4fdb99c5542e21e94bb6fd29e49c57a23"},
+ {file = "xxhash-3.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0342aafd421795d740e514bc9858ebddfc705a75a8c5046ac56d85fe97bf196"},
+ {file = "xxhash-3.5.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3dbbd9892c5ebffeca1ed620cf0ade13eb55a0d8c84e0751a6653adc6ac40d0c"},
+ {file = "xxhash-3.5.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:4cc2d67fdb4d057730c75a64c5923abfa17775ae234a71b0200346bfb0a7f482"},
+ {file = "xxhash-3.5.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:ec28adb204b759306a3d64358a5e5c07d7b1dd0ccbce04aa76cb9377b7b70296"},
+ {file = "xxhash-3.5.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:1328f6d8cca2b86acb14104e381225a3d7b42c92c4b86ceae814e5c400dbb415"},
+ {file = "xxhash-3.5.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:8d47ebd9f5d9607fd039c1fbf4994e3b071ea23eff42f4ecef246ab2b7334198"},
+ {file = "xxhash-3.5.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b96d559e0fcddd3343c510a0fe2b127fbff16bf346dd76280b82292567523442"},
+ {file = "xxhash-3.5.0-cp310-cp310-win32.whl", hash = "sha256:61c722ed8d49ac9bc26c7071eeaa1f6ff24053d553146d5df031802deffd03da"},
+ {file = "xxhash-3.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:9bed5144c6923cc902cd14bb8963f2d5e034def4486ab0bbe1f58f03f042f9a9"},
+ {file = "xxhash-3.5.0-cp310-cp310-win_arm64.whl", hash = "sha256:893074d651cf25c1cc14e3bea4fceefd67f2921b1bb8e40fcfeba56820de80c6"},
+ {file = "xxhash-3.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:02c2e816896dc6f85922ced60097bcf6f008dedfc5073dcba32f9c8dd786f3c1"},
+ {file = "xxhash-3.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6027dcd885e21581e46d3c7f682cfb2b870942feeed58a21c29583512c3f09f8"},
+ {file = "xxhash-3.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1308fa542bbdbf2fa85e9e66b1077eea3a88bef38ee8a06270b4298a7a62a166"},
+ {file = "xxhash-3.5.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c28b2fdcee797e1c1961cd3bcd3d545cab22ad202c846235197935e1df2f8ef7"},
+ {file = "xxhash-3.5.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:924361811732ddad75ff23e90efd9ccfda4f664132feecb90895bade6a1b4623"},
+ {file = "xxhash-3.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:89997aa1c4b6a5b1e5b588979d1da048a3c6f15e55c11d117a56b75c84531f5a"},
+ {file = "xxhash-3.5.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:685c4f4e8c59837de103344eb1c8a3851f670309eb5c361f746805c5471b8c88"},
+ {file = "xxhash-3.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:dbd2ecfbfee70bc1a4acb7461fa6af7748ec2ab08ac0fa298f281c51518f982c"},
+ {file = "xxhash-3.5.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:25b5a51dc3dfb20a10833c8eee25903fd2e14059e9afcd329c9da20609a307b2"},
+ {file = "xxhash-3.5.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:a8fb786fb754ef6ff8c120cb96629fb518f8eb5a61a16aac3a979a9dbd40a084"},
+ {file = "xxhash-3.5.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a905ad00ad1e1c34fe4e9d7c1d949ab09c6fa90c919860c1534ff479f40fd12d"},
+ {file = "xxhash-3.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:963be41bcd49f53af6d795f65c0da9b4cc518c0dd9c47145c98f61cb464f4839"},
+ {file = "xxhash-3.5.0-cp311-cp311-win32.whl", hash = "sha256:109b436096d0a2dd039c355fa3414160ec4d843dfecc64a14077332a00aeb7da"},
+ {file = "xxhash-3.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:b702f806693201ad6c0a05ddbbe4c8f359626d0b3305f766077d51388a6bac58"},
+ {file = "xxhash-3.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:c4dcb4120d0cc3cc448624147dba64e9021b278c63e34a38789b688fd0da9bf3"},
+ {file = "xxhash-3.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:14470ace8bd3b5d51318782cd94e6f94431974f16cb3b8dc15d52f3b69df8e00"},
+ {file = "xxhash-3.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:59aa1203de1cb96dbeab595ded0ad0c0056bb2245ae11fac11c0ceea861382b9"},
+ {file = "xxhash-3.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08424f6648526076e28fae6ea2806c0a7d504b9ef05ae61d196d571e5c879c84"},
+ {file = "xxhash-3.5.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:61a1ff00674879725b194695e17f23d3248998b843eb5e933007ca743310f793"},
+ {file = "xxhash-3.5.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f2f2c61bee5844d41c3eb015ac652a0229e901074951ae48581d58bfb2ba01be"},
+ {file = "xxhash-3.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d32a592cac88d18cc09a89172e1c32d7f2a6e516c3dfde1b9adb90ab5df54a6"},
+ {file = "xxhash-3.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:70dabf941dede727cca579e8c205e61121afc9b28516752fd65724be1355cc90"},
+ {file = "xxhash-3.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e5d0ddaca65ecca9c10dcf01730165fd858533d0be84c75c327487c37a906a27"},
+ {file = "xxhash-3.5.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3e5b5e16c5a480fe5f59f56c30abdeba09ffd75da8d13f6b9b6fd224d0b4d0a2"},
+ {file = "xxhash-3.5.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:149b7914451eb154b3dfaa721315117ea1dac2cc55a01bfbd4df7c68c5dd683d"},
+ {file = "xxhash-3.5.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:eade977f5c96c677035ff39c56ac74d851b1cca7d607ab3d8f23c6b859379cab"},
+ {file = "xxhash-3.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fa9f547bd98f5553d03160967866a71056a60960be00356a15ecc44efb40ba8e"},
+ {file = "xxhash-3.5.0-cp312-cp312-win32.whl", hash = "sha256:f7b58d1fd3551b8c80a971199543379be1cee3d0d409e1f6d8b01c1a2eebf1f8"},
+ {file = "xxhash-3.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:fa0cafd3a2af231b4e113fba24a65d7922af91aeb23774a8b78228e6cd785e3e"},
+ {file = "xxhash-3.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:586886c7e89cb9828bcd8a5686b12e161368e0064d040e225e72607b43858ba2"},
+ {file = "xxhash-3.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:37889a0d13b0b7d739cfc128b1c902f04e32de17b33d74b637ad42f1c55101f6"},
+ {file = "xxhash-3.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:97a662338797c660178e682f3bc180277b9569a59abfb5925e8620fba00b9fc5"},
+ {file = "xxhash-3.5.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7f85e0108d51092bdda90672476c7d909c04ada6923c14ff9d913c4f7dc8a3bc"},
+ {file = "xxhash-3.5.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cd2fd827b0ba763ac919440042302315c564fdb797294d86e8cdd4578e3bc7f3"},
+ {file = "xxhash-3.5.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:82085c2abec437abebf457c1d12fccb30cc8b3774a0814872511f0f0562c768c"},
+ {file = "xxhash-3.5.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:07fda5de378626e502b42b311b049848c2ef38784d0d67b6f30bb5008642f8eb"},
+ {file = "xxhash-3.5.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c279f0d2b34ef15f922b77966640ade58b4ccdfef1c4d94b20f2a364617a493f"},
+ {file = "xxhash-3.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:89e66ceed67b213dec5a773e2f7a9e8c58f64daeb38c7859d8815d2c89f39ad7"},
+ {file = "xxhash-3.5.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:bcd51708a633410737111e998ceb3b45d3dbc98c0931f743d9bb0a209033a326"},
+ {file = "xxhash-3.5.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:3ff2c0a34eae7df88c868be53a8dd56fbdf592109e21d4bfa092a27b0bf4a7bf"},
+ {file = "xxhash-3.5.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:4e28503dccc7d32e0b9817aa0cbfc1f45f563b2c995b7a66c4c8a0d232e840c7"},
+ {file = "xxhash-3.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a6c50017518329ed65a9e4829154626f008916d36295b6a3ba336e2458824c8c"},
+ {file = "xxhash-3.5.0-cp313-cp313-win32.whl", hash = "sha256:53a068fe70301ec30d868ece566ac90d873e3bb059cf83c32e76012c889b8637"},
+ {file = "xxhash-3.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:80babcc30e7a1a484eab952d76a4f4673ff601f54d5142c26826502740e70b43"},
+ {file = "xxhash-3.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:4811336f1ce11cac89dcbd18f3a25c527c16311709a89313c3acaf771def2d4b"},
+ {file = "xxhash-3.5.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:6e5f70f6dca1d3b09bccb7daf4e087075ff776e3da9ac870f86ca316736bb4aa"},
+ {file = "xxhash-3.5.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2e76e83efc7b443052dd1e585a76201e40b3411fe3da7af4fe434ec51b2f163b"},
+ {file = "xxhash-3.5.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:33eac61d0796ca0591f94548dcfe37bb193671e0c9bcf065789b5792f2eda644"},
+ {file = "xxhash-3.5.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ec70a89be933ea49222fafc3999987d7899fc676f688dd12252509434636622"},
+ {file = "xxhash-3.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd86b8e7f703ec6ff4f351cfdb9f428955859537125904aa8c963604f2e9d3e7"},
+ {file = "xxhash-3.5.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0adfbd36003d9f86c8c97110039f7539b379f28656a04097e7434d3eaf9aa131"},
+ {file = "xxhash-3.5.0-cp37-cp37m-musllinux_1_2_aarch64.whl", hash = "sha256:63107013578c8a730419adc05608756c3fa640bdc6abe806c3123a49fb829f43"},
+ {file = "xxhash-3.5.0-cp37-cp37m-musllinux_1_2_i686.whl", hash = "sha256:683b94dbd1ca67557850b86423318a2e323511648f9f3f7b1840408a02b9a48c"},
+ {file = "xxhash-3.5.0-cp37-cp37m-musllinux_1_2_ppc64le.whl", hash = "sha256:5d2a01dcce81789cf4b12d478b5464632204f4c834dc2d064902ee27d2d1f0ee"},
+ {file = "xxhash-3.5.0-cp37-cp37m-musllinux_1_2_s390x.whl", hash = "sha256:a9d360a792cbcce2fe7b66b8d51274ec297c53cbc423401480e53b26161a290d"},
+ {file = "xxhash-3.5.0-cp37-cp37m-musllinux_1_2_x86_64.whl", hash = "sha256:f0b48edbebea1b7421a9c687c304f7b44d0677c46498a046079d445454504737"},
+ {file = "xxhash-3.5.0-cp37-cp37m-win32.whl", hash = "sha256:7ccb800c9418e438b44b060a32adeb8393764da7441eb52aa2aa195448935306"},
+ {file = "xxhash-3.5.0-cp37-cp37m-win_amd64.whl", hash = "sha256:c3bc7bf8cb8806f8d1c9bf149c18708cb1c406520097d6b0a73977460ea03602"},
+ {file = "xxhash-3.5.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:74752ecaa544657d88b1d1c94ae68031e364a4d47005a90288f3bab3da3c970f"},
+ {file = "xxhash-3.5.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:dee1316133c9b463aa81aca676bc506d3f80d8f65aeb0bba2b78d0b30c51d7bd"},
+ {file = "xxhash-3.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:602d339548d35a8579c6b013339fb34aee2df9b4e105f985443d2860e4d7ffaa"},
+ {file = "xxhash-3.5.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:695735deeddfb35da1677dbc16a083445360e37ff46d8ac5c6fcd64917ff9ade"},
+ {file = "xxhash-3.5.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1030a39ba01b0c519b1a82f80e8802630d16ab95dc3f2b2386a0b5c8ed5cbb10"},
+ {file = "xxhash-3.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a5bc08f33c4966f4eb6590d6ff3ceae76151ad744576b5fc6c4ba8edd459fdec"},
+ {file = "xxhash-3.5.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:160e0c19ee500482ddfb5d5570a0415f565d8ae2b3fd69c5dcfce8a58107b1c3"},
+ {file = "xxhash-3.5.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:f1abffa122452481a61c3551ab3c89d72238e279e517705b8b03847b1d93d738"},
+ {file = "xxhash-3.5.0-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:d5e9db7ef3ecbfc0b4733579cea45713a76852b002cf605420b12ef3ef1ec148"},
+ {file = "xxhash-3.5.0-cp38-cp38-musllinux_1_2_ppc64le.whl", hash = "sha256:23241ff6423378a731d84864bf923a41649dc67b144debd1077f02e6249a0d54"},
+ {file = "xxhash-3.5.0-cp38-cp38-musllinux_1_2_s390x.whl", hash = "sha256:82b833d5563fefd6fceafb1aed2f3f3ebe19f84760fdd289f8b926731c2e6e91"},
+ {file = "xxhash-3.5.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:0a80ad0ffd78bef9509eee27b4a29e56f5414b87fb01a888353e3d5bda7038bd"},
+ {file = "xxhash-3.5.0-cp38-cp38-win32.whl", hash = "sha256:50ac2184ffb1b999e11e27c7e3e70cc1139047e7ebc1aa95ed12f4269abe98d4"},
+ {file = "xxhash-3.5.0-cp38-cp38-win_amd64.whl", hash = "sha256:392f52ebbb932db566973693de48f15ce787cabd15cf6334e855ed22ea0be5b3"},
+ {file = "xxhash-3.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bfc8cdd7f33d57f0468b0614ae634cc38ab9202c6957a60e31d285a71ebe0301"},
+ {file = "xxhash-3.5.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e0c48b6300cd0b0106bf49169c3e0536408dfbeb1ccb53180068a18b03c662ab"},
+ {file = "xxhash-3.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fe1a92cfbaa0a1253e339ccec42dbe6db262615e52df591b68726ab10338003f"},
+ {file = "xxhash-3.5.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:33513d6cc3ed3b559134fb307aae9bdd94d7e7c02907b37896a6c45ff9ce51bd"},
+ {file = "xxhash-3.5.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eefc37f6138f522e771ac6db71a6d4838ec7933939676f3753eafd7d3f4c40bc"},
+ {file = "xxhash-3.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a606c8070ada8aa2a88e181773fa1ef17ba65ce5dd168b9d08038e2a61b33754"},
+ {file = "xxhash-3.5.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:42eca420c8fa072cc1dd62597635d140e78e384a79bb4944f825fbef8bfeeef6"},
+ {file = "xxhash-3.5.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:604253b2143e13218ff1ef0b59ce67f18b8bd1c4205d2ffda22b09b426386898"},
+ {file = "xxhash-3.5.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:6e93a5ad22f434d7876665444a97e713a8f60b5b1a3521e8df11b98309bff833"},
+ {file = "xxhash-3.5.0-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:7a46e1d6d2817ba8024de44c4fd79913a90e5f7265434cef97026215b7d30df6"},
+ {file = "xxhash-3.5.0-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:30eb2efe6503c379b7ab99c81ba4a779748e3830241f032ab46bd182bf5873af"},
+ {file = "xxhash-3.5.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:c8aa771ff2c13dd9cda8166d685d7333d389fae30a4d2bb39d63ab5775de8606"},
+ {file = "xxhash-3.5.0-cp39-cp39-win32.whl", hash = "sha256:5ed9ebc46f24cf91034544b26b131241b699edbfc99ec5e7f8f3d02d6eb7fba4"},
+ {file = "xxhash-3.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:220f3f896c6b8d0316f63f16c077d52c412619e475f9372333474ee15133a558"},
+ {file = "xxhash-3.5.0-cp39-cp39-win_arm64.whl", hash = "sha256:a7b1d8315d9b5e9f89eb2933b73afae6ec9597a258d52190944437158b49d38e"},
+ {file = "xxhash-3.5.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:2014c5b3ff15e64feecb6b713af12093f75b7926049e26a580e94dcad3c73d8c"},
+ {file = "xxhash-3.5.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fab81ef75003eda96239a23eda4e4543cedc22e34c373edcaf744e721a163986"},
+ {file = "xxhash-3.5.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4e2febf914ace002132aa09169cc572e0d8959d0f305f93d5828c4836f9bc5a6"},
+ {file = "xxhash-3.5.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5d3a10609c51da2a1c0ea0293fc3968ca0a18bd73838455b5bca3069d7f8e32b"},
+ {file = "xxhash-3.5.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:5a74f23335b9689b66eb6dbe2a931a88fcd7a4c2cc4b1cb0edba8ce381c7a1da"},
+ {file = "xxhash-3.5.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:2b4154c00eb22e4d543f472cfca430e7962a0f1d0f3778334f2e08a7ba59363c"},
+ {file = "xxhash-3.5.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d30bbc1644f726b825b3278764240f449d75f1a8bdda892e641d4a688b1494ae"},
+ {file = "xxhash-3.5.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6fa0b72f2423e2aa53077e54a61c28e181d23effeaafd73fcb9c494e60930c8e"},
+ {file = "xxhash-3.5.0-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:13de2b76c1835399b2e419a296d5b38dc4855385d9e96916299170085ef72f57"},
+ {file = "xxhash-3.5.0-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:0691bfcc4f9c656bcb96cc5db94b4d75980b9d5589f2e59de790091028580837"},
+ {file = "xxhash-3.5.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:297595fe6138d4da2c8ce9e72a04d73e58725bb60f3a19048bc96ab2ff31c692"},
+ {file = "xxhash-3.5.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc1276d369452040cbb943300dc8abeedab14245ea44056a2943183822513a18"},
+ {file = "xxhash-3.5.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2061188a1ba352fc699c82bff722f4baacb4b4b8b2f0c745d2001e56d0dfb514"},
+ {file = "xxhash-3.5.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:38c384c434021e4f62b8d9ba0bc9467e14d394893077e2c66d826243025e1f81"},
+ {file = "xxhash-3.5.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:e6a4dd644d72ab316b580a1c120b375890e4c52ec392d4aef3c63361ec4d77d1"},
+ {file = "xxhash-3.5.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl", hash = "sha256:531af8845aaadcadf951b7e0c1345c6b9c68a990eeb74ff9acd8501a0ad6a1c9"},
+ {file = "xxhash-3.5.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7ce379bcaa9fcc00f19affa7773084dd09f5b59947b3fb47a1ceb0179f91aaa1"},
+ {file = "xxhash-3.5.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd1b2281d01723f076df3c8188f43f2472248a6b63118b036e641243656b1b0f"},
+ {file = "xxhash-3.5.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9c770750cc80e8694492244bca7251385188bc5597b6a39d98a9f30e8da984e0"},
+ {file = "xxhash-3.5.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:b150b8467852e1bd844387459aa6fbe11d7f38b56e901f9f3b3e6aba0d660240"},
+ {file = "xxhash-3.5.0.tar.gz", hash = "sha256:84f2caddf951c9cbf8dc2e22a89d4ccf5d86391ac6418fe81e3c67d0cf60b45f"},
@@ -4067 +4203 @@ python-versions = "3.9.18"
-content-hash = "f58989004f6d8e773a9c8673d4688f0e90c6ae3b021dc78c71e7bbc616682752"
+content-hash = "a2d18ffb38e8e5dbb6a65641c33166a3106de3d927940aa51d27754d50ce840a"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index 93fe1ef2..756a6a55 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12 +12 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -23,0 +24 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
diff --git a/libs/libcommon/src/libcommon/constants.py b/libs/libcommon/src/libcommon/constants.py
index b42e5feb..1433efa7 100644
--- a/libs/libcommon/src/libcommon/constants.py
+++ b/libs/libcommon/src/libcommon/constants.py
@@ -34,0 +35 @@ PROCESSING_STEP_CONFIG_PARQUET_AND_INFO_ROW_GROUP_SIZE_FOR_IMAGE_DATASETS = 100
+PROCESSING_STEP_CONFIG_PARQUET_AND_INFO_ROW_GROUP_SIZE_FOR_PDF_DATASETS = 100
diff --git a/libs/libcommon/src/libcommon/url_preparator.py b/libs/libcommon/src/libcommon/url_preparator.py
index 3ea8e52f..a5cc4860 100644
--- a/libs/libcommon/src/libcommon/url_preparator.py
+++ b/libs/libcommon/src/libcommon/url_preparator.py
@@ -9 +9 @@ from typing import Any, Callable, Literal, Optional, Union
-from datasets import Audio, Features, Image, Video
+from datasets import Audio, Features, Image, Pdf, Video
@@ -26 +26 @@ class AssetUrlPath:
- feature_type: Literal["Audio", "Image", "Video"]
+ feature_type: Literal["Audio", "Image", "Video", "Pdf"]
@@ -78,0 +79,2 @@ def get_asset_url_paths(features: Features) -> list[AssetUrlPath]:
+ elif isinstance(feature, Pdf):
+ asset_url_paths.append(AssetUrlPath(feature_type="Pdf", path=visit_path))
@@ -116,4 +118,9 @@ class URLPreparator(ABC):
- src = cell.get("src")
- if not isinstance(src, str):
- raise InvalidFirstRowsError('Expected cell["src"] to be a string')
- cell["src"] = self.prepare_url(src, revision=revision)
+ for key, value in cell.items():
+ if isinstance(value, dict):
+ # if the value is a dict, we have to prepare the URL in it for nested assets
+ self._prepare_asset_url_path_in_place(cell=value, asset_url_path=asset_url_path, revision=revision)
+ elif key == "src":
+ src = cell.get(key)
+ if not isinstance(src, str):
+ raise InvalidFirstRowsError(f'Expected cell["{key}"] to be a string')
+ cell[key] = self.prepare_url(src, revision=revision)
diff --git a/libs/libcommon/src/libcommon/viewer_utils/asset.py b/libs/libcommon/src/libcommon/viewer_utils/asset.py
index fd54657c..f719ec3f 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/asset.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/asset.py
@@ -4 +4 @@
-from io import BytesIO
+from io import BufferedReader, BytesIO
@@ -6 +6 @@ from tempfile import NamedTemporaryFile
-from typing import TYPE_CHECKING, Any, Optional, TypedDict
+from typing import TYPE_CHECKING, Any, Optional, TypedDict, Union
@@ -7,0 +8 @@ from typing import TYPE_CHECKING, Any, Optional, TypedDict
+from pdfplumber.pdf import PDF
@@ -34,0 +36,6 @@ class VideoSource(TypedDict):
+class PDFSource(TypedDict):
+ src: str
+ size_bytes: int
+ thumbnail: ImageSource
+
+
@@ -126,0 +134,74 @@ def create_audio_file(
+def create_pdf_file(
+ dataset: str,
+ revision: str,
+ config: str,
+ split: str,
+ row_idx: int,
+ column: str,
+ filename: str,
+ pdf: PDF,
+ storage_client: "StorageClient",
+) -> PDFSource:
+ thumbnail_object_path = storage_client.generate_object_path(
+ dataset=dataset,
+ revision=DATASET_GIT_REVISION_PLACEHOLDER,
+ config=config,
+ split=split,
+ row_idx=row_idx,
+ column=column,
+ filename=f"{filename}.png",
+ )
+ thumbnail_storage_path = replace_dataset_git_revision_placeholder(thumbnail_object_path, revision=revision)
+ thumbnail = pdf.pages[0].to_image()
+
+ if storage_client.overwrite or not storage_client.exists(thumbnail_storage_path):
+ thumbnail_buffer = BytesIO()
+ thumbnail.save(thumbnail_buffer)
+ thumbnail_buffer.seek(0)
+ with storage_client._fs.open(storage_client.get_full_path(thumbnail_storage_path), "wb") as thumbnail_file:
+ thumbnail_file.write(thumbnail_buffer.read())
+
+ pdf_object_path = storage_client.generate_object_path(
+ dataset=dataset,
+ revision=DATASET_GIT_REVISION_PLACEHOLDER,
+ config=config,
+ split=split,
+ row_idx=row_idx,
+ column=column,
+ filename=filename,
+ )
+ pdf_storage_path = replace_dataset_git_revision_placeholder(pdf_object_path, revision=revision)
+
+ def is_valid_pdf(pdf_stream: Union[BufferedReader, BytesIO]) -> bool:
+ current_position = pdf_stream.tell()
+ try:
+ pdf_stream.seek(0)
+ return pdf_stream.read(5) == b"%PDF-"
+ finally:
+ pdf_stream.seek(current_position)
+
+ pdf_data = pdf.stream
+ if not is_valid_pdf(pdf_data):
+ raise ValueError("The provided data is not a valid PDF.")
+
+ if storage_client.overwrite or not storage_client.exists(pdf_storage_path):
+ with storage_client._fs.open(storage_client.get_full_path(pdf_storage_path), "wb") as pdf_file:
+ pdf_data.seek(0)
+ pdf_file.write(pdf_data.read())
+
+ # Get the size of the PDF file, probably not needed
+ pdf_data.seek(0, 2)
+ size_bytes = pdf_data.tell()
+ pdf_data.seek(0)
+
+ return PDFSource(
+ src=storage_client.get_url(pdf_object_path, revision=revision),
+ size_bytes=size_bytes,
+ thumbnail=ImageSource(
+ src=storage_client.get_url(thumbnail_object_path, revision=revision),
+ height=thumbnail.annotated.height,
+ width=thumbnail.annotated.width,
+ ),
+ )
+
+
diff --git a/libs/libcommon/src/libcommon/viewer_utils/features.py b/libs/libcommon/src/libcommon/viewer_utils/features.py
index 95342668..ab3f12a6 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/features.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/features.py
@@ -4,0 +5 @@ import json
+import logging
@@ -11,0 +13 @@ import numpy as np
+import pdfplumber
@@ -22,0 +25 @@ from datasets import (
+ Pdf,
@@ -37,0 +41 @@ from libcommon.viewer_utils.asset import (
+ create_pdf_file,
@@ -45,0 +50,2 @@ AUDIO_FILE_MAGIC_NUMBERS: dict[str, Any] = {
+logging.getLogger("pdfminer").setLevel(logging.ERROR)
+
@@ -272,0 +279,45 @@ def get_video_file_extension(value: Any) -> str:
+def pdf(
+ dataset: str,
+ revision: str,
+ config: str,
+ split: str,
+ row_idx: int,
+ value: Any,
+ featureName: str,
+ storage_client: StorageClient,
+ json_path: Optional[list[Union[str, int]]] = None,
+) -> Any:
+ if value is None:
+ return None
+ if isinstance(value, dict) and value.get("bytes"):
+ value = pdfplumber.open(BytesIO(value["bytes"]))
+ elif isinstance(value, bytes):
+ value = pdfplumber.open(BytesIO(value))
+ elif (
+ isinstance(value, dict)
+ and "path" in value
+ and isinstance(value["path"], str)
+ and os.path.exists(value["path"])
+ ):
+ value = pdfplumber.open(value["path"])
+
+ if not isinstance(value, pdfplumber.pdf.PDF):
+ raise TypeError(
+ "PDF cell must be a pdfplumber.pdf.PDF object or an encoded dict of a PDF, "
+ f"but got {str(value)[:300]}{'...' if len(str(value)) > 300 else ''}"
+ )
+
+ # this function can raise, we don't catch it
+ return create_pdf_file(
+ dataset=dataset,
+ revision=revision,
+ config=config,
+ split=split,
+ row_idx=row_idx,
+ column=featureName,
+ pdf=value,
+ storage_client=storage_client,
+ filename=f"{append_hash_suffix('document', json_path)}.pdf",
+ )
+
+
@@ -323,0 +375,12 @@ def get_cell_value(
+ elif isinstance(fieldType, Pdf):
+ return pdf(
+ dataset=dataset,
+ revision=revision,
+ config=config,
+ split=split,
+ row_idx=row_idx,
+ value=cell,
+ featureName=featureName,
+ storage_client=storage_client,
+ json_path=json_path,
+ )
diff --git a/libs/libcommon/src/libcommon/viewer_utils/rows.py b/libs/libcommon/src/libcommon/viewer_utils/rows.py
index 2c09d1ef..38c08832 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/rows.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/rows.py
@@ -7 +7 @@ from typing import Protocol
-from datasets import Audio, Features, Image, Value
+from datasets import Audio, Features, Image, Pdf, Value
@@ -163 +163 @@ def create_first_rows_response(
- if isinstance(feature, (Image, Audio))
+ if isinstance(feature, (Image, Audio, Pdf))
diff --git a/libs/libcommon/tests/constants.py b/libs/libcommon/tests/constants.py
index 1834f7e1..2bd484c5 100644
--- a/libs/libcommon/tests/constants.py
+++ b/libs/libcommon/tests/constants.py
@@ -68,0 +69 @@ DATASETS_NAMES = [
+ "pdf",
diff --git a/libs/libcommon/tests/fixtures/data/test_document.pdf b/libs/libcommon/tests/fixtures/data/test_document.pdf
new file mode 100644
index 00000000..85cbeeb2
Binary files /dev/null and b/libs/libcommon/tests/fixtures/data/test_document.pdf differ
diff --git a/libs/libcommon/tests/fixtures/datasets.py b/libs/libcommon/tests/fixtures/datasets.py
index 41139c50..686bab44 100644
--- a/libs/libcommon/tests/fixtures/datasets.py
+++ b/libs/libcommon/tests/fixtures/datasets.py
@@ -21,0 +22 @@ from datasets import (
+ Pdf,
@@ -612,0 +614,25 @@ def datasets_fixtures() -> Mapping[str, DatasetFixture]:
+ "pdf": DatasetFixture(
+ other(
+ str(Path(__file__).resolve().parent / "data" / "test_document.pdf"),
+ Pdf(),
+ ),
+ {"_type": "Pdf"},
+ {
+ "src": f"{ASSETS_BASE_URL}/pdf/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/document.pdf",
+ "thumbnail": {
+ "src": f"{ASSETS_BASE_URL}/pdf/--/{DEFAULT_REVISION}/--/{DEFAULT_CONFIG}/{DEFAULT_SPLIT}/{DEFAULT_ROW_IDX}/col/document.pdf.png",
+ "height": 842,
+ "width": 596,
+ },
+ "size_bytes": 8810,
+ },
+ [
+ AssetUrlPath(
+ feature_type="Pdf",
+ path=[
+ DEFAULT_COLUMN_NAME,
+ ],
+ ),
+ ],
+ 2, # One for the pdf file and one for the thumbnail
+ ),
diff --git a/libs/libcommon/tests/viewer_utils/data/test_A4.pdf b/libs/libcommon/tests/viewer_utils/data/test_A4.pdf
new file mode 100644
index 00000000..85cbeeb2
Binary files /dev/null and b/libs/libcommon/tests/viewer_utils/data/test_A4.pdf differ
diff --git a/libs/libcommon/tests/viewer_utils/data/test_us_letter.pdf b/libs/libcommon/tests/viewer_utils/data/test_us_letter.pdf
new file mode 100644
index 00000000..8eb899bd
Binary files /dev/null and b/libs/libcommon/tests/viewer_utils/data/test_us_letter.pdf differ
diff --git a/libs/libcommon/tests/viewer_utils/test_assets.py b/libs/libcommon/tests/viewer_utils/test_assets.py
index 030da7ff..848836a4 100644
--- a/libs/libcommon/tests/viewer_utils/test_assets.py
+++ b/libs/libcommon/tests/viewer_utils/test_assets.py
@@ -6,0 +7 @@ import validators # type: ignore
+from pdfplumber import open
@@ -14,0 +16 @@ from libcommon.viewer_utils.asset import (
+ create_pdf_file,
@@ -89,0 +92,37 @@ def test_create_audio_file(
[email protected](
+ "pdf_file,expected_size",
+ [("test_A4.pdf", 8810), ("test_us_letter.pdf", 1319)],
+)
+def test_create_pdf_file(
+ pdf_file: str,
+ expected_size: int,
+ shared_datadir: Path,
+ storage_client_with_url_preparator: StorageClient,
+) -> None:
+ pdf = open(shared_datadir / pdf_file)
+ value = create_pdf_file(
+ dataset="dataset",
+ revision="revision",
+ config="config",
+ split="split",
+ row_idx=7,
+ column="col",
+ filename=pdf_file,
+ pdf=pdf,
+ storage_client=storage_client_with_url_preparator,
+ )
+ pdf_key = value["src"].removeprefix(f"{ASSETS_BASE_URL}/")
+ pdf_path = pdf_key.replace(DATASET_GIT_REVISION_PLACEHOLDER, DEFAULT_REVISION)
+ assert storage_client_with_url_preparator.exists(pdf_path)
+ new_pdf = open(storage_client_with_url_preparator.get_full_path(pdf_path))
+ assert new_pdf is not None
+
+ thumbnail_key = value["thumbnail"]["src"].removeprefix(f"{ASSETS_BASE_URL}/")
+ thumbnail_path = thumbnail_key.replace(DATASET_GIT_REVISION_PLACEHOLDER, DEFAULT_REVISION)
+ assert storage_client_with_url_preparator.exists(thumbnail_path)
+ image = PILImage.open(storage_client_with_url_preparator.get_full_path(thumbnail_path))
+ assert image is not None
+ assert image.size == (value["thumbnail"]["width"], value["thumbnail"]["height"])
+ assert value["size_bytes"] == expected_size
+
+
diff --git a/libs/libcommon/tests/viewer_utils/test_features.py b/libs/libcommon/tests/viewer_utils/test_features.py
index 53a62408..39fa1c4b 100644
--- a/libs/libcommon/tests/viewer_utils/test_features.py
+++ b/libs/libcommon/tests/viewer_utils/test_features.py
@@ -13 +13 @@ from aiobotocore.response import StreamingBody
-from datasets import Audio, Features, Image, Value
+from datasets import Audio, Features, Image, Pdf, Value
@@ -115,0 +116,2 @@ def test_get_supported_unsupported_columns() -> None:
+ "pdf": Pdf(),
+ "pdf2": [Pdf()],
@@ -120 +122 @@ def test_get_supported_unsupported_columns() -> None:
- assert supported_columns == ["image1", "image2", "image3", "string"]
+ assert supported_columns == ["image1", "image2", "image3", "string", "pdf", "pdf2"]
diff --git a/libs/libcommon/tests/viewer_utils/test_rows.py b/libs/libcommon/tests/viewer_utils/test_rows.py
index 105b73e8..63b3acad 100644
--- a/libs/libcommon/tests/viewer_utils/test_rows.py
+++ b/libs/libcommon/tests/viewer_utils/test_rows.py
@@ -115,0 +116 @@ def test_create_first_rows_response_truncated(
+ ("pdf", 8810 + SOME_BYTES, "complete"),
@@ -121,0 +123 @@ def test_create_first_rows_response_truncated(
+ ("pdf", 8810 - SOME_BYTES, "complete"),
@@ -136,0 +139 @@ def test_create_first_rows_response_truncated(
+ ("pdf", 10, "error"),
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index a7c91f0a..9fd4ba31 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -578,4 +578,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -605 +603 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -617,0 +616,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1253 +1257 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1264,0 +1269 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -2110,0 +2116,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2665,0 +2707,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -3033,0 +3097 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index 434d4838..250b79ef 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -578,4 +578,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -605 +603 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -617,0 +616,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1272 +1276 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1283,0 +1288 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -2143,0 +2149,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2698,0 +2740,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -3084,0 +3148 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index cd753664..20ec824c 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -593 +593 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -597,4 +597,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -624 +622 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -632,2 +630,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -636,0 +635,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1291 +1295 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1302,0 +1307 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -1471,0 +1477,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2200,0 +2216,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2755,0 +2807,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -3178,0 +3252 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index 5da497ae..6b853ff9 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -578,4 +578,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -605 +603 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -617,0 +616,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1275 +1279 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1286,0 +1291 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -2149,0 +2155,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2704,0 +2746,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -2797,0 +2861 @@ files = [
+ {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2804,0 +2869 @@ files = [
+ {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2806,0 +2872,6 @@ files = [
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
+ {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2822,0 +2894 @@ files = [
+ {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2829,0 +2902 @@ files = [
+ {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3175,0 +3249 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index 441b706e..8ea2b624 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -578,4 +578,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -605 +603 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -617,0 +616,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1298 +1302 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1309,0 +1314 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -2214,0 +2220,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2784,0 +2826,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -2895,0 +2959 @@ files = [
+ {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2902,0 +2967 @@ files = [
+ {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2904,0 +2970,6 @@ files = [
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
+ {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2920,0 +2992 @@ files = [
+ {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2927,0 +3000 @@ files = [
+ {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3158,0 +3232 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index 77b2699b..e8ccffa3 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -578,4 +578,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -605 +603 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -617,0 +616,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1272 +1276 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1283,0 +1288 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -2143,0 +2149,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -2698,0 +2740,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -3084,0 +3148 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index cb17e46a..f633c183 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -882 +882 @@ name = "datasets"
-version = "3.6.0"
+version = "3.6.0.dev0"
@@ -886,4 +886,2 @@ python-versions = ">=3.9.0"
-files = [
- {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
- {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
-]
+files = []
+develop = false
@@ -913 +911 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -921,2 +919,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "av", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -925,0 +924,6 @@ vision = ["Pillow (>=9.4.0)"]
+[package.source]
+type = "git"
+url = "https://github.com/huggingface/datasets.git"
+reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+resolved_reference = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61"
+
@@ -1676 +1680 @@ cryptography = "^43.0.1"
-datasets = {version = "3.6.0", extras = ["audio", "vision"]}
+datasets = {git = "https://github.com/huggingface/datasets.git", rev = "da1db8a5b89fc0badaa0f571b36e122e52ae8c61", extras = ["audio", "vision"]}
@@ -1687,0 +1692 @@ pandas = "^2.2.0"
+pdfplumber = ">=0.11.4"
@@ -1940,0 +1946,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2791,0 +2807,36 @@ files = [
+[[package]]
+name = "pdfminer-six"
+version = "20250327"
+description = "PDF parser and analyzer"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "pdfminer_six-20250327-py3-none-any.whl", hash = "sha256:5af494c85b1ecb7c28df5e3a26bb5234a8226a307503d9a09f4958bc154b16a9"},
+ {file = "pdfminer_six-20250327.tar.gz", hash = "sha256:57f6c34c2702df04cfa3191622a3db0a922ced686d35283232b00094f8914aa1"},
+]
+
+[package.dependencies]
+charset-normalizer = ">=2.0.0"
+cryptography = ">=36.0.0"
+
+[package.extras]
+dev = ["atheris", "black", "mypy (==0.931)", "nox", "pytest"]
+docs = ["sphinx", "sphinx-argparse"]
+image = ["Pillow"]
+
+[[package]]
+name = "pdfplumber"
+version = "0.11.6"
+description = "Plumb a PDF for detailed information about each char, rectangle, and line."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pdfplumber-0.11.6-py3-none-any.whl", hash = "sha256:169fc2b8dbf328c81a4e9bab30af0c304ad4b472fd7816616eabdb79dc5d9d17"},
+ {file = "pdfplumber-0.11.6.tar.gz", hash = "sha256:d0f419e031641d9eac70dc18c60e1fc3ca2ec28cce7e149644923c030a0003ff"},
+]
+
+[package.dependencies]
+"pdfminer.six" = "20250327"
+Pillow = ">=9.1"
+pypdfium2 = ">=4.18.0"
+
@@ -3683,0 +3735,22 @@ diagrams = ["jinja2", "railroad-diagrams"]
+[[package]]
+name = "pypdfium2"
+version = "4.30.1"
+description = "Python bindings to PDFium"
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "pypdfium2-4.30.1-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:e07c47633732cc18d890bb7e965ad28a9c5a932e548acb928596f86be2e5ae37"},
+ {file = "pypdfium2-4.30.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:5ea2d44e96d361123b67b00f527017aa9c847c871b5714e013c01c3eb36a79fe"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1de7a3a36803171b3f66911131046d65a732f9e7834438191cb58235e6163c4e"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b8a4231efb13170354f568c722d6540b8d5b476b08825586d48ef70c40d16e03"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f434a4934e8244aa95343ffcf24e9ad9f120dbb4785f631bb40a88c39292493"},
+ {file = "pypdfium2-4.30.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f454032a0bc7681900170f67d8711b3942824531e765f91c2f5ce7937f999794"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:bbf9130a72370ee9d602e39949b902db669a2a1c24746a91e5586eb829055d9f"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5cb52884b1583b96e94fd78542c63bb42e06df5e8f9e52f8f31f5ad5a1e53367"},
+ {file = "pypdfium2-4.30.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:1a9e372bd4867ff223cc8c338e33fe11055dad12f22885950fc27646cc8d9122"},
+ {file = "pypdfium2-4.30.1-py3-none-win32.whl", hash = "sha256:421f1cf205e213e07c1f2934905779547f4f4a2ff2f59dde29da3d511d3fc806"},
+ {file = "pypdfium2-4.30.1-py3-none-win_amd64.whl", hash = "sha256:598a7f20264ab5113853cba6d86c4566e4356cad037d7d1f849c8c9021007e05"},
+ {file = "pypdfium2-4.30.1-py3-none-win_arm64.whl", hash = "sha256:c2b6d63f6d425d9416c08d2511822b54b8e3ac38e639fc41164b1d75584b3a8c"},
+ {file = "pypdfium2-4.30.1.tar.gz", hash = "sha256:5f5c7c6d03598e107d974f66b220a49436aceb191da34cda5f692be098a814ce"},
+]
+
@@ -4453,0 +4527 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/worker/src/worker/dtos.py b/services/worker/src/worker/dtos.py
index 7f0aa7d6..05a3e757 100644
--- a/services/worker/src/worker/dtos.py
+++ b/services/worker/src/worker/dtos.py
@@ -280 +280 @@ class DatasetCompatibleLibrariesResponse(TypedDict):
-DatasetModality = Literal["image", "audio", "text", "video", "geospatial", "3d", "tabular", "timeseries"]
+DatasetModality = Literal["image", "audio", "text", "video", "geospatial", "3d", "tabular", "timeseries", "document"]
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index 9e9f965b..242b8743 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -59,0 +60 @@ from libcommon.constants import (
+ PROCESSING_STEP_CONFIG_PARQUET_AND_INFO_ROW_GROUP_SIZE_FOR_PDF_DATASETS,
@@ -367,0 +369,2 @@ def get_writer_batch_size_from_info(ds_config_info: datasets.info.DatasetInfo) -
+ elif ds_config_info.builder_name == "pdffolder" or "Pdf(" in str(ds_config_info.features):
+ return PROCESSING_STEP_CONFIG_PARQUET_AND_INFO_ROW_GROUP_SIZE_FOR_PDF_DATASETS
diff --git a/services/worker/src/worker/job_runners/dataset/modalities.py b/services/worker/src/worker/job_runners/dataset/modalities.py
index 06d89633..3b76fc39 100644
--- a/services/worker/src/worker/job_runners/dataset/modalities.py
+++ b/services/worker/src/worker/job_runners/dataset/modalities.py
@@ -7 +7 @@ from http import HTTPStatus
-from datasets import Audio, Features, Image, LargeList, Sequence, Translation, TranslationVariableLanguages, Value
+from datasets import Audio, Features, Image, LargeList, Pdf, Sequence, Translation, TranslationVariableLanguages, Value
@@ -46,0 +47,2 @@ def detect_features_modalities(features: Features) -> set[DatasetModality]:
+ elif isinstance(feature, Pdf):
+ modalities.add("document")
@@ -256,0 +259,2 @@ TEXT_EXTENSIONS = {
+DOCUMENT_EXTENSIONS = {".pdf"}
+
@@ -322,0 +327,2 @@ def detect_modalities_from_filetypes(dataset: str) -> set[DatasetModality]:
+ elif filetype["extension"] in DOCUMENT_EXTENSIONS:
+ modalities.add("document")
diff --git a/services/worker/tests/job_runners/config/test_parquet_and_info.py b/services/worker/tests/job_runners/config/test_parquet_and_info.py
index 99719ad8..b3a27c2d 100644
--- a/services/worker/tests/job_runners/config/test_parquet_and_info.py
+++ b/services/worker/tests/job_runners/config/test_parquet_and_info.py
@@ -21 +21 @@ import requests
-from datasets import Audio, Features, Image, StreamingDownloadManager, Value, load_dataset, load_dataset_builder
+from datasets import Audio, Features, Image, Pdf, StreamingDownloadManager, Value, load_dataset, load_dataset_builder
@@ -378,0 +379 @@ def test_parse_repo_filename(filename: str, split: str, config: str, raises: boo
+ (datasets.info.DatasetInfo(features=Features({"pdf": Pdf()})), True),
diff --git a/services/worker/tests/job_runners/dataset/test_modalities.py b/services/worker/tests/job_runners/dataset/test_modalities.py
index 78dd510c..0cb5985b 100644
--- a/services/worker/tests/job_runners/dataset/test_modalities.py
+++ b/services/worker/tests/job_runners/dataset/test_modalities.py
@@ -36,0 +37 @@ IMAGE_URLS_DATASET = "image-urls-dataset"
+PDF_DATASET = "pdf-dataset"
@@ -172,0 +174 @@ UPSTREAM_RESPONSE_FILETYPES_ALL: UpstreamResponse = UpstreamResponse(
+ {"extension": ".pdf", "count": 1},
@@ -177,0 +180,15 @@ UPSTREAM_RESPONSE_FILETYPES_ALL: UpstreamResponse = UpstreamResponse(
+
+UPSTREAM_RESPONSE_PDF_DATASET: UpstreamResponse = UpstreamResponse(
+ kind="dataset-filetypes",
+ dataset=PDF_DATASET,
+ dataset_git_revision=REVISION_NAME,
+ http_status=HTTPStatus.OK,
+ content={
+ "filetypes": [
+ {"extension": ".pdf", "count": 1},
+ ],
+ "partial": False,
+ },
+ progress=1.0,
+)
+
@@ -217,0 +235 @@ EXPECTED_ALL_MODALITIES: tuple[DatasetModalitiesResponse, float] = (
+ "document",
@@ -237,0 +256,4 @@ EXPECTED_IMAGE_URLS: tuple[DatasetModalitiesResponse, float] = (
+EXPECTED_DOCUMENT: tuple[DatasetModalitiesResponse, float] = (
+ {"modalities": ["document"]},
+ 1.0,
+)
@@ -358,0 +381,5 @@ def get_job_runner(
+ (
+ PDF_DATASET,
+ [UPSTREAM_RESPONSE_PDF_DATASET],
+ EXPECTED_DOCUMENT,
+ ),
|
|
2d2ed2cdda61471523b6fa6f793790c52780a954
|
Quentin Lhoest
| 2025-05-14T12:59:27 |
Set xet cache env var (#3194)
|
diff --git a/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py b/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
index 59c3925b..890e4ced 100644
--- a/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
+++ b/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
@@ -4,0 +5 @@ import logging
+import os
@@ -41,0 +43 @@ class JobRunnerWithDatasetsCache(JobRunnerWithCache):
+
@@ -42,0 +45 @@ class JobRunnerWithDatasetsCache(JobRunnerWithCache):
+ os.environ["HF_HUB_CACHE"] = str(cache_subdirectory / "hub")
@@ -44,0 +48 @@ class JobRunnerWithDatasetsCache(JobRunnerWithCache):
+ os.environ["HF_XET_CACHE"] = str(cache_subdirectory / "xet")
|
|
2ad0a8eff500d6554c4b6942ba9a5a868e9de180
|
Quentin Lhoest
| 2025-05-12T19:27:58 |
Set xet cache dir (#3192)
|
diff --git a/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py b/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
index 2e020640..59c3925b 100644
--- a/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
+++ b/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
@@ -43,0 +44,2 @@ class JobRunnerWithDatasetsCache(JobRunnerWithCache):
+ huggingface_hub.constants.HF_XET_CACHE = str(cache_subdirectory / "xet")
+ logging.debug(f"huggingface_hub xet cache set to: {huggingface_hub.constants.HF_XET_CACHE}")
diff --git a/services/worker/tests/job_runners/test__job_runner_with_datasets_cache.py b/services/worker/tests/job_runners/test__job_runner_with_datasets_cache.py
index 2c3d6cf8..816c16c7 100644
--- a/services/worker/tests/job_runners/test__job_runner_with_datasets_cache.py
+++ b/services/worker/tests/job_runners/test__job_runner_with_datasets_cache.py
@@ -79,0 +80 @@ def test_set_datasets_cache(app_config: AppConfig, get_job_runner: GetJobRunner)
+ assert Path(huggingface_hub.constants.HF_XET_CACHE).is_relative_to(dummy_path)
@@ -102,0 +104 @@ def assert_datasets_cache_path(path: Optional[Path], exists: bool) -> None:
+ xet_cache_path = path / "xet"
@@ -108,0 +111 @@ def assert_datasets_cache_path(path: Optional[Path], exists: bool) -> None:
+ assert huggingface_hub.constants.HF_XET_CACHE == str(xet_cache_path)
|
|
779164c5e66f0f97391dabb1684a5bb808acf34d
|
Quentin Lhoest
| 2025-05-07T15:35:45 |
Enable Xet: update datasets and hfh (#3190)
|
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index 1bdf6b08..da16b04b 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -627 +627 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -632,2 +632,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -637 +636,0 @@ files = [
-aiohttp = "*"
@@ -640 +639 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -652 +651 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -659 +658 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -661,0 +661 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -666,2 +666,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1186,0 +1187,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1233 +1253 @@ name = "huggingface-hub"
-version = "0.28.1"
+version = "0.31.1"
@@ -1238,2 +1258,2 @@ files = [
- {file = "huggingface_hub-0.28.1-py3-none-any.whl", hash = "sha256:aa6b9a3ffdae939b72c464dbb0d7f99f56e649b55c3d52406f49e0a5a620c0a7"},
- {file = "huggingface_hub-0.28.1.tar.gz", hash = "sha256:893471090c98e3b6efbdfdacafe4052b20b84d59866fb6f54c33d9af18c303ae"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1245,0 +1266 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1257,0 +1279 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1457 +1479 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1462 +1484 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index 28a6dbfb..884b8a29 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -565,2 +565,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -570 +569,0 @@ files = [
-aiohttp = "*"
@@ -573 +572 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -585 +584 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -592 +591 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -594,0 +594 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -599,2 +599,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -995,0 +996,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1019 +1039 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1024,2 +1044,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1031,0 +1052 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1043,0 +1065 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1140 +1162 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1145 +1167 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index b98508d1..2fe09105 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -565,2 +565,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -570 +569,0 @@ files = [
-aiohttp = "*"
@@ -573 +572 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -585 +584 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -592 +591 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -594,0 +594 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -599,2 +599,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -995,0 +996,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1019 +1039 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1024,2 +1044,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1031,0 +1052 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1043,0 +1065 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1140 +1162 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1145 +1167 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index f68c3571..0b6dd3ba 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -567 +567 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -572,2 +572,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -577 +576,0 @@ files = [
-aiohttp = "*"
@@ -580 +579 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -592 +591 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -599 +598 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -601,0 +601 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -606,2 +606,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1018,0 +1019,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1086 +1106 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1091,2 +1111,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1098,0 +1119 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1110,0 +1132 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1207 +1229 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1212 +1234 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index cdee6c14..a63cba06 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -596 +596 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -601,2 +601,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -606 +605,0 @@ files = [
-aiohttp = "*"
@@ -609 +608 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -621 +620 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -628 +627 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -630,0 +630 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -635,2 +635,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1042,0 +1043,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1111 +1131 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1116,2 +1136,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1123,0 +1144 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1135,0 +1157 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -4045 +4067 @@ python-versions = "3.9.18"
-content-hash = "bac0e506d6c65ea661d6e0c2ff54533283d2f1097afc81ee7e670a68f49f1a4e"
+content-hash = "f58989004f6d8e773a9c8673d4688f0e90c6ae3b021dc78c71e7bbc616682752"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index f8b9db22..93fe1ef2 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12 +12 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -17 +17 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index 56dd28cb..a7c91f0a 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -584 +583,0 @@ files = [
-aiohttp = "*"
@@ -587 +586 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -599 +598 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -606 +605 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -608,0 +608 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1020,0 +1021,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1088 +1108 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1093,2 +1113,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1100,0 +1121 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1112,0 +1134 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1231 +1253 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1236 +1258 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index 1fa388ee..434d4838 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -584 +583,0 @@ files = [
-aiohttp = "*"
@@ -587 +586 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -599 +598 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -606 +605 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -608,0 +608 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1020,0 +1021,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1088 +1108 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1093,2 +1113,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1100,0 +1121 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1112,0 +1134 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1250 +1272 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1255 +1277 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index 4d5c9ae4..cd753664 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -593 +593 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -598,2 +598,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -603 +602,0 @@ files = [
-aiohttp = "*"
@@ -606 +605 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -618 +617 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -625 +624 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -627,0 +627 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -632,2 +632,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1039,0 +1040,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1107 +1127 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1112,2 +1132,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1119,0 +1140 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1131,0 +1153 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1269 +1291 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1274 +1296 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index 0ded55db..5da497ae 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -584 +583,0 @@ files = [
-aiohttp = "*"
@@ -587 +586 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -599 +598 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -606 +605 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -608,0 +608 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1007,0 +1008,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1075 +1095 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1080,2 +1100,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1087,0 +1108 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1099,0 +1121 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1253 +1275 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1258 +1280 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index d3638e8d..441b706e 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -584 +583,0 @@ files = [
-aiohttp = "*"
@@ -587 +586 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -599 +598 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -606 +605 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -608,0 +608 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1007,0 +1008,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1133 +1153 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1138,2 +1158,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1145,0 +1166 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1157,0 +1179 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1276 +1298 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1281 +1303 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index de96bf72..77b2699b 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -584 +583,0 @@ files = [
-aiohttp = "*"
@@ -587 +586 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -599 +598 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -606 +605 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -608,0 +608 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1020,0 +1021,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1088 +1108 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1093,2 +1113,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1100,0 +1121 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1112,0 +1134 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1250 +1272 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1255 +1277 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index 6525780d..cb17e46a 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -882 +882 @@ name = "datasets"
-version = "3.4.1"
+version = "3.6.0"
@@ -887,2 +887,2 @@ files = [
- {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
- {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
+ {file = "datasets-3.6.0-py3-none-any.whl", hash = "sha256:25000c4a2c0873a710df127d08a202a06eab7bf42441a6bc278b499c2f72cd1b"},
+ {file = "datasets-3.6.0.tar.gz", hash = "sha256:1b2bf43b19776e2787e181cfd329cb0ca1a358ea014780c3581e0f276375e041"},
@@ -892 +891,0 @@ files = [
-aiohttp = "*"
@@ -895 +894 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+fsspec = {version = ">=2023.1.0,<=2025.3.0", extras = ["http"]}
@@ -907 +906 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+soxr = {version = ">=0.4.0", optional = true, markers = "extra == \"audio\""}
@@ -914 +913 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -916,0 +916 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
+pdfs = ["pdfplumber (>=0.11.4)"]
@@ -921,2 +921,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "aiohttp", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1376,0 +1377,20 @@ files = [
+[[package]]
+name = "hf-xet"
+version = "1.1.0"
+description = ""
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:0322c42551e275fcb7949c083a54a81b2898e50787c9aa74284fcb8d2c58c12c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:667153a0304ac2debf2af95a8ff7687186f885b493f4cd16344869af270cd110"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:995eeffb119636ea617b96c7d7bf3c3f5ea8727fa57974574e25d700b8532d48"},
+ {file = "hf_xet-1.1.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:3aee847da362393331f515c4010d0aaa1c2669acfcca1f4b28946d6949cc0086"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:68c5813a6074aa36e12ef5983230e3b03148cce61e0fcdd294096493795565b4"},
+ {file = "hf_xet-1.1.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:4ee9222bf9274b1c198b88a929de0b5a49349c4962d89c5b3b2f0f7f47d9761c"},
+ {file = "hf_xet-1.1.0-cp37-abi3-win_amd64.whl", hash = "sha256:73153eab9abf3d6973b21e94a67ccba5d595c3e12feb8c0bf50be02964e7f126"},
+ {file = "hf_xet-1.1.0.tar.gz", hash = "sha256:a7c2a4c2b6eee9ce0a1a367a82b60d95ba634420ef1c250addad7aa4af419cf4"},
+]
+
+[package.extras]
+tests = ["pytest"]
+
@@ -1400 +1420 @@ name = "huggingface-hub"
-version = "0.28.0"
+version = "0.31.1"
@@ -1405,2 +1425,2 @@ files = [
- {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
- {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
+ {file = "huggingface_hub-0.31.1-py3-none-any.whl", hash = "sha256:43f73124819b48b42d140cbc0d7a2e6bd15b2853b1b9d728d4d55ad1750cac5b"},
+ {file = "huggingface_hub-0.31.1.tar.gz", hash = "sha256:492bb5f545337aa9e2f59b75ef4c5f535a371e8958a6ce90af056387e67f1180"},
@@ -1412,0 +1433 @@ hf-transfer = {version = ">=0.1.4", optional = true, markers = "extra == \"hf-tr
+hf-xet = {version = ">=1.1.0,<2.0.0", markers = "platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"arm64\" or platform_machine == \"aarch64\""}
@@ -1424,0 +1446 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
+hf-xet = ["hf-xet (>=1.1.0,<2.0.0)"]
@@ -1654 +1676 @@ cryptography = "^43.0.1"
-datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+datasets = {version = "3.6.0", extras = ["audio", "vision"]}
@@ -1659 +1681 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.31.0", extras = ["hf-transfer"]}
|
|
488681eb6bf9650b7ccd57bf6c208c6c0e4ff38b
|
Quentin Lhoest
| 2025-05-05T16:50:58 |
Dont init duckdb cache in workers (#3189)
|
diff --git a/services/worker/src/worker/config.py b/services/worker/src/worker/config.py
index 896b8254..dd888d54 100644
--- a/services/worker/src/worker/config.py
+++ b/services/worker/src/worker/config.py
@@ -292,32 +291,0 @@ class SplitNamesConfig:
-DUCKDB_INDEX_CACHE_DIRECTORY = None
-DUCKDB_INDEX_COMMIT_MESSAGE = "Update duckdb index file"
-DUCKDB_INDEX_COMMITTER_HF_TOKEN = None
-DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES = 100_000_000
-DUCKDB_INDEX_TARGET_REVISION = "refs/convert/duckdb"
-DUCKDB_INDEX_URL_TEMPLATE = "/datasets/%s/resolve/%s/%s"
-DUCKDB_INDEX_EXTENSIONS_DIRECTORY: Optional[str] = None
-
-
-@dataclass(frozen=True)
-class DuckDbIndexConfig:
- cache_directory: Optional[str] = DUCKDB_INDEX_CACHE_DIRECTORY
- commit_message: str = DUCKDB_INDEX_COMMIT_MESSAGE
- target_revision: str = DUCKDB_INDEX_TARGET_REVISION
- url_template: str = DUCKDB_INDEX_URL_TEMPLATE
- max_split_size_bytes: int = DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES
- extensions_directory: Optional[str] = DUCKDB_INDEX_EXTENSIONS_DIRECTORY
-
- @classmethod
- def from_env(cls) -> "DuckDbIndexConfig":
- env = Env(expand_vars=True)
- with env.prefixed("DUCKDB_INDEX_"):
- return cls(
- cache_directory=env.str(name="CACHE_DIRECTORY", default=DUCKDB_INDEX_CACHE_DIRECTORY),
- commit_message=env.str(name="COMMIT_MESSAGE", default=DUCKDB_INDEX_COMMIT_MESSAGE),
- target_revision=env.str(name="TARGET_REVISION", default=DUCKDB_INDEX_TARGET_REVISION),
- url_template=env.str(name="URL_TEMPLATE", default=DUCKDB_INDEX_URL_TEMPLATE),
- max_split_size_bytes=env.int(name="MAX_SPLIT_SIZE_BYTES", default=DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES),
- extensions_directory=env.str(name="EXTENSIONS_DIRECTORY", default=DUCKDB_INDEX_EXTENSIONS_DIRECTORY),
- )
-
-
@@ -367 +334,0 @@ class AppConfig:
- duckdb_index: DuckDbIndexConfig = field(default_factory=DuckDbIndexConfig)
@@ -391 +357,0 @@ class AppConfig:
- duckdb_index=DuckDbIndexConfig.from_env(),
diff --git a/services/worker/src/worker/dtos.py b/services/worker/src/worker/dtos.py
index da04930e..7f0aa7d6 100644
--- a/services/worker/src/worker/dtos.py
+++ b/services/worker/src/worker/dtos.py
@@ -233,58 +232,0 @@ class ConfigSizeResponse(TypedDict):
-class SplitDuckdbIndex(SplitHubFile):
- features: Optional[dict[str, Any]]
- # The following fields can be None in old cache entries
- partial: Optional[bool]
- num_rows: Optional[int]
- num_bytes: Optional[int]
- duckdb_version: str
- # None means that full-text search is not supported
- stemmer: Optional[str]
-
-
-class SplitDuckdbIndexSize(TypedDict):
- dataset: str
- config: str
- split: str
- has_fts: bool
- num_rows: int
- num_bytes: int
-
-
-class ConfigDuckdbIndexSize(TypedDict):
- dataset: str
- config: str
- has_fts: bool
- num_rows: int
- num_bytes: int
-
-
-class ConfigDuckdbIndexSizeContent(TypedDict):
- config: ConfigDuckdbIndexSize
- splits: list[SplitDuckdbIndexSize]
-
-
-class ConfigDuckdbIndexSizeResponse(TypedDict):
- size: ConfigDuckdbIndexSizeContent
- partial: bool
-
-
-class DatasetDuckdbIndexSize(TypedDict):
- dataset: str
- has_fts: bool
- num_rows: int
- num_bytes: int
-
-
-class DatasetDuckdbIndexSizeContent(TypedDict):
- dataset: DatasetDuckdbIndexSize
- configs: list[ConfigDuckdbIndexSize]
- splits: list[SplitDuckdbIndexSize]
-
-
-class DatasetDuckdbIndexSizeResponse(TypedDict):
- size: DatasetDuckdbIndexSizeContent
- pending: list[PreviousJob]
- failed: list[PreviousJob]
- partial: bool
-
-
diff --git a/services/worker/src/worker/job_runner_factory.py b/services/worker/src/worker/job_runner_factory.py
index d369172d..c541b353 100644
--- a/services/worker/src/worker/job_runner_factory.py
+++ b/services/worker/src/worker/job_runner_factory.py
@@ -76 +75,0 @@ class JobRunnerFactory(BaseJobRunnerFactory):
- duckdb_index_cache_directory: StrPath
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index 450f6c15..9e9f965b 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -1155,3 +1155 @@ def get_delete_operations(
- # 2. duckdb files belonging to any config
- # 3. .gitattributes
- pattern_in_any_config_dir = re.compile(f"^({'|'.join(re.escape(conf) for conf in config_names)})/")
+ # 2. .gitattributes
@@ -1162,4 +1160 @@ def get_delete_operations(
- file
- for file in all_repo_files
- if (pattern_in_any_other_config_dir.match(file) and file.endswith(".parquet"))
- or (pattern_in_any_config_dir.match(file) and file.endswith(".duckdb"))
+ file for file in all_repo_files if pattern_in_any_other_config_dir.match(file) and file.endswith(".parquet")
diff --git a/services/worker/src/worker/main.py b/services/worker/src/worker/main.py
index c62dc415..eabfc7e9 100644
--- a/services/worker/src/worker/main.py
+++ b/services/worker/src/worker/main.py
@@ -9 +8,0 @@ from libcommon.storage import (
- init_duckdb_index_cache_dir,
@@ -33 +31,0 @@ if __name__ == "__main__":
- duckdb_index_cache_directory = init_duckdb_index_cache_dir(directory=app_config.duckdb_index.cache_directory)
@@ -67 +64,0 @@ if __name__ == "__main__":
- duckdb_index_cache_directory=duckdb_index_cache_directory,
diff --git a/services/worker/src/worker/start_worker_loop.py b/services/worker/src/worker/start_worker_loop.py
index 2f59e91f..87888a27 100644
--- a/services/worker/src/worker/start_worker_loop.py
+++ b/services/worker/src/worker/start_worker_loop.py
@@ -9 +8,0 @@ from libcommon.storage import (
- init_duckdb_index_cache_dir,
@@ -32 +30,0 @@ if __name__ == "__main__":
- duckdb_index_cache_directory = init_duckdb_index_cache_dir(directory=app_config.duckdb_index.cache_directory)
@@ -66 +63,0 @@ if __name__ == "__main__":
- duckdb_index_cache_directory=duckdb_index_cache_directory,
diff --git a/services/worker/tests/conftest.py b/services/worker/tests/conftest.py
index 20d139b1..41201d09 100644
--- a/services/worker/tests/conftest.py
+++ b/services/worker/tests/conftest.py
@@ -12 +11,0 @@ from libcommon.storage import (
- init_duckdb_index_cache_dir,
@@ -153,5 +151,0 @@ def parquet_metadata_directory(app_config: AppConfig) -> StrPath:
-@fixture
-def duckdb_index_cache_directory(app_config: AppConfig) -> StrPath:
- return init_duckdb_index_cache_dir(app_config.duckdb_index.cache_directory)
-
-
diff --git a/services/worker/tests/job_runners/config/test_parquet_and_info.py b/services/worker/tests/job_runners/config/test_parquet_and_info.py
index 98a40fa0..99719ad8 100644
--- a/services/worker/tests/job_runners/config/test_parquet_and_info.py
+++ b/services/worker/tests/job_runners/config/test_parquet_and_info.py
@@ -551 +551 @@ def test_concurrency(
- {"dummy", "c1/dummy", "c1/0.parquet", "c2/0.parquet", "c1/index.duckdb"},
+ {"dummy", "c1/dummy", "c1/0.parquet", "c2/0.parquet"},
@@ -558 +558 @@ def test_concurrency(
- {"dummy", "c1/dummy", "c1/0.parquet", "c2/0.parquet", "c1/index.duckdb"},
+ {"dummy", "c1/dummy", "c1/0.parquet", "c2/0.parquet"},
diff --git a/services/worker/tests/job_runners/split/test_is_valid.py b/services/worker/tests/job_runners/split/test_is_valid.py
index ecbb225d..003159eb 100644
--- a/services/worker/tests/job_runners/split/test_is_valid.py
+++ b/services/worker/tests/job_runners/split/test_is_valid.py
@@ -91 +91 @@ UPSTREAM_RESPONSE_SPLIT_DUCKDB_INDEX_ERROR: UpstreamResponse = UpstreamResponse(
- kind="split-duckdb-index",
+ kind="config-parquet-metadata",
@@ -95 +94,0 @@ UPSTREAM_RESPONSE_SPLIT_DUCKDB_INDEX_ERROR: UpstreamResponse = UpstreamResponse(
- split=SPLIT,
diff --git a/services/worker/tests/test_executor.py b/services/worker/tests/test_executor.py
index 8127413c..bebeb8e5 100644
--- a/services/worker/tests/test_executor.py
+++ b/services/worker/tests/test_executor.py
@@ -205 +204,0 @@ def job_runner_factory(
- duckdb_index_cache_directory: StrPath,
@@ -219 +217,0 @@ def job_runner_factory(
- duckdb_index_cache_directory=duckdb_index_cache_directory,
diff --git a/services/worker/tests/test_job_runner_factory.py b/services/worker/tests/test_job_runner_factory.py
index 85b1a622..6233bc2d 100644
--- a/services/worker/tests/test_job_runner_factory.py
+++ b/services/worker/tests/test_job_runner_factory.py
@@ -46 +45,0 @@ def test_create_job_runner(
- duckdb_index_cache_directory: StrPath,
@@ -63 +61,0 @@ def test_create_job_runner(
- duckdb_index_cache_directory=duckdb_index_cache_directory,
|
|
3b46049c65031ce53b01ea27e9f9d9fb25a97706
|
Quentin Lhoest
| 2025-05-05T14:47:32 |
Remove duckdb jobs altogether (#3188)
|
diff --git a/chart/templates/_env/_envWorker.tpl b/chart/templates/_env/_envWorker.tpl
index 9bb2e2e2..7b1d1c9d 100644
--- a/chart/templates/_env/_envWorker.tpl
+++ b/chart/templates/_env/_envWorker.tpl
@@ -73,13 +72,0 @@
-# specific to 'split-duckdb-index' job runner
-- name: DUCKDB_INDEX_COMMIT_MESSAGE
- value: {{ .Values.duckDBIndex.commitMessage | quote }}
-- name: DUCKDB_INDEX_TARGET_REVISION
- value: {{ .Values.duckDBIndex.targetRevision | quote }}
-- name: DUCKDB_INDEX_URL_TEMPLATE
- value: {{ .Values.duckDBIndex.urlTemplate | quote }}
-- name: DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES
- value: {{ .Values.duckDBIndex.maxSplitSizeBytes | quote }}
-- name: DUCKDB_INDEX_CACHE_DIRECTORY
- value: {{ .Values.duckDBIndex.workerDirectory | quote }}
-- name: DUCKDB_INDEX_EXTENSIONS_DIRECTORY
- value: "/tmp/duckdb-extensions"
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 4eb3de01..8a0b6f87 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -5 +4,0 @@ import asyncio
-import errno
@@ -22 +21 @@ from huggingface_hub import HfApi
-from libcommon.constants import CONFIG_PARQUET_METADATA_KIND, PARQUET_REVISION, ROW_IDX_COLUMN, SPLIT_DUCKDB_INDEX_KIND
+from libcommon.constants import CONFIG_PARQUET_METADATA_KIND, PARQUET_REVISION, ROW_IDX_COLUMN
@@ -83,38 +81,0 @@ def create_task(awaitable: Coroutine[None, None, T]) -> asyncio.Task[T]:
-async def get_index_file_location_and_download_if_missing(
- duckdb_index_file_directory: StrPath,
- dataset: str,
- revision: str,
- config: str,
- split: str,
- filename: str,
- size_bytes: int,
- url: str,
- target_revision: str,
- hf_token: Optional[str],
-) -> str:
- with StepProfiler(method="get_index_file_location_and_download_if_missing", step="all"):
- index_folder = get_download_folder(duckdb_index_file_directory, size_bytes, dataset, config, split, revision)
- # For directories like "partial-train" for the file
- # at "en/partial-train/0000.parquet" in the C4 dataset.
- # Note that "-" is forbidden for split names, so it doesn't create directory names collisions.
- split_directory = extract_split_directory_from_parquet_url(url)
- repo_file_location = f"{config}/{split_directory}/{filename}"
- index_file_location = f"{index_folder}/{repo_file_location}"
- index_path = anyio.Path(index_file_location)
- if not await index_path.is_file():
- with StepProfiler(method="get_index_file_location_and_download_if_missing", step="download index file"):
- cache_folder = f"{duckdb_index_file_directory}/{HUB_DOWNLOAD_CACHE_FOLDER}"
- await anyio.to_thread.run_sync(
- download_index_file,
- cache_folder,
- index_folder,
- target_revision,
- dataset,
- repo_file_location,
- hf_token,
- )
- # Update its modification time
- await index_path.touch()
- return index_file_location
-
-
@@ -332,49 +292,0 @@ def check_available_disk_space(path: StrPath, required_space: int) -> None:
-def download_index_file(
- cache_folder: str,
- index_folder: str,
- target_revision: str,
- dataset: str,
- repo_file_location: str,
- hf_token: Optional[str] = None,
-) -> None:
- logging.info(f"init_dir {index_folder}")
- try:
- download_file_from_hub(
- repo_type=REPO_TYPE,
- revision=target_revision,
- repo_id=dataset,
- filename=repo_file_location,
- local_dir=index_folder,
- hf_token=hf_token,
- cache_dir=cache_folder,
- )
- except OSError as err:
- if err.errno == errno.ENOSPC:
- raise DownloadIndexError(
- "Cannot perform the operation due to a lack of disk space on the server. Please report the issue.", err
- )
-
-
-def get_cache_entry_from_duckdb_index_job(
- dataset: str,
- config: str,
- split: str,
- hf_endpoint: str,
- hf_token: Optional[str],
- hf_timeout_seconds: Optional[float],
- blocked_datasets: list[str],
- storage_clients: Optional[list[StorageClient]] = None,
-) -> CacheEntry:
- return get_cache_entry_from_step(
- processing_step_name=SPLIT_DUCKDB_INDEX_KIND,
- dataset=dataset,
- config=config,
- split=split,
- hf_endpoint=hf_endpoint,
- hf_token=hf_token,
- hf_timeout_seconds=hf_timeout_seconds,
- blocked_datasets=blocked_datasets,
- storage_clients=storage_clients,
- )
-
-
diff --git a/libs/libapi/tests/test_duckdb.py b/libs/libapi/tests/test_duckdb.py
index a0fecd67..427b36e3 100644
--- a/libs/libapi/tests/test_duckdb.py
+++ b/libs/libapi/tests/test_duckdb.py
@@ -1 +0,0 @@
-from pathlib import Path
@@ -3 +1,0 @@ from typing import Optional
-from unittest.mock import patch
@@ -8 +6 @@ from pytest import TempPathFactory
-from libapi.duckdb import check_available_disk_space, get_index_file_location_and_download_if_missing
+from libapi.duckdb import check_available_disk_space
@@ -10,50 +8 @@ from libapi.duckdb import check_available_disk_space, get_index_file_location_an
-
[email protected]("partial_index", [False, True])
[email protected]("partial_split", [False, True])
-async def test_get_index_file_location_and_download_if_missing(
- partial_split: bool, partial_index: bool, tmp_path_factory: TempPathFactory
-) -> None:
- duckdb_index_file_directory = (
- tmp_path_factory.mktemp("test_get_index_file_location_and_download_if_missing") / "duckdb"
- )
- duckdb_index_file_directory.mkdir(parents=True, exist_ok=True)
-
- dataset = "dataset"
- revision = "revision"
- target_revision = "refs/convert/duckdb"
- config = "config"
- split = "split"
- default_filename = "index.duckdb"
- split_directory = f"partial-{split}" if partial_split else split
- filename = f"partial-{default_filename}" if partial_index else default_filename
- url = f"https://foo.bar/{dataset}/{target_revision}/resolve/{config}/{split_directory}/{filename}"
-
- def download_index_file(
- cache_folder: str,
- index_folder: str,
- target_revision: str,
- dataset: str,
- repo_file_location: str,
- hf_token: Optional[str] = None,
- ) -> None:
- Path(index_folder, repo_file_location).parent.mkdir(parents=True, exist_ok=True)
- Path(index_folder, repo_file_location).touch()
-
- expected_repo_file_location = f"{config}/{split_directory}/{filename}"
- with patch("libapi.duckdb.download_index_file", side_effect=download_index_file) as download_mock:
- await get_index_file_location_and_download_if_missing(
- duckdb_index_file_directory=duckdb_index_file_directory,
- dataset=dataset,
- config=config,
- split=split,
- revision=revision,
- filename=filename,
- size_bytes=100,
- url=url,
- target_revision=target_revision,
- hf_token=None,
- )
- download_mock.assert_called_once()
- args, kwargs = download_mock.call_args
- assert not args
- assert kwargs["repo_file_location"] == expected_repo_file_location
+# TODO(QL): test duckdb indexing
diff --git a/libs/libcommon/src/libcommon/constants.py b/libs/libcommon/src/libcommon/constants.py
index 731d670e..b42e5feb 100644
--- a/libs/libcommon/src/libcommon/constants.py
+++ b/libs/libcommon/src/libcommon/constants.py
@@ -70 +69,0 @@ DATASET_INFO_KIND = "dataset-info"
-SPLIT_DUCKDB_INDEX_KIND = "split-duckdb-index"
@@ -72 +70,0 @@ SPLIT_HAS_PREVIEW_KIND = "split-first-rows"
-SPLIT_HAS_SEARCH_KIND = "split-duckdb-index"
diff --git a/libs/libcommon/src/libcommon/processing_graph.py b/libs/libcommon/src/libcommon/processing_graph.py
index 10805df0..f65d6972 100644
--- a/libs/libcommon/src/libcommon/processing_graph.py
+++ b/libs/libcommon/src/libcommon/processing_graph.py
@@ -592 +592 @@ specification: ProcessingGraphSpecification = {
- "split-duckdb-index",
+ "config-parquet-metadata",
@@ -667,25 +666,0 @@ specification: ProcessingGraphSpecification = {
- "split-duckdb-index": {
- "input_type": "split",
- "triggered_by": "config-parquet-metadata",
- "job_runner_version": 3,
- "difficulty": 70,
- "bonus_difficulty_if_dataset_is_big": 20,
- },
- "config-duckdb-index-size": {
- "input_type": "config",
- "triggered_by": [
- "config-split-names", # required in case the config has no splits (error in previous step)
- "split-duckdb-index",
- ],
- "job_runner_version": 2,
- "difficulty": 20,
- },
- "dataset-duckdb-index-size": {
- "input_type": "dataset",
- "triggered_by": [
- "dataset-config-names", # required in case the dataset has no configs (error in previous step)
- "config-duckdb-index-size",
- ],
- "job_runner_version": 1,
- "difficulty": 20,
- },
diff --git a/libs/libcommon/tests/test_backfill_on_real_graph.py b/libs/libcommon/tests/test_backfill_on_real_graph.py
index 5d8bea64..4f51c24b 100644
--- a/libs/libcommon/tests/test_backfill_on_real_graph.py
+++ b/libs/libcommon/tests/test_backfill_on_real_graph.py
@@ -53 +52,0 @@ def test_plan_job_creation_and_termination() -> None:
- "dataset-duckdb-index-size,dataset,revision",
@@ -74 +73 @@ def test_plan_job_creation_and_termination() -> None:
- tasks=["CreateJobs,14"],
+ tasks=["CreateJobs,13"],
@@ -92 +90,0 @@ def test_plan_job_creation_and_termination() -> None:
- "dataset-duckdb-index-size,dataset,revision",
@@ -114 +111,0 @@ def test_plan_job_creation_and_termination() -> None:
- "dataset-duckdb-index-size,dataset,revision",
@@ -162,2 +158,0 @@ def test_plan_job_creation_and_termination() -> None:
- "config-duckdb-index-size,dataset,revision,config1",
- "config-duckdb-index-size,dataset,revision,config2",
@@ -180 +174,0 @@ def test_plan_job_creation_and_termination() -> None:
- "dataset-duckdb-index-size,dataset,revision",
@@ -201 +194,0 @@ def test_plan_job_creation_and_termination() -> None:
- "dataset-duckdb-index-size,dataset,revision",
@@ -216 +209 @@ def test_plan_job_creation_and_termination() -> None:
- tasks=["CreateJobs,18"],
+ tasks=["CreateJobs,16"],
diff --git a/libs/libcommon/tests/test_operations.py b/libs/libcommon/tests/test_operations.py
index aa785bb8..c132b02e 100644
--- a/libs/libcommon/tests/test_operations.py
+++ b/libs/libcommon/tests/test_operations.py
@@ -431 +431 @@ def test_2274_only_first_steps(
- assert len(queue.get_pending_jobs_df(dataset=dataset)) == 8
+ assert len(queue.get_pending_jobs_df(dataset=dataset)) == 7
diff --git a/libs/libcommon/tests/test_processing_graph.py b/libs/libcommon/tests/test_processing_graph.py
index 71175677..7e6d7261 100644
--- a/libs/libcommon/tests/test_processing_graph.py
+++ b/libs/libcommon/tests/test_processing_graph.py
@@ -58 +57,0 @@ def test_graph() -> None:
- "dataset-duckdb-index-size",
@@ -82 +80,0 @@ def test_graph() -> None:
- "config-duckdb-index-size",
@@ -128 +126 @@ def test_graph() -> None:
- ["split-first-rows", "split-duckdb-index", "split-descriptive-statistics", "split-presidio-scan"],
+ ["split-first-rows", "split-is-valid", "split-descriptive-statistics", "split-presidio-scan"],
@@ -203 +200,0 @@ def test_graph() -> None:
- "split-duckdb-index",
@@ -313,40 +309,0 @@ def test_graph() -> None:
- (
- "split-duckdb-index",
- ["config-duckdb-index-size", "split-is-valid"],
- ["config-parquet-metadata"],
- [
- "config-parquet",
- "config-parquet-and-info",
- "config-parquet-metadata",
- "dataset-config-names",
- ],
- ),
- (
- "config-duckdb-index-size",
- ["dataset-duckdb-index-size"],
- ["split-duckdb-index", "config-split-names"],
- [
- "config-split-names",
- "config-parquet",
- "config-parquet-and-info",
- "config-parquet-metadata",
- "config-info",
- "dataset-config-names",
- "split-duckdb-index",
- ],
- ),
- (
- "dataset-duckdb-index-size",
- [],
- ["config-duckdb-index-size", "dataset-config-names"],
- [
- "config-duckdb-index-size",
- "config-split-names",
- "config-parquet",
- "config-parquet-and-info",
- "config-parquet-metadata",
- "config-info",
- "dataset-config-names",
- "split-duckdb-index",
- ],
- ),
@@ -383 +339,0 @@ def test_graph() -> None:
- "split-duckdb-index",
@@ -393 +349 @@ def test_graph() -> None:
- ["split-first-rows", "split-duckdb-index", "split-descriptive-statistics", "config-size"],
+ ["split-first-rows", "config-parquet-metadata", "split-descriptive-statistics", "config-size"],
@@ -402 +357,0 @@ def test_graph() -> None:
- "split-duckdb-index",
@@ -419 +373,0 @@ def test_graph() -> None:
- "split-duckdb-index",
diff --git a/services/search/src/search/app.py b/services/search/src/search/app.py
index ee535cc8..e3b41ee2 100644
--- a/services/search/src/search/app.py
+++ b/services/search/src/search/app.py
@@ -103 +102,0 @@ def create_app_with_config(app_config: AppConfig) -> Starlette:
- target_revision=app_config.duckdb_index.target_revision,
@@ -123 +121,0 @@ def create_app_with_config(app_config: AppConfig) -> Starlette:
- target_revision=app_config.duckdb_index.target_revision,
diff --git a/services/search/src/search/config.py b/services/search/src/search/config.py
index dc5557a2..27ed5a51 100644
--- a/services/search/src/search/config.py
+++ b/services/search/src/search/config.py
@@ -25 +24,0 @@ DUCKDB_INDEX_CACHE_EXPIRED_TIME_INTERVAL_SECONDS = 3_600 # 1 hour
-DUCKDB_INDEX_TARGET_REVISION = "refs/convert/duckdb"
@@ -34 +32,0 @@ class DuckDbIndexConfig:
- target_revision: str = DUCKDB_INDEX_TARGET_REVISION
@@ -50 +47,0 @@ class DuckDbIndexConfig:
- target_revision=env.str(name="TARGET_REVISION", default=DUCKDB_INDEX_TARGET_REVISION),
diff --git a/services/search/src/search/routes/filter.py b/services/search/src/search/routes/filter.py
index 763fb3e4..123dd288 100644
--- a/services/search/src/search/routes/filter.py
+++ b/services/search/src/search/routes/filter.py
@@ -7 +6,0 @@ import re
-from fnmatch import fnmatch
@@ -17 +15,0 @@ from libapi.duckdb import (
- get_cache_entry_from_duckdb_index_job,
@@ -20 +17,0 @@ from libapi.duckdb import (
- get_index_file_location_and_download_if_missing,
@@ -36,5 +32,0 @@ from libcommon.constants import ROW_IDX_COLUMN
-from libcommon.duckdb_utils import (
- DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS,
- DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH,
- duckdb_index_is_partial,
-)
@@ -71 +62,0 @@ def create_filter_endpoint(
- target_revision: str,
@@ -116,75 +106,0 @@ def create_filter_endpoint(
- if (
- any(fnmatch(dataset, pat) for pat in DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS)
- or len(dataset.split("/")[0]) >= DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH
- ):
- with StepProfiler(method="filter_endpoint", step="build index if missing"):
- # get parquet urls and dataset_info
- parquet_metadata_response = get_cache_entry_from_parquet_metadata_job(
- dataset=dataset,
- config=config,
- hf_endpoint=hf_endpoint,
- hf_token=hf_token,
- hf_timeout_seconds=hf_timeout_seconds,
- blocked_datasets=blocked_datasets,
- storage_clients=storage_clients,
- )
- revision = parquet_metadata_response["dataset_git_revision"]
- if parquet_metadata_response["http_status"] != HTTPStatus.OK:
- return get_json_error_response(
- content=parquet_metadata_response["content"],
- status_code=parquet_metadata_response["http_status"],
- max_age=max_age_short,
- error_code=parquet_metadata_response["error_code"],
- revision=revision,
- )
- content_parquet_metadata = parquet_metadata_response["content"]
- split_parquet_files = [
- parquet_file
- for parquet_file in content_parquet_metadata["parquet_files_metadata"]
- if parquet_file["config"] == config and parquet_file["split"] == split
- ]
- index_file_location, partial = await get_index_file_location_and_build_if_missing(
- duckdb_index_file_directory=duckdb_index_file_directory,
- dataset=dataset,
- config=config,
- split=split,
- revision=revision,
- hf_token=hf_token,
- max_split_size_bytes=max_split_size_bytes,
- extensions_directory=extensions_directory,
- parquet_metadata_directory=parquet_metadata_directory,
- split_parquet_files=split_parquet_files,
- features=content_parquet_metadata["features"],
- )
- # features must contain the row idx column for full_text_search
- features = Features.from_dict(content_parquet_metadata["features"])
- features[ROW_IDX_COLUMN] = Value("int64")
- else:
- with StepProfiler(method="filter_endpoint", step="validate indexing was done"):
- # no cache data is needed to download the index file
- # but will help to validate if indexing was done
- duckdb_index_cache_entry = get_cache_entry_from_duckdb_index_job(
- dataset=dataset,
- config=config,
- split=split,
- hf_endpoint=hf_endpoint,
- hf_token=hf_token,
- hf_timeout_seconds=hf_timeout_seconds,
- blocked_datasets=blocked_datasets,
- storage_clients=storage_clients,
- )
- revision = duckdb_index_cache_entry["dataset_git_revision"]
- if duckdb_index_cache_entry["http_status"] != HTTPStatus.OK:
- return get_json_error_response(
- content=duckdb_index_cache_entry["content"],
- status_code=duckdb_index_cache_entry["http_status"],
- max_age=max_age_short,
- error_code=duckdb_index_cache_entry["error_code"],
- revision=revision,
- )
-
- # check if the index is on the full dataset or if it's partial
- url = duckdb_index_cache_entry["content"]["url"]
- filename = duckdb_index_cache_entry["content"]["filename"]
- index_size = duckdb_index_cache_entry["content"]["size"]
- partial = duckdb_index_is_partial(url)
@@ -192,6 +108,18 @@ def create_filter_endpoint(
- with StepProfiler(method="filter_endpoint", step="download index file if missing"):
- index_file_location = await get_index_file_location_and_download_if_missing(
- duckdb_index_file_directory=duckdb_index_file_directory,
- dataset=dataset,
- config=config,
- split=split,
+ with StepProfiler(method="filter_endpoint", step="build index if missing"):
+ # get parquet urls and dataset_info
+ parquet_metadata_response = get_cache_entry_from_parquet_metadata_job(
+ dataset=dataset,
+ config=config,
+ hf_endpoint=hf_endpoint,
+ hf_token=hf_token,
+ hf_timeout_seconds=hf_timeout_seconds,
+ blocked_datasets=blocked_datasets,
+ storage_clients=storage_clients,
+ )
+ revision = parquet_metadata_response["dataset_git_revision"]
+ if parquet_metadata_response["http_status"] != HTTPStatus.OK:
+ return get_json_error_response(
+ content=parquet_metadata_response["content"],
+ status_code=parquet_metadata_response["http_status"],
+ max_age=max_age_short,
+ error_code=parquet_metadata_response["error_code"],
@@ -199,5 +126,0 @@ def create_filter_endpoint(
- filename=filename,
- size_bytes=index_size,
- url=url,
- target_revision=target_revision,
- hf_token=hf_token,
@@ -205,3 +128,22 @@ def create_filter_endpoint(
- with StepProfiler(method="filter_endpoint", step="get features"):
- # features contain the row idx column
- features = Features.from_dict(duckdb_index_cache_entry["content"]["features"])
+ content_parquet_metadata = parquet_metadata_response["content"]
+ split_parquet_files = [
+ parquet_file
+ for parquet_file in content_parquet_metadata["parquet_files_metadata"]
+ if parquet_file["config"] == config and parquet_file["split"] == split
+ ]
+ index_file_location, partial = await get_index_file_location_and_build_if_missing(
+ duckdb_index_file_directory=duckdb_index_file_directory,
+ dataset=dataset,
+ config=config,
+ split=split,
+ revision=revision,
+ hf_token=hf_token,
+ max_split_size_bytes=max_split_size_bytes,
+ extensions_directory=extensions_directory,
+ parquet_metadata_directory=parquet_metadata_directory,
+ split_parquet_files=split_parquet_files,
+ features=content_parquet_metadata["features"],
+ )
+ # features must contain the row idx column for full_text_search
+ features = Features.from_dict(content_parquet_metadata["features"])
+ features[ROW_IDX_COLUMN] = Value("int64")
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index 9cad438a..51c83d68 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -6 +5,0 @@ import random
-from fnmatch import fnmatch
@@ -15 +13,0 @@ from libapi.duckdb import (
- get_cache_entry_from_duckdb_index_job,
@@ -18 +15,0 @@ from libapi.duckdb import (
- get_index_file_location_and_download_if_missing,
@@ -22 +18,0 @@ from libapi.exceptions import (
- SearchFeatureNotAvailableError,
@@ -39,5 +34,0 @@ from libcommon.dtos import PaginatedResponse
-from libcommon.duckdb_utils import (
- DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS,
- DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH,
- duckdb_index_is_partial,
-)
@@ -132 +122,0 @@ def create_search_endpoint(
- target_revision: str,
@@ -173,84 +163,18 @@ def create_search_endpoint(
- if (
- any(fnmatch(dataset, pat) for pat in DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS)
- or len(dataset.split("/")[0]) >= DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH
- ):
- with StepProfiler(method="filter_endpoint", step="build index if missing"):
- # get parquet urls and dataset_info
- parquet_metadata_response = get_cache_entry_from_parquet_metadata_job(
- dataset=dataset,
- config=config,
- hf_endpoint=hf_endpoint,
- hf_token=hf_token,
- hf_timeout_seconds=hf_timeout_seconds,
- blocked_datasets=blocked_datasets,
- storage_clients=storage_clients,
- )
- revision = parquet_metadata_response["dataset_git_revision"]
- if parquet_metadata_response["http_status"] != HTTPStatus.OK:
- return get_json_error_response(
- content=parquet_metadata_response["content"],
- status_code=parquet_metadata_response["http_status"],
- max_age=max_age_short,
- error_code=parquet_metadata_response["error_code"],
- revision=revision,
- )
- content_parquet_metadata = parquet_metadata_response["content"]
- split_parquet_files = [
- parquet_file
- for parquet_file in content_parquet_metadata["parquet_files_metadata"]
- if parquet_file["config"] == config and parquet_file["split"] == split
- ]
- index_file_location, partial = await get_index_file_location_and_build_if_missing(
- duckdb_index_file_directory=duckdb_index_file_directory,
- dataset=dataset,
- config=config,
- split=split,
- revision=revision,
- hf_token=hf_token,
- max_split_size_bytes=max_split_size_bytes,
- extensions_directory=extensions_directory,
- parquet_metadata_directory=parquet_metadata_directory,
- split_parquet_files=split_parquet_files,
- features=content_parquet_metadata["features"],
- )
- # features must contain the row idx column for full_text_search
- features = Features.from_dict(content_parquet_metadata["features"])
- features[ROW_IDX_COLUMN] = Value("int64")
- else:
- with StepProfiler(method="search_endpoint", step="validate indexing was done"):
- # no cache data is needed to download the index file
- # but will help to validate if indexing was done
- duckdb_index_cache_entry = get_cache_entry_from_duckdb_index_job(
- dataset=dataset,
- config=config,
- split=split,
- hf_endpoint=hf_endpoint,
- hf_token=hf_token,
- hf_timeout_seconds=hf_timeout_seconds,
- blocked_datasets=blocked_datasets,
- storage_clients=storage_clients,
- )
- revision = duckdb_index_cache_entry["dataset_git_revision"]
- if duckdb_index_cache_entry["http_status"] != HTTPStatus.OK:
- return get_json_error_response(
- content=duckdb_index_cache_entry["content"],
- status_code=duckdb_index_cache_entry["http_status"],
- max_age=max_age_short,
- error_code=duckdb_index_cache_entry["error_code"],
- revision=revision,
- )
- if duckdb_index_cache_entry["content"]["stemmer"] is None:
- raise SearchFeatureNotAvailableError("The split does not have search feature enabled.")
-
- # check if the index is on the full dataset or if it's partial
- url = duckdb_index_cache_entry["content"]["url"]
- filename = duckdb_index_cache_entry["content"]["filename"]
- index_size = duckdb_index_cache_entry["content"]["size"]
- partial = duckdb_index_is_partial(url)
-
- with StepProfiler(method="search_endpoint", step="download index file if missing"):
- index_file_location = await get_index_file_location_and_download_if_missing(
- duckdb_index_file_directory=duckdb_index_file_directory,
- dataset=dataset,
- config=config,
- split=split,
+ with StepProfiler(method="filter_endpoint", step="build index if missing"):
+ # get parquet urls and dataset_info
+ parquet_metadata_response = get_cache_entry_from_parquet_metadata_job(
+ dataset=dataset,
+ config=config,
+ hf_endpoint=hf_endpoint,
+ hf_token=hf_token,
+ hf_timeout_seconds=hf_timeout_seconds,
+ blocked_datasets=blocked_datasets,
+ storage_clients=storage_clients,
+ )
+ revision = parquet_metadata_response["dataset_git_revision"]
+ if parquet_metadata_response["http_status"] != HTTPStatus.OK:
+ return get_json_error_response(
+ content=parquet_metadata_response["content"],
+ status_code=parquet_metadata_response["http_status"],
+ max_age=max_age_short,
+ error_code=parquet_metadata_response["error_code"],
@@ -258,5 +181,0 @@ def create_search_endpoint(
- filename=filename,
- size_bytes=index_size,
- url=url,
- target_revision=target_revision,
- hf_token=hf_token,
@@ -264,3 +183,22 @@ def create_search_endpoint(
- with StepProfiler(method="search_endpoint", step="get features"):
- # features contain the row idx column
- features = Features.from_dict(duckdb_index_cache_entry["content"]["features"])
+ content_parquet_metadata = parquet_metadata_response["content"]
+ split_parquet_files = [
+ parquet_file
+ for parquet_file in content_parquet_metadata["parquet_files_metadata"]
+ if parquet_file["config"] == config and parquet_file["split"] == split
+ ]
+ index_file_location, partial = await get_index_file_location_and_build_if_missing(
+ duckdb_index_file_directory=duckdb_index_file_directory,
+ dataset=dataset,
+ config=config,
+ split=split,
+ revision=revision,
+ hf_token=hf_token,
+ max_split_size_bytes=max_split_size_bytes,
+ extensions_directory=extensions_directory,
+ parquet_metadata_directory=parquet_metadata_directory,
+ split_parquet_files=split_parquet_files,
+ features=content_parquet_metadata["features"],
+ )
+ # features must contain the row idx column for full_text_search
+ features = Features.from_dict(content_parquet_metadata["features"])
+ features[ROW_IDX_COLUMN] = Value("int64")
diff --git a/services/search/tests/routes/test_filter.py b/services/search/tests/routes/test_filter.py
index 4aa1751a..a0eb6789 100644
--- a/services/search/tests/routes/test_filter.py
+++ b/services/search/tests/routes/test_filter.py
@@ -89,2 +89,2 @@ def test_execute_filter_query(columns: list[str], where: str, orderby: str, inde
- # in split-duckdb-index we always add the ROW_IDX_COLUMN column
- # see https://github.com/huggingface/dataset-viewer/blob/main/services/worker/src/worker/job_runners/split/duckdb_index.py#L305
+ # in duckdb indexing we always add the ROW_IDX_COLUMN column
+ # see https://github.com/huggingface/dataset-viewer/blob/3f1f5eb14b051293fe0d24fa14c54075b2f61065/libs/libapi/src/libapi/duckdb.py#L214
diff --git a/services/worker/README.md b/services/worker/README.md
index 5da27523..08d120fc 100644
--- a/services/worker/README.md
+++ b/services/worker/README.md
@@ -84,12 +83,0 @@ Set environment variables to configure the `parquet-and-info` worker (`PARQUET_A
-### Duckdb Index worker
-
-Set environment variables to configure the `duckdb-index` worker (`DUCKDB_INDEX_` prefix):
-
-- `DUCKDB_INDEX_CACHE_DIRECTORY`: directory where the temporal duckdb index files are stored. Defaults to empty.
-- `DUCKDB_INDEX_COMMIT_MESSAGE`: the git commit message when the worker uploads the duckdb index file to the Hub. Defaults to `Update duckdb index file`.
-- `COMMITTER_HF_TOKEN`: the HuggingFace token to commit the duckdb index file to the Hub. The token must be an app token associated with a user that has the right to 1. create the `refs/convert/duckdb` branch (see `DUCKDB_INDEX_TARGET_REVISION`) and 2. push commits to it on any dataset. [Datasets maintainers](https://huggingface.co/datasets-maintainers) members have these rights. The token must have permission to write. If not set, the worker will fail. Defaults to None.
-- `DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES`: if size in bytes of raw uncompressed split data is larger than this value, only first `n` parquet files are used so that their sum of uncompressed content in bytes is not greater than approximately `DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES`. Defaults to `100_000_000`.
-- `DUCKDB_INDEX_TARGET_REVISION`: the git revision of the dataset where to store the duckdb index file. Make sure the committer token (`DUCKDB_INDEX_COMMITTER_HF_TOKEN`) has the permission to write there. Defaults to `refs/convert/duckdb`.
-- `DUCKDB_INDEX_URL_TEMPLATE`: the URL template to build the duckdb index file URL. Defaults to `/datasets/%s/resolve/%s/%s`.
-- `DUCKDB_INDEX_EXTENSIONS_DIRECTORY`: directory where the duckdb extensions will be downloaded. Defaults to empty.
-
diff --git a/services/worker/src/worker/job_runner_factory.py b/services/worker/src/worker/job_runner_factory.py
index 1a4dcc93..d369172d 100644
--- a/services/worker/src/worker/job_runner_factory.py
+++ b/services/worker/src/worker/job_runner_factory.py
@@ -14,3 +13,0 @@ from worker.job_runner import JobRunner
-from worker.job_runners.config.duckdb_index_size import (
- ConfigDuckdbIndexSizeJobRunner,
-)
@@ -30,3 +26,0 @@ from worker.job_runners.dataset.croissant_crumbs import DatasetCroissantCrumbsJo
-from worker.job_runners.dataset.duckdb_index_size import (
- DatasetDuckdbIndexSizeJobRunner,
-)
@@ -48 +41,0 @@ from worker.job_runners.split.descriptive_statistics import (
-from worker.job_runners.split.duckdb_index import SplitDuckDbIndexJobRunner
@@ -222,17 +214,0 @@ class JobRunnerFactory(BaseJobRunnerFactory):
- if job_type == SplitDuckDbIndexJobRunner.get_job_type():
- return SplitDuckDbIndexJobRunner(
- job_info=job_info,
- app_config=self.app_config,
- duckdb_index_cache_directory=self.duckdb_index_cache_directory,
- parquet_metadata_directory=self.parquet_metadata_directory,
- )
- if job_type == ConfigDuckdbIndexSizeJobRunner.get_job_type():
- return ConfigDuckdbIndexSizeJobRunner(
- job_info=job_info,
- app_config=self.app_config,
- )
- if job_type == DatasetDuckdbIndexSizeJobRunner.get_job_type():
- return DatasetDuckdbIndexSizeJobRunner(
- job_info=job_info,
- app_config=self.app_config,
- )
diff --git a/services/worker/src/worker/job_runners/config/duckdb_index_size.py b/services/worker/src/worker/job_runners/config/duckdb_index_size.py
deleted file mode 100644
index 358e921d..00000000
--- a/services/worker/src/worker/job_runners/config/duckdb_index_size.py
+++ /dev/null
@@ -1,128 +0,0 @@
-# SPDX-License-Identifier: Apache-2.0
-# Copyright 2023 The HuggingFace Authors.
-import logging
-from http import HTTPStatus
-
-from libcommon.exceptions import PreviousStepFormatError
-from libcommon.simple_cache import (
- CachedArtifactNotFoundError,
- get_response,
-)
-
-from worker.dtos import (
- CompleteJobResult,
- ConfigDuckdbIndexSize,
- ConfigDuckdbIndexSizeResponse,
- SplitDuckdbIndexSize,
-)
-from worker.job_runners.config.config_job_runner import ConfigJobRunner
-from worker.utils import get_split_names
-
-
-def compute_config_duckdb_index_size_response(dataset: str, config: str) -> ConfigDuckdbIndexSizeResponse:
- """
- Get the response of 'config-duckdb-index-size' for one specific dataset and config on huggingface.co.
-
- Args:
- dataset (`str`):
- A namespace (user or an organization) and a repo name separated
- by a `/`.
- config (`str`):
- A configuration name.
-
- Raises:
- [~`libcommon.simple_cache.CachedArtifactError`]:
- If the previous step gave an error.
- [~`libcommon.exceptions.PreviousStepFormatError`]:
- If the content of the previous step has not the expected format
-
- Returns:
- `ConfigDuckdbIndexSizeResponse`: An object with the duckdb_index_size_response.
- """
- logging.info(f"compute 'config-duckdb-index-size' for {dataset=} {config=}")
- splits = get_split_names(dataset=dataset, config=config)
- try:
- total = 0
- split_duckdb_index_sizes: list[SplitDuckdbIndexSize] = []
- partial = False
- for split in splits:
- total += 1
- try:
- duckdb_index_response = get_response(
- kind="split-duckdb-index", dataset=dataset, config=config, split=split
- )
- config_info_response = get_response(kind="config-info", dataset=dataset, config=config)
- except CachedArtifactNotFoundError:
- logging.debug(
- "No response found in previous step for this dataset: 'split-duckdb-index' or 'config-info'."
- )
- continue
- if duckdb_index_response["http_status"] != HTTPStatus.OK:
- logging.debug(f"Previous step gave an error: {duckdb_index_response['http_status']}.")
- continue
- if config_info_response["http_status"] != HTTPStatus.OK:
- logging.debug(f"Previous step gave an error: {config_info_response['http_status']}.")
- continue
-
- split_duckdb_index = duckdb_index_response["content"]
- config_info = config_info_response["content"]
- if (
- "num_rows" in split_duckdb_index
- and isinstance(split_duckdb_index["num_rows"], int)
- and "num_bytes" in split_duckdb_index
- and isinstance(split_duckdb_index["num_bytes"], int)
- ):
- split_duckdb_index_sizes.append(
- SplitDuckdbIndexSize(
- dataset=dataset,
- config=config,
- split=split,
- has_fts=split_duckdb_index["stemmer"] is not None,
- num_rows=split_duckdb_index["num_rows"],
- num_bytes=split_duckdb_index["num_bytes"],
- )
- )
- partial = partial or split_duckdb_index["partial"]
- else:
- split_info = config_info["dataset_info"]["splits"][split]
- split_duckdb_index_sizes.append(
- SplitDuckdbIndexSize(
- dataset=dataset,
- config=config,
- split=split,
- has_fts=split_duckdb_index["stemmer"] is not None,
- num_rows=split_info["num_rows"],
- num_bytes=split_info["num_examples"],
- )
- )
- partial = partial or config_info["partial"]
-
- except Exception as e:
- raise PreviousStepFormatError("Previous step did not return the expected content.", e) from e
-
- config_duckdb_index_size = ConfigDuckdbIndexSize(
- dataset=dataset,
- config=config,
- has_fts=any(split_duckdb_index_size["has_fts"] for split_duckdb_index_size in split_duckdb_index_sizes),
- num_rows=sum(split_duckdb_index_size["num_rows"] for split_duckdb_index_size in split_duckdb_index_sizes),
- num_bytes=sum(split_duckdb_index_size["num_bytes"] for split_duckdb_index_size in split_duckdb_index_sizes),
- )
-
- return ConfigDuckdbIndexSizeResponse(
- {
- "size": {
- "config": config_duckdb_index_size,
- "splits": split_duckdb_index_sizes,
- },
- "partial": partial,
- }
- )
-
-
-class ConfigDuckdbIndexSizeJobRunner(ConfigJobRunner):
- @staticmethod
- def get_job_type() -> str:
- return "config-duckdb-index-size"
-
- def compute(self) -> CompleteJobResult:
- return CompleteJobResult(compute_config_duckdb_index_size_response(dataset=self.dataset, config=self.config))
diff --git a/services/worker/src/worker/job_runners/dataset/duckdb_index_size.py b/services/worker/src/worker/job_runners/dataset/duckdb_index_size.py
deleted file mode 100644
index 2e5d8525..00000000
--- a/services/worker/src/worker/job_runners/dataset/duckdb_index_size.py
+++ /dev/null
@@ -1,137 +0,0 @@
-# SPDX-License-Identifier: Apache-2.0
-# Copyright 2023 The HuggingFace Authors.
-
-import logging
-from http import HTTPStatus
-
-from libcommon.exceptions import PreviousStepFormatError
-from libcommon.simple_cache import (
- CachedArtifactNotFoundError,
- get_previous_step_or_raise,
- get_response,
-)
-
-from worker.dtos import (
- ConfigDuckdbIndexSize,
- ConfigDuckdbIndexSizeResponse,
- DatasetDuckdbIndexSize,
- DatasetDuckdbIndexSizeResponse,
- JobResult,
- PreviousJob,
- SplitDuckdbIndexSize,
-)
-from worker.job_runners.dataset.dataset_job_runner import DatasetJobRunner
-
-
-def compute_dataset_duckdb_index_size_response(dataset: str) -> tuple[DatasetDuckdbIndexSizeResponse, float]:
- """
- Get the response of 'config-duckdb-index-size' for one specific dataset on huggingface.co.
-
- Args:
- dataset (`str`):
- A namespace (user or an organization) and a repo name separated by a `/`.
-
- Raises:
- [~`libcommon.simple_cache.CachedArtifactError`]:
- If the previous step gave an error.
- [~`libcommon.exceptions.PreviousStepFormatError`]:
- If the content of the previous step has not the expected format
-
- Returns:
- `tuple[DatasetDuckdbIndexSizeResponse, float]`: An object with the duckdb_index_size_response and the progress.
- """
- logging.info(f"compute 'config-duckdb-index-size' for {dataset=}")
- config_names_response = get_previous_step_or_raise(kind="dataset-config-names", dataset=dataset)
- content = config_names_response["content"]
- if "config_names" not in content:
- raise PreviousStepFormatError("Previous step did not return the expected content: 'config_names'.")
-
- try:
- split_duckdb_index_sizes: list[SplitDuckdbIndexSize] = []
- config_duckdb_index_sizes: list[ConfigDuckdbIndexSize] = []
- total = 0
- pending = []
- failed = []
- partial = False
- for config_item in content["config_names"]:
- config = config_item["config"]
- total += 1
- try:
- response = get_response(kind="config-duckdb-index-size", dataset=dataset, config=config)
- except CachedArtifactNotFoundError:
- logging.debug(
- "No response found in previous step for this dataset: 'config-duckdb-index-size' endpoint."
- )
- pending.append(
- PreviousJob(
- {
- "kind": "config-duckdb-index-size",
- "dataset": dataset,
- "config": config,
- "split": None,
- }
- )
- )
- continue
- if response["http_status"] != HTTPStatus.OK:
- logging.debug(f"Previous step gave an error: {response['http_status']}.")
- failed.append(
- PreviousJob(
- {
- "kind": "config-duckdb-index-size",
- "dataset": dataset,
- "config": config,
- "split": None,
- }
- )
- )
- continue
- config_size_content = ConfigDuckdbIndexSizeResponse(
- size=response["content"]["size"], partial=response["content"]["partial"]
- )
- config_duckdb_index_sizes.append(config_size_content["size"]["config"])
- split_duckdb_index_sizes.extend(config_size_content["size"]["splits"])
- partial = partial or config_size_content["partial"]
-
- dataset_duckdb_index_size: DatasetDuckdbIndexSize = {
- "dataset": dataset,
- "has_fts": any(
- config_duckdb_index_size["has_fts"] for config_duckdb_index_size in config_duckdb_index_sizes
- ),
- "num_rows": sum(
- config_duckdb_index_size["num_rows"] for config_duckdb_index_size in config_duckdb_index_sizes
- ),
- "num_bytes": sum(
- config_duckdb_index_size["num_bytes"] for config_duckdb_index_size in config_duckdb_index_sizes
- ),
- }
- except Exception as e:
- raise PreviousStepFormatError("Previous step did not return the expected content.", e) from e
-
- progress = (total - len(pending)) / total if total else 1.0
-
- return (
- DatasetDuckdbIndexSizeResponse(
- {
- "size": {
- "dataset": dataset_duckdb_index_size,
- "configs": config_duckdb_index_sizes,
- "splits": split_duckdb_index_sizes,
- },
- "pending": pending,
- "failed": failed,
- "partial": partial,
- }
- ),
- progress,
- )
-
-
-class DatasetDuckdbIndexSizeJobRunner(DatasetJobRunner):
- @staticmethod
- def get_job_type() -> str:
- return "dataset-duckdb-index-size"
-
- def compute(self) -> JobResult:
- response_content, progress = compute_dataset_duckdb_index_size_response(dataset=self.dataset)
- return JobResult(response_content, progress=progress)
diff --git a/services/worker/src/worker/job_runners/split/duckdb_index.py b/services/worker/src/worker/job_runners/split/duckdb_index.py
deleted file mode 100644
index 2cf1d2df..00000000
--- a/services/worker/src/worker/job_runners/split/duckdb_index.py
+++ /dev/null
@@ -1,389 +0,0 @@
-# SPDX-License-Identifier: Apache-2.0
-# Copyright 2023 The HuggingFace Authors.
-
-import logging
-import re
-from pathlib import Path
-from typing import Optional
-
-import duckdb
-from datasets.features.features import Features
-from huggingface_hub._commit_api import (
- CommitOperation,
- CommitOperationAdd,
- CommitOperationDelete,
-)
-from huggingface_hub.errors import HfHubHTTPError, RepositoryNotFoundError
-from huggingface_hub.hf_api import HfApi
-from libcommon.constants import DUCKDB_INDEX_JOB_RUNNER_SUBDIRECTORY, ROW_IDX_COLUMN
-from libcommon.dtos import JobInfo
-from libcommon.duckdb_utils import (
- CREATE_INDEX_COMMAND,
- CREATE_INDEX_ID_COLUMN_COMMANDS,
- CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES,
- CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES,
- DUCKDB_DEFAULT_INDEX_FILENAME,
- DUCKDB_DEFAULT_PARTIAL_INDEX_FILENAME,
- INSTALL_AND_LOAD_EXTENSION_COMMAND,
- SET_EXTENSIONS_DIRECTORY_COMMAND,
- compute_transformed_data,
- get_indexable_columns,
- get_monolingual_stemmer,
-)
-from libcommon.exceptions import (
- CacheDirectoryNotInitializedError,
- CreateCommitError,
- DatasetNotFoundError,
- DuckDBIndexFileNotFoundError,
- LockedDatasetTimeoutError,
- ParquetResponseEmptyError,
- PreviousStepFormatError,
-)
-from libcommon.parquet_utils import (
- extract_split_directory_from_parquet_url,
- get_num_parquet_files_to_process,
- parquet_export_is_partial,
-)
-from libcommon.queue.lock import lock
-from libcommon.simple_cache import get_previous_step_or_raise
-from libcommon.storage import StrPath
-from libcommon.utils import HF_HUB_HTTP_ERROR_RETRY_SLEEPS, download_file_from_hub, retry
-
-from worker.config import AppConfig, DuckDbIndexConfig
-from worker.dtos import CompleteJobResult, SplitDuckdbIndex
-from worker.job_runners.split.split_job_runner import SplitJobRunnerWithCache
-from worker.utils import (
- LOCK_GIT_BRANCH_RETRY_SLEEPS,
- create_branch,
- get_split_names,
- hf_hub_url,
-)
-
-
-def get_delete_operations(all_repo_files: set[str], split_names: set[str], config: str) -> list[CommitOperationDelete]:
- same_config_pattern = re.compile(f"^({re.escape(config)})/")
- existing_split_pattern = re.compile(
- f"^({'|'.join(re.escape(f'{config}/{split_name}') for split_name in split_names)})/"
- )
- # For directories like "partial-train" for the file at "en/partial-train/0000.parquet" in the C4 dataset.
- # Note that "-" is forbidden for split names so it doesn't create directory names collisions.
- # caveat: the split could become full processed
- existing_partial_split_pattern = re.compile(
- f"^({'|'.join(re.escape(f'{config}/partial-{split_name}') for split_name in split_names)})/"
- )
-
- return [
- CommitOperationDelete(path_in_repo=file)
- for file in all_repo_files
- if same_config_pattern.match(file)
- and file.endswith(".duckdb")
- and not existing_split_pattern.match(file)
- and not existing_partial_split_pattern.match(file)
- ]
-
-
-def compute_split_duckdb_index_response(
- job_id: str,
- dataset: str,
- config: str,
- split: str,
- duckdb_index_file_directory: Path,
- target_revision: str,
- source_revision: str,
- hf_endpoint: str,
- commit_message: str,
- url_template: str,
- hf_token: Optional[str],
- max_split_size_bytes: int,
- extensions_directory: Optional[str],
- committer_hf_token: Optional[str],
- parquet_metadata_directory: StrPath,
-) -> SplitDuckdbIndex:
- logging.info(f"compute 'split-duckdb-index' for {dataset=} {config=} {split=}")
-
- # get parquet urls and dataset_info
- config_parquet_metadata_step = "config-parquet-metadata"
- parquet_metadata_response = get_previous_step_or_raise(
- kind=config_parquet_metadata_step,
- dataset=dataset,
- config=config,
- )
- content_parquet_metadata = parquet_metadata_response["content"]
- try:
- split_parquet_files = [
- parquet_file
- for parquet_file in content_parquet_metadata["parquet_files_metadata"]
- if parquet_file["config"] == config and parquet_file["split"] == split
- ]
-
- if not split_parquet_files:
- raise ParquetResponseEmptyError("No parquet files found.")
-
- # For directories like "partial-train" for the file at "en/partial-train/0000.parquet" in the C4 dataset.
- # Note that "-" is forbidden for split names so it doesn't create directory names collisions.
- split_directory = extract_split_directory_from_parquet_url(split_parquet_files[0]["url"])
- partial_parquet_export = parquet_export_is_partial(split_parquet_files[0]["url"])
-
- num_parquet_files_to_index, num_bytes, num_rows = get_num_parquet_files_to_process(
- parquet_files=split_parquet_files,
- parquet_metadata_directory=parquet_metadata_directory,
- max_size_bytes=max_split_size_bytes,
- )
-
- index_filename = (
- DUCKDB_DEFAULT_PARTIAL_INDEX_FILENAME
- if (num_parquet_files_to_index < len(split_parquet_files))
- else DUCKDB_DEFAULT_INDEX_FILENAME
- )
- partial = partial_parquet_export or (num_parquet_files_to_index < len(split_parquet_files))
- split_parquet_files = split_parquet_files[:num_parquet_files_to_index]
- parquet_file_names = [parquet_file["filename"] for parquet_file in split_parquet_files]
-
- # get the features
- features = content_parquet_metadata["features"]
- column_names = ",".join(f'"{column}"' for column in features)
-
- # look for indexable columns (= possibly nested columns containing string data)
- indexable_columns = ",".join(f'"{column}"' for column in get_indexable_columns(Features.from_dict(features)))
-
- except KeyError as e:
- raise PreviousStepFormatError(
- f"Previous step '{config_parquet_metadata_step}' did not return the expected content.", e
- ) from e
-
- all_split_parquets: list[Path] = []
- for parquet_file in parquet_file_names:
- all_split_parquets.append(
- Path(
- download_file_from_hub(
- repo_type="dataset",
- revision=source_revision,
- repo_id=dataset,
- filename=f"{config}/{split_directory}/{parquet_file}",
- local_dir=duckdb_index_file_directory,
- hf_token=hf_token,
- cache_dir=duckdb_index_file_directory,
- force_download=True,
- resume_download=False,
- )
- )
- )
-
- transformed_df = None
- try:
- transformed_df = compute_transformed_data(all_split_parquets, features)
- except Exception as err:
- logging.info(f"Unable to compute transformed data {err}, skipping statistics.")
-
- # create index
- db_path = duckdb_index_file_directory.resolve() / index_filename
- con = duckdb.connect(str(db_path.resolve()))
-
- hf_api = HfApi(endpoint=hf_endpoint, token=hf_token)
- stemmer = None
-
- try:
- if transformed_df is not None:
- logging.debug(transformed_df.head())
- # update original data with results of transformations (string lengths, audio durations, etc.):
- logging.info(f"Updating data with {transformed_df.columns}")
- create_command_sql = CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
- columns=column_names, source=[str(p) for p in all_split_parquets]
- )
-
- else:
- create_command_sql = CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
- columns=column_names, source=[str(p) for p in all_split_parquets]
- )
-
- logging.info(create_command_sql)
- con.sql(create_command_sql)
- con.sql(CREATE_INDEX_ID_COLUMN_COMMANDS)
- logging.debug(con.sql("SELECT * FROM data LIMIT 5;"))
- logging.debug(con.sql("SELECT count(*) FROM data;"))
-
- if len(indexable_columns) > 0:
- # configure duckdb extensions
- if extensions_directory is not None:
- con.execute(SET_EXTENSIONS_DIRECTORY_COMMAND.format(directory=extensions_directory))
- con.execute(INSTALL_AND_LOAD_EXTENSION_COMMAND)
- stemmer = get_monolingual_stemmer(hf_api.dataset_info(repo_id=dataset).card_data)
- create_index_sql = CREATE_INDEX_COMMAND.format(columns=indexable_columns, stemmer=stemmer)
- logging.info(create_index_sql)
- con.sql(create_index_sql)
-
- finally:
- con.close()
-
- logging.info(f"about to push index file to {target_revision}")
- committer_hf_api = HfApi(endpoint=hf_endpoint, token=committer_hf_token)
- index_file_location = f"{config}/{split_directory}/{index_filename}"
-
- try:
- with lock.git_branch(
- dataset=dataset,
- branch=target_revision,
- owner=job_id,
- sleeps=LOCK_GIT_BRANCH_RETRY_SLEEPS,
- ):
- logging.debug(f"try to create branch for {dataset=} with {target_revision=} on {hf_endpoint=}")
- create_branch(
- dataset=dataset,
- target_revision=target_revision,
- hf_api=hf_api,
- committer_hf_api=committer_hf_api,
- )
-
- logging.debug(f"get dataset info for {dataset=} with {target_revision=}")
- target_dataset_info = hf_api.dataset_info(repo_id=dataset, revision=target_revision, files_metadata=False)
- all_repo_files: set[str] = {f.rfilename for f in (target_dataset_info.siblings or [])}
- delete_operations = get_delete_operations(
- all_repo_files=all_repo_files,
- split_names=get_split_names(dataset=dataset, config=config),
- config=config,
- )
- logging.debug(f"delete operations for {dataset=} {delete_operations=}")
-
- # send the files to the target revision
- add_operations: list[CommitOperation] = [
- CommitOperationAdd(path_in_repo=index_file_location, path_or_fileobj=db_path.resolve())
- ]
- logging.debug(f"add operations for {dataset=} {add_operations=}")
-
- retry_create_commit = retry(on=[HfHubHTTPError], sleeps=HF_HUB_HTTP_ERROR_RETRY_SLEEPS)(
- committer_hf_api.create_commit
- )
- try:
- retry_create_commit(
- repo_id=dataset,
- repo_type="dataset",
- revision=target_revision,
- operations=delete_operations + add_operations,
- commit_message=commit_message,
- parent_commit=target_dataset_info.sha,
- )
- except RuntimeError as e:
- if e.__cause__ and isinstance(e.__cause__, HfHubHTTPError):
- raise CreateCommitError(
- message=(
- f"Commit {commit_message} could not be created on the Hub (after"
- f" {len(HF_HUB_HTTP_ERROR_RETRY_SLEEPS)} attempts)."
- ),
- cause=e.__cause__,
- ) from e.__cause__
- raise e
-
- # squash the history to save space
- retry_super_squash_history = retry(on=[HfHubHTTPError], sleeps=HF_HUB_HTTP_ERROR_RETRY_SLEEPS)(
- committer_hf_api.super_squash_history
- )
- try:
- retry_super_squash_history(
- repo_id=dataset,
- repo_type="dataset",
- commit_message=commit_message,
- branch=target_revision,
- )
- except RuntimeError as e:
- if e.__cause__ and isinstance(e.__cause__, HfHubHTTPError):
- raise CreateCommitError(
- message=(
- f"Could not squash the history of the commits (after {len(HF_HUB_HTTP_ERROR_RETRY_SLEEPS)}"
- f" attempts)."
- ),
- cause=e.__cause__,
- ) from e.__cause__
- raise e
-
- logging.debug(f"create commit {commit_message} for {dataset=} {add_operations=}")
-
- # call the API again to get the index file
- target_dataset_info = hf_api.dataset_info(repo_id=dataset, revision=target_revision, files_metadata=True)
- logging.debug(f"dataset info for {dataset=} {target_dataset_info=}")
- except TimeoutError as err:
- raise LockedDatasetTimeoutError("the dataset is currently locked, please try again later.") from err
- except RepositoryNotFoundError as err:
- raise DatasetNotFoundError("The dataset does not exist on the Hub.") from err
-
- repo_files = [
- repo_file for repo_file in (target_dataset_info.siblings or []) if repo_file.rfilename == index_file_location
- ]
-
- if not repo_files or len(repo_files) != 1:
- logging.warning(f"Found {len(repo_files)} index files, should be only 1")
- raise DuckDBIndexFileNotFoundError("No index file was found")
-
- repo_file = repo_files[0]
- if repo_file.size is None:
- raise ValueError(f"Cannot get size of {repo_file.rfilename}")
-
- # we added the __hf_index_id column for the index
- features[ROW_IDX_COLUMN] = {"dtype": "int64", "_type": "Value"}
-
- return SplitDuckdbIndex(
- dataset=dataset,
- config=config,
- split=split,
- url=hf_hub_url(
- repo_id=dataset,
- filename=repo_file.rfilename,
- hf_endpoint=hf_endpoint,
- revision=target_revision,
- url_template=url_template,
- ),
- filename=Path(repo_file.rfilename).name,
- size=repo_file.size,
- features=features,
- partial=partial,
- num_rows=num_rows,
- num_bytes=num_bytes,
- duckdb_version=duckdb.__version__,
- stemmer=stemmer,
- )
-
-
-class SplitDuckDbIndexJobRunner(SplitJobRunnerWithCache):
- duckdb_index_config: DuckDbIndexConfig
-
- def __init__(
- self,
- job_info: JobInfo,
- app_config: AppConfig,
- duckdb_index_cache_directory: StrPath,
- parquet_metadata_directory: StrPath,
- ) -> None:
- super().__init__(
- job_info=job_info,
- app_config=app_config,
- cache_directory=Path(duckdb_index_cache_directory) / DUCKDB_INDEX_JOB_RUNNER_SUBDIRECTORY,
- )
- self.duckdb_index_config = app_config.duckdb_index
- self.committer_config = app_config.committer
- self.parquet_metadata_directory = parquet_metadata_directory
-
- @staticmethod
- def get_job_type() -> str:
- return "split-duckdb-index"
-
- def compute(self) -> CompleteJobResult:
- if self.cache_subdirectory is None:
- raise CacheDirectoryNotInitializedError("Cache directory has not been initialized.")
- return CompleteJobResult(
- compute_split_duckdb_index_response(
- job_id=self.job_info["job_id"],
- dataset=self.dataset,
- config=self.config,
- split=self.split,
- duckdb_index_file_directory=self.cache_subdirectory,
- hf_token=self.app_config.common.hf_token,
- url_template=self.duckdb_index_config.url_template,
- commit_message=self.duckdb_index_config.commit_message,
- extensions_directory=self.duckdb_index_config.extensions_directory,
- committer_hf_token=self.committer_config.hf_token,
- hf_endpoint=self.app_config.common.hf_endpoint,
- target_revision=self.duckdb_index_config.target_revision,
- source_revision=self.app_config.parquet_and_info.target_revision,
- max_split_size_bytes=self.duckdb_index_config.max_split_size_bytes,
- parquet_metadata_directory=self.parquet_metadata_directory,
- )
- )
diff --git a/services/worker/src/worker/job_runners/split/is_valid.py b/services/worker/src/worker/job_runners/split/is_valid.py
index 9892564b..796681bb 100644
--- a/services/worker/src/worker/job_runners/split/is_valid.py
+++ b/services/worker/src/worker/job_runners/split/is_valid.py
@@ -5,0 +6 @@ import logging
+from datasets import Features
@@ -7,0 +9 @@ from libcommon.constants import (
+ CONFIG_PARQUET_METADATA_KIND,
@@ -9 +10,0 @@ from libcommon.constants import (
- SPLIT_HAS_SEARCH_KIND,
@@ -12,0 +14 @@ from libcommon.dtos import JobInfo
+from libcommon.duckdb_utils import get_indexable_columns
@@ -57,2 +59,2 @@ def compute_is_valid_response(dataset: str, config: str, split: str) -> IsValidR
- duckdb_response = get_previous_step_or_raise(
- kind=SPLIT_HAS_SEARCH_KIND,
+ parquet_metadata_response = get_previous_step_or_raise(
+ kind=CONFIG_PARQUET_METADATA_KIND,
@@ -61 +62,0 @@ def compute_is_valid_response(dataset: str, config: str, split: str) -> IsValidR
- split=split,
@@ -63 +64 @@ def compute_is_valid_response(dataset: str, config: str, split: str) -> IsValidR
- search_content = duckdb_response["content"]
+ features = parquet_metadata_response["content"]["features"]
@@ -65 +66,4 @@ def compute_is_valid_response(dataset: str, config: str, split: str) -> IsValidR
- search = search_content["stemmer"] is not None
+ if isinstance(features, dict):
+ search = len(get_indexable_columns(Features.from_dict(features))) > 0
+ else:
+ search = False
diff --git a/services/worker/tests/job_runners/config/test_duckdb_index_size.py b/services/worker/tests/job_runners/config/test_duckdb_index_size.py
deleted file mode 100644
index e1940066..00000000
--- a/services/worker/tests/job_runners/config/test_duckdb_index_size.py
+++ /dev/null
@@ -1,225 +0,0 @@
-# SPDX-License-Identifier: Apache-2.0
-# Copyright 2023 The HuggingFace Authors.
-
-from collections.abc import Callable
-from http import HTTPStatus
-from typing import Any
-
-import pytest
-from libcommon.dtos import Priority
-from libcommon.duckdb_utils import DEFAULT_STEMMER
-from libcommon.exceptions import PreviousStepFormatError
-from libcommon.resources import CacheMongoResource, QueueMongoResource
-from libcommon.simple_cache import (
- CachedArtifactError,
- CachedArtifactNotFoundError,
- upsert_response,
-)
-
-from worker.config import AppConfig
-from worker.job_runners.config.duckdb_index_size import ConfigDuckdbIndexSizeJobRunner
-
-from ..utils import REVISION_NAME
-
-
[email protected](autouse=True)
-def prepare_and_clean_mongo(app_config: AppConfig) -> None:
- # prepare the database before each test, and clean it afterwards
- pass
-
-
-GetJobRunner = Callable[[str, str, AppConfig], ConfigDuckdbIndexSizeJobRunner]
-
-
[email protected]
-def get_job_runner(
- cache_mongo_resource: CacheMongoResource,
- queue_mongo_resource: QueueMongoResource,
-) -> GetJobRunner:
- def _get_job_runner(
- dataset: str,
- config: str,
- app_config: AppConfig,
- ) -> ConfigDuckdbIndexSizeJobRunner:
- upsert_response(
- kind="dataset-config-names",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- content={"config_names": [{"dataset": dataset, "config": config}]},
- http_status=HTTPStatus.OK,
- )
-
- return ConfigDuckdbIndexSizeJobRunner(
- job_info={
- "type": ConfigDuckdbIndexSizeJobRunner.get_job_type(),
- "params": {
- "dataset": dataset,
- "revision": "revision",
- "config": config,
- "split": None,
- },
- "job_id": "job_id",
- "priority": Priority.NORMAL,
- "difficulty": 50,
- "started_at": None,
- },
- app_config=app_config,
- )
-
- return _get_job_runner
-
-
[email protected](
- "dataset,config,upstream_status,upstream_contents,expected_error_code,expected_content,should_raise",
- [
- (
- "dataset_ok",
- "config_1",
- HTTPStatus.OK,
- [
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "split": "train",
- "url": "https://foo.bar/config_1/split_1/index.duckdb",
- "filename": "index.duckdb",
- "size": 1234,
- "features": {},
- "stemmer": DEFAULT_STEMMER,
- "partial": False,
- "num_rows": 5,
- "num_bytes": 40,
- },
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "split": "test",
- "url": "https://foo.bar/config_1/split_1/index.duckdb",
- "filename": "index.duckdb",
- "size": 5678,
- "features": {},
- "stemmer": DEFAULT_STEMMER,
- "partial": False,
- "num_rows": 2,
- "num_bytes": 16,
- },
- ],
- None,
- {
- "size": {
- "config": {
- "dataset": "dataset_ok",
- "config": "config_1",
- "stemmer": DEFAULT_STEMMER,
- "num_rows": 7,
- "num_bytes": 56,
- },
- "splits": [
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "split": "train",
- "stemmer": DEFAULT_STEMMER,
- "num_rows": 5,
- "num_bytes": 40,
- },
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "split": "test",
- "stemmer": DEFAULT_STEMMER,
- "num_rows": 2,
- "num_bytes": 16,
- },
- ],
- },
- "partial": False,
- },
- False,
- ),
- (
- "status_error",
- "config_1",
- HTTPStatus.INTERNAL_SERVER_ERROR,
- [{"error": "error"}],
- CachedArtifactError.__name__,
- None,
- True,
- ),
- (
- "status_not_found",
- "config_1",
- HTTPStatus.NOT_FOUND,
- [{"error": "error"}],
- CachedArtifactNotFoundError.__name__,
- None,
- True,
- ),
- (
- "format_error",
- "config_1",
- HTTPStatus.OK,
- [{"not_dataset_info": "wrong_format"}],
- PreviousStepFormatError.__name__,
- None,
- True,
- ),
- ],
-)
-def test_compute(
- app_config: AppConfig,
- get_job_runner: GetJobRunner,
- dataset: str,
- config: str,
- upstream_status: HTTPStatus,
- upstream_contents: list[Any],
- expected_error_code: str,
- expected_content: Any,
- should_raise: bool,
-) -> None:
- if upstream_status != HTTPStatus.NOT_FOUND:
- splits = [{"split": upstream_content.get("split", "train")} for upstream_content in upstream_contents]
- upsert_response(
- kind="config-split-names",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- config=config,
- content={"splits": splits},
- http_status=upstream_status,
- )
- upsert_response(
- kind="config-info",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- config=config,
- content={},
- http_status=upstream_status,
- )
- for upstream_content in upstream_contents:
- upsert_response(
- kind="split-duckdb-index",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- config=config,
- split=upstream_content.get("split", "train"),
- content=upstream_content,
- http_status=upstream_status,
- )
- job_runner = get_job_runner(dataset, config, app_config)
- job_runner.pre_compute()
- if should_raise:
- with pytest.raises(Exception) as e:
- job_runner.compute()
- assert e.typename == expected_error_code
- else:
- assert sorted(job_runner.compute().content) == sorted(expected_content)
- job_runner.post_compute()
-
-
-def test_doesnotexist(app_config: AppConfig, get_job_runner: GetJobRunner) -> None:
- dataset = config = "doesnotexist"
- job_runner = get_job_runner(dataset, config, app_config)
- job_runner.pre_compute()
- with pytest.raises(CachedArtifactNotFoundError):
- job_runner.compute()
- job_runner.post_compute()
diff --git a/services/worker/tests/job_runners/dataset/test_duckdb_index_size.py b/services/worker/tests/job_runners/dataset/test_duckdb_index_size.py
deleted file mode 100644
index e2339c2f..00000000
--- a/services/worker/tests/job_runners/dataset/test_duckdb_index_size.py
+++ /dev/null
@@ -1,268 +0,0 @@
-# SPDX-License-Identifier: Apache-2.0
-# Copyright 2023 The HuggingFace Authors.
-
-from collections.abc import Callable
-from http import HTTPStatus
-from typing import Any
-
-import pytest
-from libcommon.dtos import Priority
-from libcommon.exceptions import PreviousStepFormatError
-from libcommon.resources import CacheMongoResource, QueueMongoResource
-from libcommon.simple_cache import (
- CachedArtifactError,
- CachedArtifactNotFoundError,
- upsert_response,
-)
-
-from worker.config import AppConfig
-from worker.job_runners.dataset.duckdb_index_size import DatasetDuckdbIndexSizeJobRunner
-
-from ..utils import REVISION_NAME, UpstreamResponse
-
-
[email protected](autouse=True)
-def prepare_and_clean_mongo(app_config: AppConfig) -> None:
- # prepare the database before each test, and clean it afterwards
- pass
-
-
-GetJobRunner = Callable[[str, AppConfig], DatasetDuckdbIndexSizeJobRunner]
-
-
[email protected]
-def get_job_runner(
- cache_mongo_resource: CacheMongoResource,
- queue_mongo_resource: QueueMongoResource,
-) -> GetJobRunner:
- def _get_job_runner(
- dataset: str,
- app_config: AppConfig,
- ) -> DatasetDuckdbIndexSizeJobRunner:
- return DatasetDuckdbIndexSizeJobRunner(
- job_info={
- "type": DatasetDuckdbIndexSizeJobRunner.get_job_type(),
- "params": {
- "dataset": dataset,
- "revision": "revision",
- "config": None,
- "split": None,
- },
- "job_id": "job_id",
- "priority": Priority.NORMAL,
- "difficulty": 50,
- "started_at": None,
- },
- app_config=app_config,
- )
-
- return _get_job_runner
-
-
[email protected](
- "dataset,upstream_responses,expected_error_code,expected_content,should_raise",
- [
- (
- "dataset_ok",
- [
- UpstreamResponse(
- kind="dataset-config-names",
- dataset="dataset_ok",
- dataset_git_revision=REVISION_NAME,
- config=None,
- http_status=HTTPStatus.OK,
- content={
- "config_names": [
- {"dataset": "dataset_ok", "config": "config_1"},
- {"dataset": "dataset_ok", "config": "config_2"},
- ],
- },
- ),
- UpstreamResponse(
- kind="config-duckdb-index-size",
- dataset="dataset_ok",
- dataset_git_revision=REVISION_NAME,
- config="config_1",
- http_status=HTTPStatus.OK,
- content={
- "size": {
- "config": {
- "dataset": "dataset_ok",
- "config": "config_1",
- "has_fts": True,
- "num_rows": 7,
- "num_bytes": 56,
- },
- "splits": [
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "split": "train",
- "has_fts": True,
- "num_rows": 5,
- "num_bytes": 40,
- },
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "split": "test",
- "has_fts": True,
- "num_rows": 2,
- "num_bytes": 16,
- },
- ],
- },
- "partial": False,
- },
- ),
- UpstreamResponse(
- kind="config-duckdb-index-size",
- dataset="dataset_ok",
- dataset_git_revision=REVISION_NAME,
- config="config_2",
- http_status=HTTPStatus.OK,
- content={
- "size": {
- "config": {
- "dataset": "dataset_ok",
- "config": "config_2",
- "has_fts": True,
- "num_rows": 5,
- "num_bytes": 40,
- },
- "splits": [
- {
- "dataset": "dataset_ok",
- "config": "config_2",
- "split": "train",
- "has_fts": True,
- "num_rows": 5,
- "num_bytes": 40,
- },
- ],
- },
- "partial": False,
- },
- ),
- ],
- None,
- {
- "size": {
- "dataset": {
- "dataset": "dataset_ok",
- "has_fts": True,
- "num_rows": 12,
- "num_bytes": 96,
- },
- "configs": [
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "has_fts": True,
- "num_rows": 7,
- "num_bytes": 56,
- },
- {
- "dataset": "dataset_ok",
- "config": "config_2",
- "has_fts": True,
- "num_rows": 5,
- "num_bytes": 40,
- },
- ],
- "splits": [
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "split": "train",
- "has_fts": True,
- "num_rows": 5,
- "num_bytes": 40,
- },
- {
- "dataset": "dataset_ok",
- "config": "config_1",
- "split": "test",
- "has_fts": True,
- "num_rows": 2,
- "num_bytes": 16,
- },
- {
- "dataset": "dataset_ok",
- "config": "config_2",
- "split": "train",
- "has_fts": True,
- "num_rows": 5,
- "num_bytes": 40,
- },
- ],
- },
- "failed": [],
- "pending": [],
- "partial": False,
- },
- False,
- ),
- (
- "status_error",
- [
- UpstreamResponse(
- kind="dataset-config-names",
- dataset="status_error",
- dataset_git_revision=REVISION_NAME,
- config=None,
- http_status=HTTPStatus.NOT_FOUND,
- content={"error": "error"},
- )
- ],
- CachedArtifactError.__name__,
- None,
- True,
- ),
- (
- "format_error",
- [
- UpstreamResponse(
- kind="dataset-config-names",
- dataset="format_error",
- dataset_git_revision=REVISION_NAME,
- config=None,
- http_status=HTTPStatus.OK,
- content={"not_dataset_info": "wrong_format"},
- )
- ],
- PreviousStepFormatError.__name__,
- None,
- True,
- ),
- ],
-)
-def test_compute(
- app_config: AppConfig,
- get_job_runner: GetJobRunner,
- dataset: str,
- upstream_responses: list[UpstreamResponse],
- expected_error_code: str,
- expected_content: Any,
- should_raise: bool,
-) -> None:
- for upstream_response in upstream_responses:
- upsert_response(**upstream_response)
- job_runner = get_job_runner(dataset, app_config)
- job_runner.pre_compute()
- if should_raise:
- with pytest.raises(Exception) as e:
- job_runner.compute()
- assert e.typename == expected_error_code
- else:
- assert job_runner.compute().content == expected_content
- job_runner.post_compute()
-
-
-def test_doesnotexist(app_config: AppConfig, get_job_runner: GetJobRunner) -> None:
- dataset = "doesnotexist"
- job_runner = get_job_runner(dataset, app_config)
- job_runner.pre_compute()
- with pytest.raises(CachedArtifactNotFoundError):
- job_runner.compute()
- job_runner.post_compute()
diff --git a/services/worker/tests/job_runners/split/test_duckdb_index.py b/services/worker/tests/job_runners/split/test_duckdb_index.py
deleted file mode 100644
index dc69d148..00000000
--- a/services/worker/tests/job_runners/split/test_duckdb_index.py
+++ /dev/null
@@ -1,608 +0,0 @@
-# SPDX-License-Identifier: Apache-2.0
-# Copyright 2023 The HuggingFace Authors.
-
-import os
-from collections.abc import Callable, Mapping
-from contextlib import ExitStack
-from dataclasses import replace
-from http import HTTPStatus
-from pathlib import Path
-from typing import Any, Optional
-from unittest.mock import patch
-
-import datasets.config
-import duckdb
-import pandas as pd
-import pyarrow as pa
-import pyarrow.parquet as pq
-import pytest
-import requests
-from datasets import Audio, Dataset, Features, Image, Sequence, Translation, TranslationVariableLanguages, Value
-from datasets.packaged_modules.csv.csv import CsvConfig
-from datasets.table import embed_table_storage
-from huggingface_hub.repocard_data import DatasetCardData
-from libcommon.constants import HF_FTS_SCORE, ROW_IDX_COLUMN
-from libcommon.dtos import Priority
-from libcommon.duckdb_utils import (
- CREATE_INDEX_COMMAND,
- CREATE_INDEX_ID_COLUMN_COMMANDS,
- CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES,
- DEFAULT_STEMMER,
- get_indexable_columns,
- get_monolingual_stemmer,
-)
-from libcommon.resources import CacheMongoResource, QueueMongoResource
-from libcommon.simple_cache import upsert_response
-from libcommon.storage import StrPath
-
-from worker.config import AppConfig
-from worker.job_runners.config.parquet import ConfigParquetJobRunner
-from worker.job_runners.config.parquet_and_info import ConfigParquetAndInfoJobRunner
-from worker.job_runners.config.parquet_metadata import ConfigParquetMetadataJobRunner
-from worker.job_runners.split.duckdb_index import (
- SplitDuckDbIndexJobRunner,
- get_delete_operations,
-)
-from worker.resources import LibrariesResource
-
-from ...fixtures.hub import HubDatasetTest
-from ...fixtures.statistics_dataset import null_column
-from ..utils import REVISION_NAME
-
-GetJobRunner = Callable[[str, str, str, AppConfig], SplitDuckDbIndexJobRunner]
-
-GetParquetAndInfoJobRunner = Callable[[str, str, AppConfig], ConfigParquetAndInfoJobRunner]
-GetParquetJobRunner = Callable[[str, str, AppConfig], ConfigParquetJobRunner]
-GetParquetMetadataJobRunner = Callable[[str, str, AppConfig], ConfigParquetMetadataJobRunner]
-
-
[email protected]
-def get_job_runner(
- parquet_metadata_directory: StrPath,
- duckdb_index_cache_directory: StrPath,
- cache_mongo_resource: CacheMongoResource,
- queue_mongo_resource: QueueMongoResource,
-) -> GetJobRunner:
- def _get_job_runner(
- dataset: str,
- config: str,
- split: str,
- app_config: AppConfig,
- ) -> SplitDuckDbIndexJobRunner:
- upsert_response(
- kind="dataset-config-names",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- content={"config_names": [{"dataset": dataset, "config": config}]},
- http_status=HTTPStatus.OK,
- )
-
- upsert_response(
- kind="config-split-names",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- config=config,
- content={"splits": [{"dataset": dataset, "config": config, "split": split}]},
- http_status=HTTPStatus.OK,
- )
-
- return SplitDuckDbIndexJobRunner(
- job_info={
- "type": SplitDuckDbIndexJobRunner.get_job_type(),
- "params": {
- "dataset": dataset,
- "revision": REVISION_NAME,
- "config": config,
- "split": split,
- },
- "job_id": "job_id",
- "priority": Priority.NORMAL,
- "difficulty": 50,
- "started_at": None,
- },
- app_config=app_config,
- duckdb_index_cache_directory=duckdb_index_cache_directory,
- parquet_metadata_directory=parquet_metadata_directory,
- )
-
- return _get_job_runner
-
-
[email protected]
-def get_parquet_and_info_job_runner(
- libraries_resource: LibrariesResource,
- cache_mongo_resource: CacheMongoResource,
- queue_mongo_resource: QueueMongoResource,
-) -> GetParquetAndInfoJobRunner:
- def _get_job_runner(
- dataset: str,
- config: str,
- app_config: AppConfig,
- ) -> ConfigParquetAndInfoJobRunner:
- upsert_response(
- kind="dataset-config-names",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- content={"config_names": [{"dataset": dataset, "config": config}]},
- http_status=HTTPStatus.OK,
- )
-
- return ConfigParquetAndInfoJobRunner(
- job_info={
- "type": ConfigParquetAndInfoJobRunner.get_job_type(),
- "params": {
- "dataset": dataset,
- "revision": REVISION_NAME,
- "config": config,
- "split": None,
- },
- "job_id": "job_id",
- "priority": Priority.NORMAL,
- "difficulty": 50,
- "started_at": None,
- },
- app_config=app_config,
- hf_datasets_cache=libraries_resource.hf_datasets_cache,
- )
-
- return _get_job_runner
-
-
[email protected]
-def get_parquet_job_runner(
- libraries_resource: LibrariesResource,
- cache_mongo_resource: CacheMongoResource,
- queue_mongo_resource: QueueMongoResource,
-) -> GetParquetJobRunner:
- def _get_job_runner(
- dataset: str,
- config: str,
- app_config: AppConfig,
- ) -> ConfigParquetJobRunner:
- upsert_response(
- kind="dataset-config-names",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- content={"config_names": [{"dataset": dataset, "config": config}]},
- http_status=HTTPStatus.OK,
- )
-
- return ConfigParquetJobRunner(
- job_info={
- "type": ConfigParquetJobRunner.get_job_type(),
- "params": {
- "dataset": dataset,
- "revision": "revision",
- "config": config,
- "split": None,
- },
- "job_id": "job_id",
- "priority": Priority.NORMAL,
- "difficulty": 50,
- "started_at": None,
- },
- app_config=app_config,
- )
-
- return _get_job_runner
-
-
[email protected]
-def get_parquet_metadata_job_runner(
- libraries_resource: LibrariesResource,
- cache_mongo_resource: CacheMongoResource,
- queue_mongo_resource: QueueMongoResource,
- parquet_metadata_directory: StrPath,
-) -> GetParquetMetadataJobRunner:
- def _get_job_runner(
- dataset: str,
- config: str,
- app_config: AppConfig,
- ) -> ConfigParquetMetadataJobRunner:
- upsert_response(
- kind="dataset-config-names",
- dataset_git_revision=REVISION_NAME,
- dataset=dataset,
- content={"config_names": [{"dataset": dataset, "config": config}]},
- http_status=HTTPStatus.OK,
- )
-
- return ConfigParquetMetadataJobRunner(
- job_info={
- "type": ConfigParquetMetadataJobRunner.get_job_type(),
- "params": {
- "dataset": dataset,
- "revision": "revision",
- "config": config,
- "split": None,
- },
- "job_id": "job_id",
- "priority": Priority.NORMAL,
- "difficulty": 50,
- "started_at": None,
- },
- app_config=app_config,
- parquet_metadata_directory=parquet_metadata_directory,
- )
-
- return _get_job_runner
-
-
[email protected]
-def expected_data(datasets: Mapping[str, Dataset]) -> dict[str, list[Any]]:
- ds = datasets["duckdb_index"]
- ds = Dataset(embed_table_storage(ds.data))
- expected: dict[str, list[Any]] = ds[:]
- for feature_name, feature in ds.features.items():
- is_string = isinstance(feature, Value) and feature.dtype == "string"
- is_list = (isinstance(feature, list) or isinstance(feature, Sequence)) and feature_name != "sequence_struct"
- if is_string or is_list:
- expected[f"{feature_name}.length"] = [len(row) if row is not None else None for row in ds[feature_name]]
- elif isinstance(feature, Audio):
- if "all_null" in feature_name:
- expected[f"{feature_name}.duration"] = null_column(5)
- else:
- expected[f"{feature_name}.duration"] = [1.0, 2.0, 3.0, 4.0, None]
- elif isinstance(feature, Image):
- if "all_null" in feature_name:
- expected[f"{feature_name}.width"] = null_column(5)
- expected[f"{feature_name}.height"] = null_column(5)
- else:
- expected[f"{feature_name}.width"] = [640, 1440, 520, 1240, None]
- expected[f"{feature_name}.height"] = [480, 1058, 400, 930, None]
- expected["__hf_index_id"] = list(range(ds.num_rows))
- return expected
-
-
[email protected](
- "card_data, expected_stemmer",
- [
- (DatasetCardData(language="spa"), "spanish"),
- (DatasetCardData(language="other"), DEFAULT_STEMMER),
- (DatasetCardData(language="ar"), "arabic"),
- (DatasetCardData(language=["ar"]), "arabic"),
- (DatasetCardData(language=["ar", "en"]), DEFAULT_STEMMER),
- (DatasetCardData(), DEFAULT_STEMMER),
- (None, DEFAULT_STEMMER),
- ],
-)
-def test_get_monolingual_stemmer(card_data: DatasetCardData, expected_stemmer: str) -> None:
- stemmer = get_monolingual_stemmer(card_data)
- assert stemmer is not None and stemmer == expected_stemmer
-
-
[email protected](
- "hub_dataset_name,max_split_size_bytes,expected_rows_count,expected_has_fts,expected_partial,expected_error_code",
- [
- ("duckdb_index", None, 5, True, False, None),
- ("duckdb_index_from_partial_export", None, 5, True, True, None),
- ("gated", None, 5, True, False, None),
- ("partial_duckdb_index_from_multiple_files_public", 1, 1, False, True, None),
- ],
-)
-def test_compute(
- get_parquet_and_info_job_runner: GetParquetAndInfoJobRunner,
- get_parquet_job_runner: GetParquetJobRunner,
- get_parquet_metadata_job_runner: GetParquetMetadataJobRunner,
- get_job_runner: GetJobRunner,
- app_config: AppConfig,
- hub_responses_public: HubDatasetTest,
- hub_responses_duckdb_index: HubDatasetTest,
- hub_responses_gated_duckdb_index: HubDatasetTest,
- hub_dataset_name: str,
- max_split_size_bytes: Optional[int],
- expected_has_fts: bool,
- expected_rows_count: int,
- expected_partial: bool,
- expected_error_code: str,
- expected_data: dict[str, list[Any]],
-) -> None:
- hub_datasets = {
- "duckdb_index": hub_responses_duckdb_index,
- "duckdb_index_from_partial_export": hub_responses_duckdb_index,
- "gated": hub_responses_gated_duckdb_index,
- "partial_duckdb_index_from_multiple_files_public": hub_responses_public,
- }
- dataset = hub_datasets[hub_dataset_name]["name"]
- config = hub_datasets[hub_dataset_name]["config_names_response"]["config_names"][0]["config"]
- split = "train"
- partial_parquet_export = hub_dataset_name == "duckdb_index_from_partial_export"
- multiple_parquet_files = hub_dataset_name == "partial_duckdb_index_from_multiple_files_public"
-
- app_config = (
- app_config
- if max_split_size_bytes is None
- else replace(
- app_config, duckdb_index=replace(app_config.duckdb_index, max_split_size_bytes=max_split_size_bytes)
- )
- )
- app_config = (
- app_config
- if not partial_parquet_export
- else replace(
- app_config,
- parquet_and_info=replace(
- app_config.parquet_and_info, max_dataset_size_bytes=1, max_row_group_byte_size_for_copy=1
- ),
- )
- )
-
- parquet_and_info_job_runner = get_parquet_and_info_job_runner(dataset, config, app_config)
- parquet_and_info_job_runner.pre_compute()
- with ExitStack() as stack:
- if multiple_parquet_files:
- stack.enter_context(patch.object(datasets.config, "MAX_SHARD_SIZE", 1))
- # Set a small chunk size to yield more than one Arrow Table in _generate_tables
- # to be able to generate multiple tables and therefore multiple files
- stack.enter_context(patch.object(CsvConfig, "pd_read_csv_kwargs", {"chunksize": 1}))
- parquet_and_info_response = parquet_and_info_job_runner.compute()
- parquet_and_info_job_runner.post_compute()
- config_parquet_and_info = parquet_and_info_response.content
- if multiple_parquet_files:
- assert len(config_parquet_and_info["parquet_files"]) > 1
-
- assert config_parquet_and_info["partial"] is partial_parquet_export
-
- upsert_response(
- "config-parquet-and-info",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- config=config,
- http_status=HTTPStatus.OK,
- content=config_parquet_and_info,
- )
-
- parquet_job_runner = get_parquet_job_runner(dataset, config, app_config)
- parquet_job_runner.pre_compute()
- parquet_response = parquet_job_runner.compute()
- parquet_job_runner.post_compute()
- config_parquet = parquet_response.content
-
- assert config_parquet["partial"] is partial_parquet_export
-
- upsert_response(
- "config-parquet",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- config=config,
- http_status=HTTPStatus.OK,
- content=config_parquet,
- )
-
- parquet_metadata_job_runner = get_parquet_metadata_job_runner(dataset, config, app_config)
- parquet_metadata_job_runner.pre_compute()
- parquet_metadata_response = parquet_metadata_job_runner.compute()
- parquet_metadata_job_runner.post_compute()
- config_parquet_metadata = parquet_metadata_response.content
- parquet_export_num_rows = sum(
- parquet_file["num_rows"] for parquet_file in config_parquet_metadata["parquet_files_metadata"]
- )
-
- assert config_parquet_metadata["partial"] is partial_parquet_export
-
- upsert_response(
- "config-parquet-metadata",
- dataset=dataset,
- dataset_git_revision=REVISION_NAME,
- config=config,
- http_status=HTTPStatus.OK,
- content=config_parquet_metadata,
- )
-
- # setup is ready, test starts here
- job_runner = get_job_runner(dataset, config, split, app_config)
- job_runner.pre_compute()
-
- if expected_error_code:
- with pytest.raises(Exception) as e:
- job_runner.compute()
- assert e.typename == expected_error_code
- else:
- response = job_runner.compute()
- assert response
- content = response.content
- url = content["url"]
- file_name = content["filename"]
- features = content["features"]
- stemmer = content["stemmer"]
- has_fts = stemmer is not None
- partial = content["partial"]
- stemmer = content["stemmer"]
- assert has_fts == expected_has_fts
- assert isinstance(url, str)
- if partial_parquet_export:
- assert url.rsplit("/", 2)[1] == "partial-" + split
- else:
- assert url.rsplit("/", 2)[1] == split
- assert file_name is not None
- assert Features.from_dict(features) is not None
- assert isinstance(partial, bool)
- assert partial == expected_partial
- if content["num_rows"] < parquet_export_num_rows:
- assert url.rsplit("/", 1)[1] == "partial-index.duckdb"
- else:
- assert url.rsplit("/", 1)[1] == "index.duckdb"
-
- # download locally duckdb index file
- duckdb_file = requests.get(url, headers={"authorization": f"Bearer {app_config.common.hf_token}"})
- with open(file_name, "wb") as f:
- f.write(duckdb_file.content)
-
- con = duckdb.connect(file_name)
- con.execute("INSTALL 'fts';")
- con.execute("LOAD 'fts';")
-
- # validate number of inserted records
- record_count = con.sql("SELECT COUNT(*) FROM data;").fetchall()
- assert record_count is not None
- assert isinstance(record_count, list)
- assert record_count[0] == (expected_rows_count,)
-
- columns = [row[0] for row in con.sql("SELECT column_name FROM (DESCRIBE data);").fetchall()]
- if not multiple_parquet_files:
- expected_columns = expected_data.keys()
- assert sorted(columns) == sorted(expected_columns)
- data = con.sql("SELECT * FROM data;").fetchall()
- data = {column_name: list(values) for column_name, values in zip(columns, zip(*data))} # type: ignore
- assert data == expected_data # type: ignore
- else:
- expected_columns = list(config_parquet_and_info["dataset_info"]["features"]) + ["__hf_index_id"] # type: ignore
- assert sorted(columns) == sorted(expected_columns)
-
- if has_fts:
- assert stemmer == DEFAULT_STEMMER
- # perform a search to validate fts feature
- query = "Lord Vader"
- result = con.execute(
- f"SELECT {ROW_IDX_COLUMN}, text FROM data WHERE fts_main_data.match_bm25({ROW_IDX_COLUMN}, ?) IS NOT NULL;",
- [query],
- )
- rows = result.df()
- assert rows is not None
- assert (rows["text"].eq("Vader turns round and round in circles as his ship spins into space.")).any()
- assert (rows["text"].eq("The wingman spots the pirateship coming at him and warns the Dark Lord")).any()
- assert (rows["text"].eq("We count thirty Rebel ships, Lord Vader.")).any()
- assert (
- rows["text"].eq(
- "Grand Moff Tarkin and Lord Vader are interrupted in their discussion by the buzz of the comlink"
- )
- ).any()
- assert not (rows["text"].eq("There goes another one.")).any()
- assert (rows[ROW_IDX_COLUMN].isin([0, 2, 3, 4, 5, 7, 8, 9])).all()
-
- con.close()
- os.remove(file_name)
- job_runner.post_compute()
-
-
[email protected](
- "split_names,config,deleted_files",
- [
- (
- {"s1", "s2", "s3"},
- "c1",
- set(),
- ),
- (
- {"s1", "s3"},
- "c2",
- {"c2/s2/index.duckdb"},
- ),
- (
- {"s1"},
- "c2",
- {"c2/s2/index.duckdb", "c2/partial-s3/partial-index.duckdb"},
- ),
- ],
-)
-def test_get_delete_operations(split_names: set[str], config: str, deleted_files: set[str]) -> None:
- all_repo_files = {
- "c1/s1/000.parquet",
- "c1/s1/index.duckdb",
- "c2/s1/000.parquet",
- "c2/s1/index.duckdb",
- "c2/s2/000.parquet",
- "c2/s2/index.duckdb",
- "c2/partial-s3/000.parquet",
- "c2/partial-s3/partial-index.duckdb",
- }
- delete_operations = get_delete_operations(all_repo_files=all_repo_files, split_names=split_names, config=config)
- assert set(delete_operation.path_in_repo for delete_operation in delete_operations) == deleted_files
-
-
[email protected](
- "features, expected",
- [
- (
- Features({"col_1": Value("string"), "col_2": Value("int64"), "col_3": Value("large_string")}),
- ["col_1", "col_3"],
- ),
- (
- Features(
- {
- "nested_1": [Value("string")],
- "nested_2": Sequence(Value("string")),
- "nested_3": Sequence({"foo": Value("string")}),
- "nested_4": {"foo": Value("string"), "bar": Value("int64")},
- "nested_int": [Value("int64")],
- }
- ),
- ["nested_1", "nested_2", "nested_3", "nested_4"],
- ),
- (Features({"col_1": Image()}), []),
- (
- Features(
- {
- "col_1": Translation(languages=["en", "fr"]),
- "col_2": TranslationVariableLanguages(languages=["fr", "en"]),
- }
- ),
- ["col_1", "col_2"],
- ),
- ],
-)
-def test_get_indexable_columns(features: Features, expected: list[str]) -> None:
- indexable_columns = get_indexable_columns(features)
- assert indexable_columns == expected
-
-
-DATA = """Hello there !
-General Kenobi.
-You are a bold one.
-Kill him !
-...
-Back away ! I will deal with this Jedi slime myself"""
-
-
-FTS_COMMAND = (
- f"SELECT * EXCLUDE ({HF_FTS_SCORE}) FROM (SELECT *, fts_main_data.match_bm25({ROW_IDX_COLUMN}, ?) AS {HF_FTS_SCORE}"
- f" FROM data) A WHERE {HF_FTS_SCORE} IS NOT NULL ORDER BY {ROW_IDX_COLUMN};"
-)
-
-
[email protected](
- "df,query,expected_ids",
- [
- (pd.DataFrame([{"line": line} for line in DATA.split("\n")]), "bold", [2]),
- (pd.DataFrame([{"nested": [line]} for line in DATA.split("\n")]), "bold", [2]),
- (pd.DataFrame([{"nested": {"foo": line}} for line in DATA.split("\n")]), "bold", [2]),
- (pd.DataFrame([{"nested": [{"foo": line}]} for line in DATA.split("\n")]), "bold", [2]),
- (pd.DataFrame([{"nested": [{"foo": line, "bar": 0}]} for line in DATA.split("\n")]), "bold", [2]),
- (
- pd.DataFrame(
- [
- {"translation": {"en": "favorite music", "es": "música favorita"}},
- {"translation": {"en": "time to sleep", "es": "hora de dormir"}},
- {"translation": {"en": "i like rock music", "es": "me gusta la música rock"}},
- ]
- ),
- "music",
- [0, 2],
- ),
- ],
-)
-def test_index_command(df: pd.DataFrame, query: str, expected_ids: list[int], tmp_path: Path) -> None:
- parquet_path = str(tmp_path / "0000.parquet")
- df.to_parquet(parquet_path, index=False)
- columns = ",".join('"' + str(column) + '"' for column in df.columns)
- con = duckdb.connect()
- con.sql(CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(columns=columns, source=[parquet_path]))
- con.sql(CREATE_INDEX_ID_COLUMN_COMMANDS)
- con.sql(CREATE_INDEX_COMMAND.format(columns=columns, stemmer=DEFAULT_STEMMER))
- result = con.execute(FTS_COMMAND, parameters=[query]).df()
- assert list(result.__hf_index_id) == expected_ids
-
-
-def test_table_column_hf_index_id_is_monotonic_increasing(tmp_path: Path) -> None:
- pa_table = pa.Table.from_pydict({"text": [f"text-{i}" for i in range(100)]})
- parquet_path = str(tmp_path / "0000.parquet")
- pq.write_table(pa_table, parquet_path, row_group_size=2)
- db_path = str(tmp_path / "index.duckdb")
- column_names = ",".join(f'"{column}"' for column in pa_table.column_names)
- with duckdb.connect(db_path) as con:
- con.sql(CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(columns=column_names, source=[parquet_path]))
- con.sql(CREATE_INDEX_ID_COLUMN_COMMANDS)
- with duckdb.connect(db_path) as con:
- df = con.sql("SELECT * FROM data").to_df()
- assert df[ROW_IDX_COLUMN].is_monotonic_increasing
- assert df[ROW_IDX_COLUMN].is_unique
diff --git a/services/worker/tests/job_runners/split/test_is_valid.py b/services/worker/tests/job_runners/split/test_is_valid.py
index 2329627a..ecbb225d 100644
--- a/services/worker/tests/job_runners/split/test_is_valid.py
+++ b/services/worker/tests/job_runners/split/test_is_valid.py
@@ -49 +49 @@ UPSTREAM_RESPONSE_SPLIT_DUCKDB_INDEX: UpstreamResponse = UpstreamResponse(
- kind="split-duckdb-index",
+ kind="config-parquet-metadata",
@@ -53 +52,0 @@ UPSTREAM_RESPONSE_SPLIT_DUCKDB_INDEX: UpstreamResponse = UpstreamResponse(
- split=SPLIT,
@@ -55 +54 @@ UPSTREAM_RESPONSE_SPLIT_DUCKDB_INDEX: UpstreamResponse = UpstreamResponse(
- content={"stemmer": "porter"},
+ content={"features": {"text": {"dtype": "string", "_type": "Value"}}},
@@ -58 +57 @@ UPSTREAM_RESPONSE_SPLIT_DUCKDB_INDEX_ONLY_DATA: UpstreamResponse = UpstreamRespo
- kind="split-duckdb-index",
+ kind="config-parquet-metadata",
@@ -62 +60,0 @@ UPSTREAM_RESPONSE_SPLIT_DUCKDB_INDEX_ONLY_DATA: UpstreamResponse = UpstreamRespo
- split=SPLIT,
@@ -64 +62 @@ UPSTREAM_RESPONSE_SPLIT_DUCKDB_INDEX_ONLY_DATA: UpstreamResponse = UpstreamRespo
- content={"stemmer": None},
+ content={"features": {"id": {"dtype": "int64", "_type": "Value"}}},
diff --git a/tools/docker-compose-dataset-viewer.yml b/tools/docker-compose-dataset-viewer.yml
index f3fc546d..d1e6a10f 100644
--- a/tools/docker-compose-dataset-viewer.yml
+++ b/tools/docker-compose-dataset-viewer.yml
@@ -166 +165,0 @@ services:
- - duckdb-index:${DUCKDB_INDEX_CACHE_DIRECTORY-/duckdb-index}:rw
@@ -176,5 +174,0 @@ services:
- DUCKDB_INDEX_CACHE_DIRECTORY: ${DUCKDB_INDEX_CACHE_DIRECTORY-/duckdb-index}
- DUCKDB_INDEX_COMMIT_MESSAGE: ${DUCKDB_INDEX_COMMIT_MESSAGE-Update duckdb index file}
- DUCKDB_INDEX_TARGET_REVISION: ${DUCKDB_INDEX_TARGET_REVISION-refs/convert/duckdb}
- DUCKDB_INDEX_URL_TEMPLATE: ${DUCKDB_INDEX_URL_TEMPLATE-/datasets/%s/resolve/%s/%s}
- DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES: ${DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES-100_000_000}
diff --git a/tools/docker-compose-dev-dataset-viewer.yml b/tools/docker-compose-dev-dataset-viewer.yml
index 2a1e713b..6959d232 100644
--- a/tools/docker-compose-dev-dataset-viewer.yml
+++ b/tools/docker-compose-dev-dataset-viewer.yml
@@ -179 +178,0 @@ services:
- - duckdb-index:${DUCKDB_INDEX_CACHE_DIRECTORY-/duckdb-index}:rw
@@ -191,5 +189,0 @@ services:
- DUCKDB_INDEX_CACHE_DIRECTORY: ${DUCKDB_INDEX_CACHE_DIRECTORY-/duckdb-index}
- DUCKDB_INDEX_COMMIT_MESSAGE: ${DUCKDB_INDEX_COMMIT_MESSAGE-Update duckdb index file}
- DUCKDB_INDEX_TARGET_REVISION: ${DUCKDB_INDEX_TARGET_REVISION-refs/convert/duckdb}
- DUCKDB_INDEX_URL_TEMPLATE: ${DUCKDB_INDEX_URL_TEMPLATE-/datasets/%s/resolve/%s/%s}
- DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES: ${DUCKDB_INDEX_MAX_SPLIT_SIZE_BYTES-100_000_000}
|
|
3f1f5eb14b051293fe0d24fa14c54075b2f61065
|
Quentin Lhoest
| 2025-05-02T15:02:31 |
Always truncate binary data (#3187)
|
diff --git a/libs/libcommon/src/libcommon/viewer_utils/features.py b/libs/libcommon/src/libcommon/viewer_utils/features.py
index 3c86bf70..95342668 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/features.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/features.py
@@ -41 +40,0 @@ from libcommon.viewer_utils.asset import (
-UNSUPPORTED_FEATURES = [Value("binary")]
@@ -467 +466 @@ def get_supported_unsupported_columns(
- unsupported_features: list[FeatureType] = UNSUPPORTED_FEATURES,
+ unsupported_features: list[FeatureType] = [],
diff --git a/services/rows/src/rows/routes/rows.py b/services/rows/src/rows/routes/rows.py
index 1bf38928..b01c4f2b 100644
--- a/services/rows/src/rows/routes/rows.py
+++ b/services/rows/src/rows/routes/rows.py
@@ -30 +29,0 @@ from libcommon.storage_client import StorageClient
-from libcommon.viewer_utils.features import UNSUPPORTED_FEATURES
@@ -62 +60,0 @@ def create_rows_endpoint(
- unsupported_features=UNSUPPORTED_FEATURES,
@@ -104,7 +102,4 @@ def create_rows_endpoint(
- truncated_columns: list[str] = []
- if dataset == "Major-TOM/Core-S2L2A" or dataset == "foursquare/fsq-os-places":
- pa_table, truncated_columns = rows_index.query_truncated_binary(
- offset=offset, length=length
- )
- else:
- pa_table = rows_index.query(offset=offset, length=length)
+ # Some datasets have very long binary data that we truncate
+ pa_table, truncated_columns = rows_index.query_truncated_binary(
+ offset=offset, length=length
+ )
diff --git a/services/worker/src/worker/job_runners/split/first_rows.py b/services/worker/src/worker/job_runners/split/first_rows.py
index c15a7a84..fcaa7ddf 100644
--- a/services/worker/src/worker/job_runners/split/first_rows.py
+++ b/services/worker/src/worker/job_runners/split/first_rows.py
@@ -101,5 +101,2 @@ def compute_first_rows_from_parquet_response(
- truncated_columns: list[str] = []
- if dataset == "Major-TOM/Core-S2L2A":
- pa_table, truncated_columns = rows_index.query_truncated_binary(offset=0, length=rows_max_number)
- else:
- pa_table = rows_index.query(offset=0, length=rows_max_number)
+ # Some datasets have very long binary data that we truncate
+ pa_table, truncated_columns = rows_index.query_truncated_binary(offset=0, length=rows_max_number)
|
|
252b0884cf7f621ed82d39a519cec7f8389a37b6
|
Quentin Lhoest
| 2025-04-30T14:36:19 |
Enable new filter/search on all datasets (#3185)
|
diff --git a/libs/libcommon/src/libcommon/duckdb_utils.py b/libs/libcommon/src/libcommon/duckdb_utils.py
index 223f0610..a4422925 100644
--- a/libs/libcommon/src/libcommon/duckdb_utils.py
+++ b/libs/libcommon/src/libcommon/duckdb_utils.py
@@ -26,11 +26,2 @@ from libcommon.statistics_utils import (
-DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS = [
- "vevotx/*",
- "openai/*",
- "EleutherAI/*",
- "HuggingFaceFW/*",
- "TIGER-Lab/*",
- "Rapidata/*", # images
- "MrDragonFox/*", # audios
- "*NoDuckdbRef*",
-]
-DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH = 10 # ~40% of users/orgs have a string length >= 10
+DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS = ["*"] # all datasets
+DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH = 10 # TODO: remove since enabled for "*"
|
|
11f9d28fd9bb2b940b430614276d3cc9ce2ab268
|
Quentin Lhoest
| 2025-04-28T16:02:55 |
Fix empty result in search (#3184)
|
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index 69a4a2ae..9cad438a 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -104 +104,2 @@ async def create_response(
- pa_table = pa_table.drop(unsupported_columns)
+ if len(pa_table) > 0:
+ pa_table = pa_table.drop(unsupported_columns)
|
|
a54bdfe65b4638876be26342dc391afcb936e199
|
Quentin Lhoest
| 2025-04-28T15:43:28 |
Enable new search/filter (without `refs/convert/duckdb`) for 40% of users/orgs (#3183)
|
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 7d00dd00..4eb3de01 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -17,0 +18 @@ import duckdb
+import filelock
@@ -267,6 +268,8 @@ async def get_index_file_location_and_build_if_missing(
- async with AsyncFileLock(index_file_location + ".lock", timeout=60):
- if not await index_path.is_file():
- cache_folder = Path(duckdb_index_file_directory) / HUB_DOWNLOAD_CACHE_FOLDER
- cache_folder.mkdir(exist_ok=True, parents=True)
- with StepProfiler(method="get_index_file_location_and_build_if_missing", step="build duckdb index"):
- try:
+ try:
+ async with AsyncFileLock(index_file_location + ".lock", timeout=20):
+ if not await index_path.is_file():
+ cache_folder = Path(duckdb_index_file_directory) / HUB_DOWNLOAD_CACHE_FOLDER
+ cache_folder.mkdir(exist_ok=True, parents=True)
+ with StepProfiler(
+ method="get_index_file_location_and_build_if_missing", step="build duckdb index"
+ ):
@@ -295,3 +298,3 @@ async def get_index_file_location_and_build_if_missing(
- except asyncio.TimeoutError:
- _msg = "this can take a minute" if len(_all_tasks) < 20 else "this may take longer than usual"
- raise ResponseNotReadyError("the dataset index is loading, " + _msg)
+ except (filelock.Timeout, asyncio.TimeoutError):
+ _msg = "this can take a minute" if len(_all_tasks) < 20 else "this may take longer than usual"
+ raise ResponseNotReadyError("the dataset index is loading, " + _msg)
diff --git a/libs/libcommon/src/libcommon/duckdb_utils.py b/libs/libcommon/src/libcommon/duckdb_utils.py
index 43161ca8..223f0610 100644
--- a/libs/libcommon/src/libcommon/duckdb_utils.py
+++ b/libs/libcommon/src/libcommon/duckdb_utils.py
@@ -35,0 +36 @@ DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS = [
+DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH = 10 # ~40% of users/orgs have a string length >= 10
diff --git a/services/search/src/search/routes/filter.py b/services/search/src/search/routes/filter.py
index 179cfd30..763fb3e4 100644
--- a/services/search/src/search/routes/filter.py
+++ b/services/search/src/search/routes/filter.py
@@ -36 +36,5 @@ from libcommon.constants import ROW_IDX_COLUMN
-from libcommon.duckdb_utils import DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS, duckdb_index_is_partial
+from libcommon.duckdb_utils import (
+ DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS,
+ DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH,
+ duckdb_index_is_partial,
+)
@@ -112 +116,4 @@ def create_filter_endpoint(
- if any(fnmatch(dataset, pat) for pat in DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS):
+ if (
+ any(fnmatch(dataset, pat) for pat in DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS)
+ or len(dataset.split("/")[0]) >= DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH
+ ):
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index e37dec7c..69a4a2ae 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -39 +39,5 @@ from libcommon.dtos import PaginatedResponse
-from libcommon.duckdb_utils import DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS, duckdb_index_is_partial
+from libcommon.duckdb_utils import (
+ DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS,
+ DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH,
+ duckdb_index_is_partial,
+)
@@ -168 +172,4 @@ def create_search_endpoint(
- if any(fnmatch(dataset, pat) for pat in DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS):
+ if (
+ any(fnmatch(dataset, pat) for pat in DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS)
+ or len(dataset.split("/")[0]) >= DISABLED_DUCKDB_REF_BRANCH_USER_OR_ORG_NAME_MIN_LENGTH
+ ):
|
|
e7dc22e47749d99da620bc1bd6e207c336adc299
|
Quentin Lhoest
| 2025-04-28T14:50:14 |
Return response not ready if dataset indexing is too long (#3182)
|
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 7a418d87..7d00dd00 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -3,0 +4 @@
+import asyncio
@@ -8,0 +10,2 @@ import re
+import traceback
+from collections.abc import Coroutine
@@ -11 +14 @@ from pathlib import Path
-from typing import Any, Optional
+from typing import Any, Optional, TypeVar
@@ -42 +45 @@ from libcommon.utils import download_file_from_hub
-from libapi.exceptions import DownloadIndexError
+from libapi.exceptions import DownloadIndexError, ResponseNotReadyError
@@ -48,0 +52,29 @@ HUB_DOWNLOAD_CACHE_FOLDER = "cache"
+T = TypeVar("T")
+
+_all_tasks: list[asyncio.Task[Any]] = [] # kinda like threading.all_threads()
+
+
+def _handle_errors(task: asyncio.Task[Any]) -> None:
+ try:
+ exc = task.exception() # Also marks that the exception has been handled
+ if exc:
+ traceback.print_exception(type(exc), exc, exc.__traceback__)
+ except asyncio.exceptions.CancelledError:
+ pass
+
+
+def _task_done(task: asyncio.Task[Any]) -> None:
+ _all_tasks.remove(task)
+ _handle_errors(task)
+
+
+def create_task(awaitable: Coroutine[None, None, T]) -> asyncio.Task[T]:
+ """
+ Spawn an awaitable as a stand-alone task.
+ This allows for fire-and-forget with errors logging.
+ """
+ task = asyncio.create_task(awaitable)
+ _all_tasks.append(task)
+ task.add_done_callback(_task_done)
+ return task
+
@@ -240,15 +272,26 @@ async def get_index_file_location_and_build_if_missing(
- await anyio.to_thread.run_sync(
- build_index_file,
- cache_folder,
- index_folder,
- dataset,
- config,
- split,
- repo_file_location,
- hf_token,
- max_split_size_bytes,
- extensions_directory,
- parquet_metadata_directory,
- split_parquet_files,
- features,
- )
+ try:
+ await asyncio.wait_for(
+ asyncio.shield(
+ create_task(
+ anyio.to_thread.run_sync(
+ build_index_file,
+ cache_folder,
+ index_folder,
+ dataset,
+ config,
+ split,
+ repo_file_location,
+ hf_token,
+ max_split_size_bytes,
+ extensions_directory,
+ parquet_metadata_directory,
+ split_parquet_files,
+ features,
+ )
+ )
+ ),
+ timeout=20,
+ )
+ except asyncio.TimeoutError:
+ _msg = "this can take a minute" if len(_all_tasks) < 20 else "this may take longer than usual"
+ raise ResponseNotReadyError("the dataset index is loading, " + _msg)
|
|
9d92118aa106748463cf31354f7bc0355d5dd97d
|
Quentin Lhoest
| 2025-04-24T14:13:52 |
add two indexes (#3179)
|
diff --git a/libs/libcommon/src/libcommon/queue/jobs.py b/libs/libcommon/src/libcommon/queue/jobs.py
index 17297223..5ca5b322 100644
--- a/libs/libcommon/src/libcommon/queue/jobs.py
+++ b/libs/libcommon/src/libcommon/queue/jobs.py
@@ -169,0 +170 @@ class JobDocument(Document):
+ ("priority", "status", "created_at", "namespace", "dataset", "difficulty", "unicity_id"),
@@ -170,0 +172 @@ class JobDocument(Document):
+ ("priority", "status", "created_at", "dataset", "difficulty", "namespace"),
|
|
88fca51a52ad6fd4a22120a1af1b1ea2535c2b51
|
ccl-core
| 2025-04-23T15:36:40 |
Use new cr:UInt* data types. (#3160)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index e06b8935..56585100 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -60,4 +60,4 @@ HF_TO_CROISSANT_VALUE_TYPE = {
- "uint8": "sc:Integer",
- "uint16": "sc:Integer",
- "uint32": "sc:Integer",
- "uint64": "sc:Integer",
+ "uint8": "cr:UInt8",
+ "uint16": "cr:UInt16",
+ "uint32": "cr:UInt32",
+ "uint64": "cr:UInt64",
|
|
4df09e52f88434f5c66853b12ddeff72abd8e18f
|
Quentin Lhoest
| 2025-04-23T15:27:06 |
Parallelize tokenization to enable fast on-the-fly indexing (#3178)
|
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 6ef566ed..7a418d87 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -18 +18 @@ from huggingface_hub import HfApi
-from libcommon.constants import CONFIG_PARQUET_METADATA_KIND, PARQUET_REVISION, SPLIT_DUCKDB_INDEX_KIND
+from libcommon.constants import CONFIG_PARQUET_METADATA_KIND, PARQUET_REVISION, ROW_IDX_COLUMN, SPLIT_DUCKDB_INDEX_KIND
@@ -20 +19,0 @@ from libcommon.duckdb_utils import (
- CREATE_INDEX_COMMAND,
@@ -26,2 +24,0 @@ from libcommon.duckdb_utils import (
- INSTALL_AND_LOAD_EXTENSION_COMMAND,
- SET_EXTENSIONS_DIRECTORY_COMMAND,
@@ -28,0 +26 @@ from libcommon.duckdb_utils import (
+ create_index,
@@ -121 +119 @@ def build_index_file(
- column_names = ",".join(f'"{column}"' for column in features)
+ column_names_sql = ",".join(f'"{column}"' for column in features)
@@ -124 +122 @@ def build_index_file(
- indexable_columns = ",".join(f'"{column}"' for column in get_indexable_columns(Features.from_dict(features)))
+ indexable_columns = get_indexable_columns(Features.from_dict(features))
@@ -151,4 +148,0 @@ def build_index_file(
- con = duckdb.connect(str(Path(index_file_location).resolve()))
-
- hf_api = HfApi(token=hf_token)
- stemmer = None
@@ -157,7 +151,8 @@ def build_index_file(
- if transformed_df is not None:
- logging.debug(transformed_df.head())
- # update original data with results of transformations (string lengths, audio durations, etc.):
- logging.info(f"Updating data with {transformed_df.columns}")
- create_command_sql = CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
- columns=column_names, source=[str(p) for p in all_split_parquets]
- )
+ with duckdb.connect(index_file_location) as con:
+ if transformed_df is not None:
+ logging.debug(transformed_df.head())
+ # update original data with results of transformations (string lengths, audio durations, etc.):
+ logging.info(f"Updating data with {transformed_df.columns}")
+ create_command_sql = CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
+ columns=column_names_sql, source=[str(p) for p in all_split_parquets]
+ )
@@ -165,4 +160,4 @@ def build_index_file(
- else:
- create_command_sql = CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
- columns=column_names, source=[str(p) for p in all_split_parquets]
- )
+ else:
+ create_command_sql = CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
+ columns=column_names_sql, source=[str(p) for p in all_split_parquets]
+ )
@@ -170,5 +165,7 @@ def build_index_file(
- logging.info(create_command_sql)
- con.sql(create_command_sql)
- con.sql(CREATE_INDEX_ID_COLUMN_COMMANDS)
- logging.debug(con.sql("SELECT * FROM data LIMIT 5;"))
- logging.debug(con.sql("SELECT count(*) FROM data;"))
+ logging.info(create_command_sql)
+ con.sql(create_command_sql)
+ con.sql(CREATE_INDEX_ID_COLUMN_COMMANDS)
+ logging.debug(con.sql("SELECT * FROM data LIMIT 5;"))
+ logging.debug(con.sql("SELECT count(*) FROM data;"))
+ # make sure there is no WAL at the end
+ con.sql("CHECKPOINT;")
@@ -177,14 +174,15 @@ def build_index_file(
- # configure duckdb extensions
- if extensions_directory is not None:
- con.execute(SET_EXTENSIONS_DIRECTORY_COMMAND.format(directory=extensions_directory))
- con.execute(INSTALL_AND_LOAD_EXTENSION_COMMAND)
- stemmer = get_monolingual_stemmer(hf_api.dataset_info(repo_id=dataset).card_data)
- create_index_sql = CREATE_INDEX_COMMAND.format(columns=indexable_columns, stemmer=stemmer)
- logging.info(create_index_sql)
- con.sql(create_index_sql)
-
- # make sure there is no WAL at the end
- con.sql("CHECKPOINT;")
-
- finally:
- con.close()
+ stemmer = get_monolingual_stemmer(HfApi(token=hf_token).dataset_info(repo_id=dataset).card_data)
+ logging.info(f"Indexing {dataset} ({config=}, {split=})")
+ create_index(
+ database=index_file_location,
+ input_table="data",
+ columns=indexable_columns,
+ stemmer=stemmer,
+ input_id=ROW_IDX_COLUMN,
+ fts_schema="fts_main_data",
+ extensions_directory=extensions_directory,
+ )
+ logging.info(f"Done indexing {dataset} ({config=}, {split=})")
+ except Exception:
+ os.remove(index_file_location)
+ raise
diff --git a/libs/libcommon/src/libcommon/duckdb_utils.py b/libs/libcommon/src/libcommon/duckdb_utils.py
index f6cc1bce..43161ca8 100644
--- a/libs/libcommon/src/libcommon/duckdb_utils.py
+++ b/libs/libcommon/src/libcommon/duckdb_utils.py
@@ -0,0 +1 @@
+import tempfile
@@ -1,0 +3 @@ from pathlib import Path
+from textwrap import dedent
@@ -3,0 +6 @@ from typing import Any, Literal, Optional
+import duckdb
@@ -6,0 +10 @@ from huggingface_hub.repocard_data import DatasetCardData
+from tqdm.contrib.concurrent import thread_map
@@ -210,0 +215,337 @@ def duckdb_index_is_partial(duckdb_index_url: str) -> bool:
+
+
+def create_index(
+ database: str,
+ input_table: str,
+ columns: list[str],
+ stemmer: str,
+ input_id: str,
+ fts_schema: str,
+ extensions_directory: Optional[str] = None,
+) -> None:
+ placeholders: dict[str, str] = {
+ "database": database,
+ "input_table": input_table,
+ "stemmer": stemmer,
+ "input_id": input_id,
+ "fts_schema": fts_schema,
+ }
+
+ def _sql(con: duckdb.DuckDBPyConnection, query: str) -> duckdb.DuckDBPyRelation:
+ query = dedent(query)
+ for key, value in placeholders.items():
+ query = query.replace(f"%{key}%", value)
+ out = con.sql(query)
+ return out
+
+ with tempfile.TemporaryDirectory(suffix=".duckdb") as tmp_dir:
+ with duckdb.connect(":memory:") as con:
+ # configure duckdb extensions
+ if extensions_directory is not None:
+ con.execute(SET_EXTENSIONS_DIRECTORY_COMMAND.format(directory=extensions_directory))
+ con.execute(INSTALL_AND_LOAD_EXTENSION_COMMAND)
+
+ # init
+ _sql(con, "ATTACH '%database%' as db;")
+ _sql(con, "USE db;")
+
+ # check input_table and get number of rows
+ _count = _sql(con, "SELECT count(*) FROM %input_table%;").fetchone()
+ if _count and isinstance(_count[0], int):
+ count = _count[0]
+ else:
+ raise RuntimeError(f"failed to count rows from {input_table}")
+
+ # create fts schema
+ _sql(con, "DROP SCHEMA IF EXISTS %fts_schema% CASCADE;")
+ _sql(con, "CREATE SCHEMA %fts_schema%;")
+
+ # define stopwords
+ _sql(con, "CREATE TABLE %fts_schema%.stopwords (sw VARCHAR);")
+ _sql(
+ con,
+ "INSERT INTO %fts_schema%.stopwords VALUES ('a'), ('a''s'), ('able'), ('about'), ('above'), ('according'), ('accordingly'), ('across'), ('actually'), ('after'), ('afterwards'), ('again'), ('against'), ('ain''t'), ('all'), ('allow'), ('allows'), ('almost'), ('alone'), ('along'), ('already'), ('also'), ('although'), ('always'), ('am'), ('among'), ('amongst'), ('an'), ('and'), ('another'), ('any'), ('anybody'), ('anyhow'), ('anyone'), ('anything'), ('anyway'), ('anyways'), ('anywhere'), ('apart'), ('appear'), ('appreciate'), ('appropriate'), ('are'), ('aren''t'), ('around'), ('as'), ('aside'), ('ask'), ('asking'), ('associated'), ('at'), ('available'), ('away'), ('awfully'), ('b'), ('be'), ('became'), ('because'), ('become'), ('becomes'), ('becoming'), ('been'), ('before'), ('beforehand'), ('behind'), ('being'), ('believe'), ('below'), ('beside'), ('besides'), ('best'), ('better'), ('between'), ('beyond'), ('both'), ('brief'), ('but'), ('by'), ('c'), ('c''mon'), ('c''s'), ('came'), ('can'), ('can''t'), ('cannot'), ('cant'), ('cause'), ('causes'), ('certain'), ('certainly'), ('changes'), ('clearly'), ('co'), ('com'), ('come'), ('comes'), ('concerning'), ('consequently'), ('consider'), ('considering'), ('contain'), ('containing'), ('contains'), ('corresponding'), ('could'), ('couldn''t'), ('course'), ('currently'), ('d'), ('definitely'), ('described'), ('despite'), ('did'), ('didn''t'), ('different'), ('do'), ('does'), ('doesn''t'), ('doing'), ('don''t'), ('done'), ('down'), ('downwards'), ('during'), ('e'), ('each'), ('edu'), ('eg'), ('eight'), ('either'), ('else'), ('elsewhere'), ('enough'), ('entirely'), ('especially'), ('et'), ('etc'), ('even'), ('ever'), ('every'), ('everybody'), ('everyone'), ('everything'), ('everywhere'), ('ex'), ('exactly'), ('example'), ('except'), ('f'), ('far'), ('few'), ('fifth'), ('first'), ('five'), ('followed'), ('following'), ('follows'), ('for'), ('former'), ('formerly'), ('forth'), ('four'), ('from'), ('further'), ('furthermore'), ('g'), ('get'), ('gets'), ('getting'), ('given'), ('gives'), ('go'), ('goes'), ('going'), ('gone'), ('got'), ('gotten'), ('greetings'), ('h'), ('had'), ('hadn''t'), ('happens'), ('hardly'), ('has'), ('hasn''t'), ('have'), ('haven''t'), ('having'), ('he'), ('he''s'), ('hello'), ('help'), ('hence'), ('her'), ('here'), ('here''s'), ('hereafter'), ('hereby'), ('herein'), ('hereupon'), ('hers'), ('herself'), ('hi'), ('him'), ('himself'), ('his'), ('hither'), ('hopefully'), ('how'), ('howbeit'), ('however'), ('i'), ('i''d'), ('i''ll'), ('i''m'), ('i''ve'), ('ie'), ('if'), ('ignored'), ('immediate'), ('in'), ('inasmuch'), ('inc'), ('indeed'), ('indicate'), ('indicated'), ('indicates'), ('inner'), ('insofar'), ('instead'), ('into'), ('inward'), ('is'), ('isn''t'), ('it'), ('it''d'), ('it''ll'), ('it''s'), ('its'), ('itself'), ('j'), ('just'), ('k'), ('keep'), ('keeps'), ('kept'), ('know'), ('knows'), ('known'), ('l'), ('last'), ('lately'), ('later'), ('latter'), ('latterly'), ('least'), ('less'), ('lest'), ('let'), ('let''s'), ('like'), ('liked'), ('likely'), ('little'), ('look'), ('looking'), ('looks'), ('ltd'), ('m'), ('mainly'), ('many'), ('may'), ('maybe'), ('me'), ('mean'), ('meanwhile'), ('merely'), ('might'), ('more'), ('moreover'), ('most'), ('mostly'), ('much'), ('must'), ('my'), ('myself'), ('n'), ('name'), ('namely'), ('nd'), ('near'), ('nearly'), ('necessary'), ('need'), ('needs'), ('neither'), ('never'), ('nevertheless'), ('new'), ('next'), ('nine'), ('no'), ('nobody'), ('non'), ('none'), ('noone'), ('nor'), ('normally'), ('not'), ('nothing'), ('novel'), ('now'), ('nowhere'), ('o'), ('obviously'), ('of'), ('off'), ('often'), ('oh'), ('ok'), ('okay'), ('old'), ('on'), ('once'), ('one'), ('ones'), ('only'), ('onto'), ('or'), ('other'), ('others'), ('otherwise'), ('ought'), ('our'), ('ours'), ('ourselves'), ('out'), ('outside'), ('over'), ('overall'), ('own');",
+ )
+ _sql(
+ con,
+ "INSERT INTO %fts_schema%.stopwords VALUES ('p'), ('particular'), ('particularly'), ('per'), ('perhaps'), ('placed'), ('please'), ('plus'), ('possible'), ('presumably'), ('probably'), ('provides'), ('q'), ('que'), ('quite'), ('qv'), ('r'), ('rather'), ('rd'), ('re'), ('really'), ('reasonably'), ('regarding'), ('regardless'), ('regards'), ('relatively'), ('respectively'), ('right'), ('s'), ('said'), ('same'), ('saw'), ('say'), ('saying'), ('says'), ('second'), ('secondly'), ('see'), ('seeing'), ('seem'), ('seemed'), ('seeming'), ('seems'), ('seen'), ('self'), ('selves'), ('sensible'), ('sent'), ('serious'), ('seriously'), ('seven'), ('several'), ('shall'), ('she'), ('should'), ('shouldn''t'), ('since'), ('six'), ('so'), ('some'), ('somebody'), ('somehow'), ('someone'), ('something'), ('sometime'), ('sometimes'), ('somewhat'), ('somewhere'), ('soon'), ('sorry'), ('specified'), ('specify'), ('specifying'), ('still'), ('sub'), ('such'), ('sup'), ('sure'), ('t'), ('t''s'), ('take'), ('taken'), ('tell'), ('tends'), ('th'), ('than'), ('thank'), ('thanks'), ('thanx'), ('that'), ('that''s'), ('thats'), ('the'), ('their'), ('theirs'), ('them'), ('themselves'), ('then'), ('thence'), ('there'), ('there''s'), ('thereafter'), ('thereby'), ('therefore'), ('therein'), ('theres'), ('thereupon'), ('these'), ('they'), ('they''d'), ('they''ll'), ('they''re'), ('they''ve'), ('think'), ('third'), ('this'), ('thorough'), ('thoroughly'), ('those'), ('though'), ('three'), ('through'), ('throughout'), ('thru'), ('thus'), ('to'), ('together'), ('too'), ('took'), ('toward'), ('towards'), ('tried'), ('tries'), ('truly'), ('try'), ('trying'), ('twice'), ('two'), ('u'), ('un'), ('under'), ('unfortunately'), ('unless'), ('unlikely'), ('until'), ('unto'), ('up'), ('upon'), ('us'), ('use'), ('used'), ('useful'), ('uses'), ('using'), ('usually'), ('uucp'), ('v'), ('value'), ('various'), ('very'), ('via'), ('viz'), ('vs'), ('w'), ('want'), ('wants'), ('was'), ('wasn''t'), ('way'), ('we'), ('we''d'), ('we''ll'), ('we''re'), ('we''ve'), ('welcome'), ('well'), ('went'), ('were'), ('weren''t'), ('what'), ('what''s'), ('whatever'), ('when'), ('whence'), ('whenever'), ('where'), ('where''s'), ('whereafter'), ('whereas'), ('whereby'), ('wherein'), ('whereupon'), ('wherever'), ('whether'), ('which'), ('while'), ('whither'), ('who'), ('who''s'), ('whoever'), ('whole'), ('whom'), ('whose'), ('why'), ('will'), ('willing'), ('wish'), ('with'), ('within'), ('without'), ('won''t'), ('wonder'), ('would'), ('would'), ('wouldn''t'), ('x'), ('y'), ('yes'), ('yet'), ('you'), ('you''d'), ('you''ll'), ('you''re'), ('you''ve'), ('your'), ('yours'), ('yourself'), ('yourselves'), ('z'), ('zero');",
+ )
+
+ # define tokenize macro
+ _sql(
+ con,
+ "CREATE MACRO %fts_schema%.tokenize(s) AS string_split_regex(regexp_replace(lower(strip_accents(s::VARCHAR)), '[^a-z]', ' ', 'g'), '\s+');",
+ )
+
+ # create fields table
+ field_values = ", ".join(f"({i}, '{field}')" for i, field in enumerate(columns))
+ _sql(
+ con,
+ """
+ CREATE TABLE %fts_schema%.docs AS (
+ SELECT rowid AS docid,
+ "%input_id%" AS name
+ FROM %input_table%
+ );
+ """,
+ )
+ _sql(con, "CREATE TABLE %fts_schema%.fields (fieldid BIGINT, field VARCHAR);")
+ _sql(
+ con,
+ f"INSERT INTO %fts_schema%.fields VALUES {field_values};", # nosec - field_values is safe
+ )
+ _sql(con, "CHECKPOINT;")
+
+ # tokenize in parallel (see https://github.com/duckdb/duckdb-fts/issues/7)
+ num_jobs = min(16, max(1, count // 4))
+ batch_size = 1 + count // num_jobs
+ commands = [
+ (
+ (
+ SET_EXTENSIONS_DIRECTORY_COMMAND.format(directory=extensions_directory)
+ if extensions_directory is not None
+ else ""
+ )
+ + INSTALL_AND_LOAD_EXTENSION_COMMAND
+ + (
+ "ATTACH '%database%' as db (READ_ONLY);" # nosec - tmp_dir, batch_size, rank and i are safe
+ "USE db;"
+ f"ATTACH '{tmp_dir}/tmp_{rank}_{i}.duckdb' as tmp_{rank}_{i};"
+ f"""
+ CREATE TABLE tmp_{rank}_{i}.tokenized AS (
+ SELECT unnest(%fts_schema%.tokenize(fts_ii."{column}")) AS w,
+ {rank * batch_size} + row_number() OVER () - 1 AS docid,
+ {i} AS fieldid
+ FROM (
+ SELECT * FROM %input_table% LIMIT {batch_size} OFFSET {rank * batch_size}
+ ) AS fts_ii
+ );
+ CHECKPOINT;
+ """
+ )
+ )
+ for rank in range(num_jobs)
+ for i, column in enumerate(columns)
+ ]
+
+ def _parallel_sql(command: str) -> None:
+ with duckdb.connect(":memory:") as rank_con:
+ _sql(rank_con, command)
+
+ thread_map(_parallel_sql, commands, desc="Tokenize")
+
+ # # NON-PARALEL VERSION HERE FOR DOCUMENTATION:
+ #
+ # for i, column in enumerate(columns):
+ # _sql(con, f"""
+ # CREATE TABLE tmp.tokenized_{i} AS (
+ # SELECT unnest(%fts_schema%.tokenize(fts_ii."{column}")) AS w,
+ # rowid AS docid,
+ # {i} AS fieldid
+ # FROM %input_table% AS fts_ii
+ # )
+ # """)
+ # union_fields_query = " UNION ALL ".join(f"SELECT * FROM tmp.tokenized_{i}" for i in range(len(columns)))
+
+ with duckdb.connect(":memory:") as con:
+ # configure duckdb extensions
+ if extensions_directory is not None:
+ con.execute(SET_EXTENSIONS_DIRECTORY_COMMAND.format(directory=extensions_directory))
+ con.execute(INSTALL_AND_LOAD_EXTENSION_COMMAND)
+
+ # init
+ _sql(con, f"ATTACH '{tmp_dir}/tmp.duckdb' as tmp;") # nosec - tmp_dir is safe
+ _sql(con, "ATTACH '%database%' as db;")
+ _sql(con, "USE db;")
+ _sql(
+ con,
+ ";".join(
+ f"ATTACH '{tmp_dir}/tmp_{rank}_{i}.duckdb' as tmp_{rank}_{i} (READ_ONLY);" # nosec - tmp_dir, rank and i are safe
+ for rank in range(num_jobs)
+ for i in range(len(columns))
+ ),
+ )
+
+ # merge tokenizations
+ union_fields_query = " UNION ALL ".join(
+ f"SELECT * FROM tmp_{rank}_{i}.tokenized" # nosec - rank and i are safe
+ for rank in range(num_jobs)
+ for i in range(len(columns))
+ )
+ _sql(con, f"CREATE TABLE tmp.tokenized AS {union_fields_query}")
+
+ # step and stop
+ _sql(
+ con,
+ """
+ CREATE TABLE tmp.stemmed_stopped AS (
+ SELECT stem(t.w, '%stemmer%') AS term,
+ t.docid AS docid,
+ t.fieldid AS fieldid
+ FROM tmp.tokenized AS t
+ WHERE t.w NOT NULL
+ AND len(t.w) > 0
+ AND t.w NOT IN (SELECT sw FROM %fts_schema%.stopwords)
+ )
+ """,
+ )
+
+ # create terms table
+ _sql(
+ con,
+ """
+ CREATE TABLE %fts_schema%.terms AS (
+ SELECT ss.term,
+ ss.docid,
+ ss.fieldid
+ FROM tmp.stemmed_stopped AS ss
+ )
+ """,
+ )
+
+ # add doc lengths
+ _sql(con, "ALTER TABLE %fts_schema%.docs ADD len BIGINT;")
+ _sql(
+ con,
+ """
+ UPDATE %fts_schema%.docs d
+ SET len = (
+ SELECT count(term)
+ FROM %fts_schema%.terms AS t
+ WHERE t.docid = d.docid
+ );
+ """,
+ )
+
+ # create dictionary
+ _sql(
+ con,
+ """
+ CREATE TABLE tmp.distinct_terms AS (
+ SELECT DISTINCT term
+ FROM %fts_schema%.terms
+ ORDER BY docid, term
+ )
+ """,
+ )
+ _sql(
+ con,
+ """
+ CREATE TABLE %fts_schema%.dict AS (
+ SELECT row_number() OVER () - 1 AS termid,
+ dt.term
+ FROM tmp.distinct_terms AS dt
+ )
+ """,
+ )
+ _sql(con, "ALTER TABLE %fts_schema%.terms ADD termid BIGINT;")
+ _sql(
+ con,
+ """
+ UPDATE %fts_schema%.terms t
+ SET termid = (
+ SELECT termid
+ FROM %fts_schema%.dict d
+ WHERE t.term = d.term
+ );
+ """,
+ )
+ _sql(con, "ALTER TABLE %fts_schema%.terms DROP term;")
+
+ # compute df
+ _sql(con, "ALTER TABLE %fts_schema%.dict ADD df BIGINT;")
+ _sql(
+ con,
+ """
+ UPDATE %fts_schema%.dict d
+ SET df = (
+ SELECT count(distinct docid)
+ FROM %fts_schema%.terms t
+ WHERE d.termid = t.termid
+ GROUP BY termid
+ );
+ """,
+ )
+
+ # compute stats
+ _sql(
+ con,
+ """
+ CREATE TABLE %fts_schema%.stats AS (
+ SELECT COUNT(docs.docid) AS num_docs,
+ SUM(docs.len) / COUNT(docs.len) AS avgdl
+ FROM %fts_schema%.docs AS docs
+ );
+ """,
+ )
+
+ # define match_bm25
+ _sql(
+ con,
+ """
+ CREATE MACRO %fts_schema%.match_bm25(docname, query_string, fields := NULL, k := 1.2, b := 0.75, conjunctive := false) AS (
+ WITH tokens AS (
+ SELECT DISTINCT stem(unnest(%fts_schema%.tokenize(query_string)), '%stemmer%') AS t
+ ),
+ fieldids AS (
+ SELECT fieldid
+ FROM %fts_schema%.fields
+ WHERE CASE WHEN fields IS NULL THEN 1 ELSE field IN (SELECT * FROM (SELECT UNNEST(string_split(fields, ','))) AS fsq) END
+ ),
+ qtermids AS (
+ SELECT termid
+ FROM %fts_schema%.dict AS dict,
+ tokens
+ WHERE dict.term = tokens.t
+ ),
+ qterms AS (
+ SELECT termid,
+ docid
+ FROM %fts_schema%.terms AS terms
+ WHERE CASE WHEN fields IS NULL THEN 1 ELSE fieldid IN (SELECT * FROM fieldids) END
+ AND termid IN (SELECT qtermids.termid FROM qtermids)
+ ),
+ term_tf AS (
+ SELECT termid,
+ docid,
+ COUNT(*) AS tf
+ FROM qterms
+ GROUP BY docid,
+ termid
+ ),
+ cdocs AS (
+ SELECT docid
+ FROM qterms
+ GROUP BY docid
+ HAVING CASE WHEN conjunctive THEN COUNT(DISTINCT termid) = (SELECT COUNT(*) FROM tokens) ELSE 1 END
+ ),
+ subscores AS (
+ SELECT docs.docid,
+ len,
+ term_tf.termid,
+ tf,
+ df,
+ (log(((SELECT num_docs FROM %fts_schema%.stats) - df + 0.5) / (df + 0.5) + 1) * ((tf * (k + 1)/(tf + k * (1 - b + b * (len / (SELECT avgdl FROM %fts_schema%.stats))))))) AS subscore
+ FROM term_tf,
+ cdocs,
+ %fts_schema%.docs AS docs,
+ %fts_schema%.dict AS dict
+ WHERE term_tf.docid = cdocs.docid
+ AND term_tf.docid = docs.docid
+ AND term_tf.termid = dict.termid
+ ),
+ scores AS (
+ SELECT docid,
+ sum(subscore) AS score
+ FROM subscores
+ GROUP BY docid
+ )
+ SELECT score
+ FROM scores,
+ %fts_schema%.docs AS docs
+ WHERE scores.docid = docs.docid
+ AND docs.name = docname
+ );
+ """,
+ )
+ _sql(con, "CHECKPOINT;")
diff --git a/services/admin/src/admin/authentication.py b/services/admin/src/admin/authentication.py
index ec8ecd8d..202781ef 100644
--- a/services/admin/src/admin/authentication.py
+++ b/services/admin/src/admin/authentication.py
@@ -18,0 +19 @@ async def auth_check(
+ require_token_and_org_permissions: Sequence[tuple[str, str]] = (("write", "write"), ("write", "admin")),
@@ -31,0 +33,2 @@ async def auth_check(
+ require_org_role_permissions (`str`): alternatively, require a token with certain permissions
+ for the organization and a certain role, if organization is provided. Defaults to (("write", "write"), ("write", "admin")).
@@ -49,5 +52,21 @@ async def auth_check(
- and "fineGrained" in json["auth"]["accessToken"]
- and any(
- set(permission for permission in scope["permissions"]) >= set(require_fine_grained_permissions)
- for scope in json["auth"]["accessToken"]["fineGrained"]["scoped"]
- if scope["entity"]["name"] == organization and scope["entity"]["type"] == "org"
+ and (
+ (
+ "fineGrained" in json["auth"]["accessToken"]
+ and any(
+ set(permission for permission in scope["permissions"])
+ >= set(require_fine_grained_permissions)
+ for scope in json["auth"]["accessToken"]["fineGrained"]["scoped"]
+ if scope["entity"]["name"] == organization and scope["entity"]["type"] == "org"
+ )
+ )
+ or (
+ "role" in json["auth"]["accessToken"]
+ and any(
+ json["auth"]["accessToken"]["role"] == require_token_and_org_permission[0]
+ and any(
+ org["name"] == organization and org["roleInOrg"] == require_token_and_org_permission[1]
+ for org in json["orgs"]
+ )
+ for require_token_and_org_permission in require_token_and_org_permissions
+ )
+ )
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index bd87ddf4..e37dec7c 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -300 +300 @@ def create_search_endpoint(
- error = e if isinstance(e, ApiError) else UnexpectedApiError("Unexpected error", e)
+ error = e if isinstance(e, ApiError) else UnexpectedApiError("Unexpected error.", e)
|
|
8da1e449815245b10264d2fc9974a6d16a3e3a4f
|
Quentin Lhoest
| 2025-04-18T15:16:33 |
Enable more datasets to work without `refs/convert/duckdb` (#3177)
|
diff --git a/libs/libcommon/src/libcommon/duckdb_utils.py b/libs/libcommon/src/libcommon/duckdb_utils.py
index 79ea1717..f6cc1bce 100644
--- a/libs/libcommon/src/libcommon/duckdb_utils.py
+++ b/libs/libcommon/src/libcommon/duckdb_utils.py
@@ -22 +22,10 @@ from libcommon.statistics_utils import (
-DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN = "*NoDuckdbRef*"
+DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS = [
+ "vevotx/*",
+ "openai/*",
+ "EleutherAI/*",
+ "HuggingFaceFW/*",
+ "TIGER-Lab/*",
+ "Rapidata/*", # images
+ "MrDragonFox/*", # audios
+ "*NoDuckdbRef*",
+]
diff --git a/services/search/src/search/routes/filter.py b/services/search/src/search/routes/filter.py
index 7633ce26..179cfd30 100644
--- a/services/search/src/search/routes/filter.py
+++ b/services/search/src/search/routes/filter.py
@@ -36 +36 @@ from libcommon.constants import ROW_IDX_COLUMN
-from libcommon.duckdb_utils import DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN, duckdb_index_is_partial
+from libcommon.duckdb_utils import DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS, duckdb_index_is_partial
@@ -112 +112 @@ def create_filter_endpoint(
- if fnmatch(dataset, DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN):
+ if any(fnmatch(dataset, pat) for pat in DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS):
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index 05be32f8..bd87ddf4 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -39 +39 @@ from libcommon.dtos import PaginatedResponse
-from libcommon.duckdb_utils import DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN, duckdb_index_is_partial
+from libcommon.duckdb_utils import DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS, duckdb_index_is_partial
@@ -168 +168 @@ def create_search_endpoint(
- if fnmatch(dataset, DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN):
+ if any(fnmatch(dataset, pat) for pat in DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERNS):
|
|
f11147c1106198bbc15a872f96d4143853f5349b
|
Quentin Lhoest
| 2025-04-17T10:21:06 |
Fix lock in duckdb index building in new search/filter (#3176)
|
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 4a5e12c9..6ef566ed 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -236,3 +236,2 @@ async def get_index_file_location_and_build_if_missing(
- cache_folder = Path(duckdb_index_file_directory) / HUB_DOWNLOAD_CACHE_FOLDER
- cache_folder.mkdir(exist_ok=True, parents=True)
- async with AsyncFileLock(cache_folder / ".lock", timeout=60):
+ Path(index_file_location).parent.mkdir(exist_ok=True, parents=True)
+ async with AsyncFileLock(index_file_location + ".lock", timeout=60):
@@ -239,0 +239,2 @@ async def get_index_file_location_and_build_if_missing(
+ cache_folder = Path(duckdb_index_file_directory) / HUB_DOWNLOAD_CACHE_FOLDER
+ cache_folder.mkdir(exist_ok=True, parents=True)
|
|
5dabb5ab48b62c63ff984d3e36df426b3217dc46
|
Quentin Lhoest
| 2025-04-17T08:34:59 |
Fix concurrent duckdb accesses (#3174)
|
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 000316cc..4a5e12c9 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -185,0 +186,3 @@ def build_index_file(
+ # make sure there is no WAL at the end
+ con.sql("CHECKPOINT;")
+
@@ -231,5 +234,7 @@ async def get_index_file_location_and_build_if_missing(
- if not await index_path.is_file():
- with StepProfiler(method="get_index_file_location_and_build_if_missing", step="build duckdb index"):
- cache_folder = Path(duckdb_index_file_directory) / HUB_DOWNLOAD_CACHE_FOLDER
- cache_folder.mkdir(exist_ok=True, parents=True)
- async with AsyncFileLock(cache_folder / ".lock"):
+
+ # use a lock in case another worker is currently writing
+ cache_folder = Path(duckdb_index_file_directory) / HUB_DOWNLOAD_CACHE_FOLDER
+ cache_folder.mkdir(exist_ok=True, parents=True)
+ async with AsyncFileLock(cache_folder / ".lock", timeout=60):
+ if not await index_path.is_file():
+ with StepProfiler(method="get_index_file_location_and_build_if_missing", step="build duckdb index"):
diff --git a/services/search/src/search/duckdb_connection.py b/services/search/src/search/duckdb_connection.py
index 0fc42e84..b5f4af53 100644
--- a/services/search/src/search/duckdb_connection.py
+++ b/services/search/src/search/duckdb_connection.py
@@ -10 +10 @@ SET_EXTENSIONS_DIRECTORY_COMMAND = "SET extension_directory='{directory}';"
-def duckdb_connect(
+def duckdb_connect_readonly(
@@ -12,0 +13 @@ def duckdb_connect(
+ """In-memory session with the current database attached with read-only and fts extension"""
diff --git a/services/search/src/search/routes/filter.py b/services/search/src/search/routes/filter.py
index a069ce6b..7633ce26 100644
--- a/services/search/src/search/routes/filter.py
+++ b/services/search/src/search/routes/filter.py
@@ -44 +44 @@ from starlette.responses import Response
-from search.duckdb_connection import duckdb_connect
+from search.duckdb_connection import duckdb_connect_readonly
@@ -258 +258 @@ def execute_filter_query(
- with duckdb_connect(extensions_directory=extensions_directory, database=index_file_location) as con:
+ with duckdb_connect_readonly(extensions_directory=extensions_directory, database=index_file_location) as con:
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index ff38ba5b..05be32f8 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -50 +50 @@ from starlette.responses import Response
-from search.duckdb_connection import duckdb_connect
+from search.duckdb_connection import duckdb_connect_readonly
@@ -68 +68 @@ def full_text_search(
- with duckdb_connect(extensions_directory=extensions_directory, database=index_file_location) as con:
+ with duckdb_connect_readonly(extensions_directory=extensions_directory, database=index_file_location) as con:
|
|
c7a91ac4c6d27e0442dc38a44a4880538121f289
|
Quentin Lhoest
| 2025-04-16T13:11:51 |
Fix duckdb directory (#3172)
|
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 54c84dd3..000316cc 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -96 +96 @@ def build_index_file(
- filename: str,
+ repo_file_location: str,
@@ -148,3 +148,4 @@ def build_index_file(
- # index all columns
- db_path = Path(index_folder).resolve() / filename
- con = duckdb.connect(str(db_path.resolve()))
+ # create index
+ index_file_location = f"{index_folder}/{repo_file_location}"
+ Path(index_file_location).parent.mkdir(exist_ok=True, parents=True)
+ con = duckdb.connect(str(Path(index_file_location).resolve()))
@@ -203,2 +203,0 @@ async def get_index_file_location_and_build_if_missing(
- size_bytes = 100 << 30 # 100GiB - arbitrary, just to avoid filling the disk
- index_folder = get_download_folder(duckdb_index_file_directory, size_bytes, dataset, config, split, revision)
@@ -222,0 +222,7 @@ async def get_index_file_location_and_build_if_missing(
+
+ # We can expect the duckdb index to be around the same size as the num_bytes.
+ # But we apply a factor since we also add the full-text-search index and additional columns
+ size_factor = 5
+ index_folder = get_download_folder(
+ duckdb_index_file_directory, size_factor * num_bytes, dataset, config, split, revision
+ )
@@ -237 +243 @@ async def get_index_file_location_and_build_if_missing(
- index_filename,
+ repo_file_location,
diff --git a/services/search/src/search/routes/filter.py b/services/search/src/search/routes/filter.py
index 95d5965c..a069ce6b 100644
--- a/services/search/src/search/routes/filter.py
+++ b/services/search/src/search/routes/filter.py
@@ -14 +14 @@ import pyarrow as pa
-from datasets import Features
+from datasets import Features, Value
@@ -34,0 +35 @@ from libapi.utils import (
+from libcommon.constants import ROW_IDX_COLUMN
@@ -150,0 +152 @@ def create_filter_endpoint(
+ # features must contain the row idx column for full_text_search
@@ -151,0 +154 @@ def create_filter_endpoint(
+ features[ROW_IDX_COLUMN] = Value("int64")
@@ -196,2 +199 @@ def create_filter_endpoint(
- # in split-duckdb-index we always add the ROW_IDX_COLUMN column
- # see https://github.com/huggingface/dataset-viewer/blob/main/services/worker/src/worker/job_runners/split/duckdb_index.py#L305
+ # features contain the row idx column
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index 02eaf9e6..ff38ba5b 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -12 +12 @@ import pyarrow as pa
-from datasets import Features
+from datasets import Features, Value
@@ -207,0 +208 @@ def create_search_endpoint(
+ # features must contain the row idx column for full_text_search
@@ -208,0 +210 @@ def create_search_endpoint(
+ features[ROW_IDX_COLUMN] = Value("int64")
@@ -254,0 +257 @@ def create_search_endpoint(
+ # features contain the row idx column
@@ -297 +300 @@ def create_search_endpoint(
- error = e if isinstance(e, ApiError) else UnexpectedApiError("Unexpected error.", e)
+ error = e if isinstance(e, ApiError) else UnexpectedApiError("Unexpected error", e)
diff --git a/services/worker/src/worker/job_runners/split/duckdb_index.py b/services/worker/src/worker/job_runners/split/duckdb_index.py
index 95d8992b..2cf1d2df 100644
--- a/services/worker/src/worker/job_runners/split/duckdb_index.py
+++ b/services/worker/src/worker/job_runners/split/duckdb_index.py
@@ -178 +178 @@ def compute_split_duckdb_index_response(
- # index all columns
+ # create index
diff --git a/tools/docker-compose-dataset-viewer.yml b/tools/docker-compose-dataset-viewer.yml
index 12c3dc14..f3fc546d 100644
--- a/tools/docker-compose-dataset-viewer.yml
+++ b/tools/docker-compose-dataset-viewer.yml
@@ -118 +118,2 @@ services:
- - duckdb-index:${DUCKDB_INDEX_CACHE_DIRECTORY-/duckdb-index}
+ - parquet-metadata:${PARQUET_METADATA_STORAGE_DIRECTORY-/parquet_metadata}:rw
+ - duckdb-index:${DUCKDB_INDEX_CACHE_DIRECTORY-/duckdb-index}:rw
@@ -121,0 +123 @@ services:
+ PARQUET_METADATA_STORAGE_DIRECTORY: ${PARQUET_METADATA_STORAGE_DIRECTORY-/parquet_metadata}
diff --git a/tools/docker-compose-dev-dataset-viewer.yml b/tools/docker-compose-dev-dataset-viewer.yml
index 022fea49..2a1e713b 100644
--- a/tools/docker-compose-dev-dataset-viewer.yml
+++ b/tools/docker-compose-dev-dataset-viewer.yml
@@ -124 +124,2 @@ services:
- - duckdb-index:${DUCKDB_INDEX_CACHE_DIRECTORY-/duckdb-index}
+ - parquet-metadata:${PARQUET_METADATA_STORAGE_DIRECTORY-/parquet_metadata}:rw
+ - duckdb-index:${DUCKDB_INDEX_CACHE_DIRECTORY-/duckdb-index}:rw
@@ -129,0 +131 @@ services:
+ PARQUET_METADATA_STORAGE_DIRECTORY: ${PARQUET_METADATA_STORAGE_DIRECTORY-/parquet_metadata}
@@ -185 +187 @@ services:
- COMMITTER_HF_TOKEN: ${COMMITTER_HF_TOKEN-}
+ COMMITTER_HF_TOKEN: ${COMMITTER_HF_TOKEN-hf_app_datasets-server-parquet-converter_token}
@@ -254,0 +257 @@ services:
+ COMMITTER_HF_TOKEN: ${COMMITTER_HF_TOKEN-hf_app_datasets-server-parquet-converter_token}
|
|
9f041a93ff604f8bbb1b5e1825b66c165c6c084a
|
Quentin Lhoest
| 2025-04-15T13:07:07 |
Fix features in new search/filter (#3171)
|
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 268d2439..54c84dd3 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -4 +3,0 @@
-import copy
@@ -12 +11 @@ from pathlib import Path
-from typing import Optional
+from typing import Any, Optional
@@ -103 +102 @@ def build_index_file(
- features: Features,
+ features: dict[str, Any],
@@ -125,4 +124 @@ def build_index_file(
- # copy the features is needed but will be fixed with https://github.com/huggingface/datasets/pull/6189
- indexable_columns = ",".join(
- f'"{column}"' for column in get_indexable_columns(Features.from_dict(copy.deepcopy(features)))
- )
+ indexable_columns = ",".join(f'"{column}"' for column in get_indexable_columns(Features.from_dict(features)))
@@ -204 +200 @@ async def get_index_file_location_and_build_if_missing(
- features: Features,
+ features: dict[str, Any],
diff --git a/services/search/src/search/routes/filter.py b/services/search/src/search/routes/filter.py
index 527cc7b7..95d5965c 100644
--- a/services/search/src/search/routes/filter.py
+++ b/services/search/src/search/routes/filter.py
@@ -138 +137,0 @@ def create_filter_endpoint(
- features = Features.from_dict(content_parquet_metadata["features"])
@@ -150 +149 @@ def create_filter_endpoint(
- features=features,
+ features=content_parquet_metadata["features"],
@@ -151,0 +151 @@ def create_filter_endpoint(
+ features = Features.from_dict(content_parquet_metadata["features"])
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index e55ab478..02eaf9e6 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -195 +194,0 @@ def create_search_endpoint(
- features = Features.from_dict(content_parquet_metadata["features"])
@@ -207 +206 @@ def create_search_endpoint(
- features=features,
+ features=content_parquet_metadata["features"],
@@ -208,0 +208 @@ def create_search_endpoint(
+ features = Features.from_dict(content_parquet_metadata["features"])
diff --git a/services/worker/src/worker/job_runners/split/duckdb_index.py b/services/worker/src/worker/job_runners/split/duckdb_index.py
index 799e6767..95d8992b 100644
--- a/services/worker/src/worker/job_runners/split/duckdb_index.py
+++ b/services/worker/src/worker/job_runners/split/duckdb_index.py
@@ -4 +3,0 @@
-import copy
@@ -148,4 +147 @@ def compute_split_duckdb_index_response(
- # copy the features is needed but will be fixed with https://github.com/huggingface/datasets/pull/6189
- indexable_columns = ",".join(
- f'"{column}"' for column in get_indexable_columns(Features.from_dict(copy.deepcopy(features)))
- )
+ indexable_columns = ",".join(f'"{column}"' for column in get_indexable_columns(Features.from_dict(features)))
|
|
402e222c7060b756128c2fe77f3ab19cf1697b3d
|
Quentin Lhoest
| 2025-04-15T10:17:27 |
Use config level parquet metadata (#3170)
|
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index 04c92d6d..268d2439 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -332 +331,0 @@ def get_cache_entry_from_parquet_metadata_job(
- split: str,
@@ -343 +342 @@ def get_cache_entry_from_parquet_metadata_job(
- split=split,
+ split=None,
diff --git a/services/search/src/search/routes/filter.py b/services/search/src/search/routes/filter.py
index 3f611f11..527cc7b7 100644
--- a/services/search/src/search/routes/filter.py
+++ b/services/search/src/search/routes/filter.py
@@ -117 +116,0 @@ def create_filter_endpoint(
- split=split,
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index c4ae6e13..e55ab478 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -174 +173,0 @@ def create_search_endpoint(
- split=split,
|
|
d92728f2bcf0cb9bd379f530d570dbacc5caf46e
|
Quentin Lhoest
| 2025-04-14T15:15:41 |
foxix parquet metadata again (#3169)
|
diff --git a/chart/templates/services/search/deployment.yaml b/chart/templates/services/search/deployment.yaml
index f1498d70..10d3c5b4 100644
--- a/chart/templates/services/search/deployment.yaml
+++ b/chart/templates/services/search/deployment.yaml
@@ -30,0 +31,2 @@ spec:
+ initContainers:
+ {{ include "initContainerParquetMetadata" . | nindent 8 }}
@@ -33,0 +36,2 @@ spec:
+ volumes:
+ {{ include "volumeParquetMetadata" . | nindent 8 }}
|
|
9d72f48f47bc776b4087ab006a3a5947fadf82ac
|
Quentin Lhoest
| 2025-04-14T15:08:15 |
Missing parquet metadata env (#3168)
|
diff --git a/chart/templates/services/search/_container.tpl b/chart/templates/services/search/_container.tpl
index ccb4004f..5d9f8f05 100644
--- a/chart/templates/services/search/_container.tpl
+++ b/chart/templates/services/search/_container.tpl
@@ -13,0 +14 @@
+ {{ include "envParquetMetadata" . | nindent 2 }}
@@ -45,0 +47,2 @@
+ volumeMounts:
+ {{ include "volumeMountParquetMetadataRW" . | nindent 2 }}
|
|
ff8db33d73fb43ab7735e6c521ace43ee89d55ee
|
Quentin Lhoest
| 2025-04-14T13:38:27 |
Don't rely on `refs/convert/duckdb` anymore (#3166)
|
diff --git a/e2e/tests/test_14_statistics.py b/e2e/tests/test_14_statistics.py
index eb9cc28d..4bb623f3 100644
--- a/e2e/tests/test_14_statistics.py
+++ b/e2e/tests/test_14_statistics.py
@@ -57 +57 @@ def test_statistics_endpoint(normal_user_public_jsonl_dataset: str) -> None:
- "histogram": {"bin_edges": [0, 1, 2, 3, 3], "hist": [1, 1, 1, 1]},
+ "histogram": {"bin_edges": [0, 1, 2, 3], "hist": [1, 1, 2]},
@@ -139,2 +139,2 @@ def test_statistics_endpoint(normal_user_public_jsonl_dataset: str) -> None:
- "hist": [1, 1, 1],
- "bin_edges": [3, 4, 5, 5],
+ "hist": [1, 2],
+ "bin_edges": [3, 4, 5],
diff --git a/e2e/tests/test_52_search.py b/e2e/tests/test_52_search.py
index f93b4ae6..78e0875d 100644
--- a/e2e/tests/test_52_search.py
+++ b/e2e/tests/test_52_search.py
@@ -12,2 +12,2 @@ def test_search_endpoint(normal_user_public_dataset: str) -> None:
- offset = 1
- length = 2
+ offset = 0
+ length = 3
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index e5b73cfb..1bdf6b08 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -718 +718 @@ name = "duckdb"
-version = "0.10.3"
+version = "1.2.2"
@@ -723,47 +723,51 @@ files = [
- {file = "duckdb-0.10.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:cd25cc8d001c09a19340739ba59d33e12a81ab285b7a6bed37169655e1cefb31"},
- {file = "duckdb-0.10.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f9259c637b917ca0f4c63887e8d9b35ec248f5d987c886dfc4229d66a791009"},
- {file = "duckdb-0.10.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b48f5f1542f1e4b184e6b4fc188f497be8b9c48127867e7d9a5f4a3e334f88b0"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e327f7a3951ea154bb56e3fef7da889e790bd9a67ca3c36afc1beb17d3feb6d6"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5d8b20ed67da004b4481973f4254fd79a0e5af957d2382eac8624b5c527ec48c"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d37680b8d7be04e4709db3a66c8b3eb7ceba2a5276574903528632f2b2cc2e60"},
- {file = "duckdb-0.10.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3d34b86d6a2a6dfe8bb757f90bfe7101a3bd9e3022bf19dbddfa4b32680d26a9"},
- {file = "duckdb-0.10.3-cp310-cp310-win_amd64.whl", hash = "sha256:73b1cb283ca0f6576dc18183fd315b4e487a545667ffebbf50b08eb4e8cdc143"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d917dde19fcec8cadcbef1f23946e85dee626ddc133e1e3f6551f15a61a03c61"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:46757e0cf5f44b4cb820c48a34f339a9ccf83b43d525d44947273a585a4ed822"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:338c14d8ac53ac4aa9ec03b6f1325ecfe609ceeb72565124d489cb07f8a1e4eb"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:651fcb429602b79a3cf76b662a39e93e9c3e6650f7018258f4af344c816dab72"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d3ae3c73b98b6215dab93cc9bc936b94aed55b53c34ba01dec863c5cab9f8e25"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:56429b2cfe70e367fb818c2be19f59ce2f6b080c8382c4d10b4f90ba81f774e9"},
- {file = "duckdb-0.10.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b46c02c2e39e3676b1bb0dc7720b8aa953734de4fd1b762e6d7375fbeb1b63af"},
- {file = "duckdb-0.10.3-cp311-cp311-win_amd64.whl", hash = "sha256:bcd460feef56575af2c2443d7394d405a164c409e9794a4d94cb5fdaa24a0ba4"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:e229a7c6361afbb0d0ab29b1b398c10921263c52957aefe3ace99b0426fdb91e"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:732b1d3b6b17bf2f32ea696b9afc9e033493c5a3b783c292ca4b0ee7cc7b0e66"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f5380d4db11fec5021389fb85d614680dc12757ef7c5881262742250e0b58c75"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:468a4e0c0b13c55f84972b1110060d1b0f854ffeb5900a178a775259ec1562db"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fa1e7ff8d18d71defa84e79f5c86aa25d3be80d7cb7bc259a322de6d7cc72da"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ed1063ed97c02e9cf2e7fd1d280de2d1e243d72268330f45344c69c7ce438a01"},
- {file = "duckdb-0.10.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:22f2aad5bb49c007f3bfcd3e81fdedbc16a2ae41f2915fc278724ca494128b0c"},
- {file = "duckdb-0.10.3-cp312-cp312-win_amd64.whl", hash = "sha256:8f9e2bb00a048eb70b73a494bdc868ce7549b342f7ffec88192a78e5a4e164bd"},
- {file = "duckdb-0.10.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a6c2fc49875b4b54e882d68703083ca6f84b27536d57d623fc872e2f502b1078"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a66c125d0c30af210f7ee599e7821c3d1a7e09208196dafbf997d4e0cfcb81ab"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d99dd7a1d901149c7a276440d6e737b2777e17d2046f5efb0c06ad3b8cb066a6"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5ec3bbdb209e6095d202202893763e26c17c88293b88ef986b619e6c8b6715bd"},
- {file = "duckdb-0.10.3-cp37-cp37m-musllinux_1_2_x86_64.whl", hash = "sha256:2b3dec4ef8ed355d7b7230b40950b30d0def2c387a2e8cd7efc80b9d14134ecf"},
- {file = "duckdb-0.10.3-cp37-cp37m-win_amd64.whl", hash = "sha256:04129f94fb49bba5eea22f941f0fb30337f069a04993048b59e2811f52d564bc"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:d75d67024fc22c8edfd47747c8550fb3c34fb1cbcbfd567e94939ffd9c9e3ca7"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:f3796e9507c02d0ddbba2e84c994fae131da567ce3d9cbb4cbcd32fadc5fbb26"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:78e539d85ebd84e3e87ec44d28ad912ca4ca444fe705794e0de9be3dd5550c11"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a99b67ac674b4de32073e9bc604b9c2273d399325181ff50b436c6da17bf00a"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1209a354a763758c4017a1f6a9f9b154a83bed4458287af9f71d84664ddb86b6"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b735cea64aab39b67c136ab3a571dbf834067f8472ba2f8bf0341bc91bea820"},
- {file = "duckdb-0.10.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:816ffb9f758ed98eb02199d9321d592d7a32a6cb6aa31930f4337eb22cfc64e2"},
- {file = "duckdb-0.10.3-cp38-cp38-win_amd64.whl", hash = "sha256:1631184b94c3dc38b13bce4045bf3ae7e1b0ecbfbb8771eb8d751d8ffe1b59b3"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:fb98c35fc8dd65043bc08a2414dd9f59c680d7e8656295b8969f3f2061f26c52"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7e75c9f5b6a92b2a6816605c001d30790f6d67ce627a2b848d4d6040686efdf9"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ae786eddf1c2fd003466e13393b9348a44b6061af6fe7bcb380a64cac24e7df7"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b9387da7b7973707b0dea2588749660dd5dd724273222680e985a2dd36787668"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:538f943bf9fa8a3a7c4fafa05f21a69539d2c8a68e557233cbe9d989ae232899"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6930608f35025a73eb94252964f9f19dd68cf2aaa471da3982cf6694866cfa63"},
- {file = "duckdb-0.10.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:03bc54a9cde5490918aad82d7d2a34290e3dfb78d5b889c6626625c0f141272a"},
- {file = "duckdb-0.10.3-cp39-cp39-win_amd64.whl", hash = "sha256:372b6e3901d85108cafe5df03c872dfb6f0dbff66165a0cf46c47246c1957aa0"},
- {file = "duckdb-0.10.3.tar.gz", hash = "sha256:c5bd84a92bc708d3a6adffe1f554b94c6e76c795826daaaf482afc3d9c636971"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
@@ -838 +842 @@ name = "filelock"
-version = "3.12.0"
+version = "3.18.0"
@@ -841 +845 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -843,2 +847,2 @@ files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -848,2 +852,3 @@ files = [
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1452,0 +1458 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1453,0 +1460 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1462,0 +1470 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2242,0 +2251,43 @@ xmp = ["defusedxml"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
@@ -3642 +3693 @@ python-versions = "3.9.18"
-content-hash = "0ce0cdf625c5884fbf7af2723bfff40d25b3889c97560d912bc06a80549e2077"
+content-hash = "1dbb1f5579d2c00ca65d92300ea85a41e61f27462f5e1cba416c14a5abb3a6f1"
diff --git a/front/admin_ui/pyproject.toml b/front/admin_ui/pyproject.toml
index 77f33add..f4ef4c1f 100644
--- a/front/admin_ui/pyproject.toml
+++ b/front/admin_ui/pyproject.toml
@@ -10 +9,0 @@ python = "3.9.18"
-duckdb = "^0.10.3"
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index d81fd7ed..28a6dbfb 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -659,0 +660,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -697 +757 @@ name = "filelock"
-version = "3.12.0"
+version = "3.18.0"
@@ -700 +760 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -702,2 +762,2 @@ files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -707,2 +767,3 @@ files = [
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1079,0 +1141 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1080,0 +1143 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1089,0 +1153 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2106,0 +2171,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index 7ea3a7e3..b98508d1 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -659,0 +660,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -697 +757 @@ name = "filelock"
-version = "3.12.0"
+version = "3.18.0"
@@ -700 +760 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -702,2 +762,2 @@ files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -707,2 +767,3 @@ files = [
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1079,0 +1141 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1080,0 +1143 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1089,0 +1153 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2106,0 +2171,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index 1aa3b6f2..f68c3571 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -666,0 +667,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -722 +782 @@ name = "filelock"
-version = "3.12.4"
+version = "3.18.0"
@@ -725 +785 @@ optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.9"
@@ -727,2 +787,2 @@ files = [
- {file = "filelock-3.12.4-py3-none-any.whl", hash = "sha256:08c21d87ded6e2b9da6728c3dff51baf1dcecf973b768ef35bcbc3447edb9ad4"},
- {file = "filelock-3.12.4.tar.gz", hash = "sha256:2e6f249f1f3654291606e046b09f1fd5eac39b360664c27f5aad072012f8bcbd"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -732,3 +792,3 @@ files = [
-docs = ["furo (>=2023.7.26)", "sphinx (>=7.1.2)", "sphinx-autodoc-typehints (>=1.24)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.3)", "diff-cover (>=7.7)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)", "pytest-timeout (>=2.1)"]
-typing = ["typing-extensions (>=4.7.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1147,0 +1208 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1148,0 +1210 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1157,0 +1220 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2175,0 +2239,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py
index f1689e3f..04c92d6d 100644
--- a/libs/libapi/src/libapi/duckdb.py
+++ b/libs/libapi/src/libapi/duckdb.py
@@ -3,0 +4 @@
+import copy
@@ -9,0 +11 @@ from hashlib import sha1
+from pathlib import Path
@@ -13,3 +15,24 @@ import anyio
-from anyio import Path
-from libcommon.constants import SPLIT_DUCKDB_INDEX_KIND
-from libcommon.parquet_utils import extract_split_directory_from_parquet_url
+import duckdb
+from datasets import Features
+from filelock import AsyncFileLock
+from huggingface_hub import HfApi
+from libcommon.constants import CONFIG_PARQUET_METADATA_KIND, PARQUET_REVISION, SPLIT_DUCKDB_INDEX_KIND
+from libcommon.duckdb_utils import (
+ CREATE_INDEX_COMMAND,
+ CREATE_INDEX_ID_COLUMN_COMMANDS,
+ CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES,
+ CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES,
+ DUCKDB_DEFAULT_INDEX_FILENAME,
+ DUCKDB_DEFAULT_PARTIAL_INDEX_FILENAME,
+ INSTALL_AND_LOAD_EXTENSION_COMMAND,
+ SET_EXTENSIONS_DIRECTORY_COMMAND,
+ compute_transformed_data,
+ get_indexable_columns,
+ get_monolingual_stemmer,
+)
+from libcommon.parquet_utils import (
+ ParquetFileMetadataItem,
+ extract_split_directory_from_parquet_url,
+ get_num_parquet_files_to_process,
+ parquet_export_is_partial,
+)
@@ -50 +73 @@ async def get_index_file_location_and_download_if_missing(
- index_path = Path(index_file_location)
+ index_path = anyio.Path(index_file_location)
@@ -67,0 +91,163 @@ async def get_index_file_location_and_download_if_missing(
+def build_index_file(
+ cache_folder: StrPath,
+ index_folder: StrPath,
+ dataset: str,
+ config: str,
+ split: str,
+ filename: str,
+ hf_token: Optional[str],
+ max_split_size_bytes: int,
+ extensions_directory: Optional[str],
+ parquet_metadata_directory: StrPath,
+ split_parquet_files: list[ParquetFileMetadataItem],
+ features: Features,
+) -> None:
+ logging.info(f"compute and cache duckdb index on-the-fly for {dataset=} {config=} {split=}")
+ if not split_parquet_files:
+ raise DownloadIndexError("No parquet files found.")
+
+ # For directories like "partial-train" for the file at "en/partial-train/0000.parquet" in the C4 dataset.
+ # Note that "-" is forbidden for split names so it doesn't create directory names collisions.
+ split_directory = extract_split_directory_from_parquet_url(split_parquet_files[0]["url"])
+
+ num_parquet_files_to_index, num_bytes, num_rows = get_num_parquet_files_to_process(
+ parquet_files=split_parquet_files,
+ parquet_metadata_directory=parquet_metadata_directory,
+ max_size_bytes=max_split_size_bytes,
+ )
+
+ split_parquet_files = split_parquet_files[:num_parquet_files_to_index]
+ parquet_file_names = [parquet_file["filename"] for parquet_file in split_parquet_files]
+
+ column_names = ",".join(f'"{column}"' for column in features)
+
+ # look for indexable columns (= possibly nested columns containing string data)
+ # copy the features is needed but will be fixed with https://github.com/huggingface/datasets/pull/6189
+ indexable_columns = ",".join(
+ f'"{column}"' for column in get_indexable_columns(Features.from_dict(copy.deepcopy(features)))
+ )
+
+ all_split_parquets: list[Path] = []
+ for parquet_file in parquet_file_names:
+ all_split_parquets.append(
+ Path(
+ download_file_from_hub(
+ repo_type="dataset",
+ revision=PARQUET_REVISION,
+ repo_id=dataset,
+ filename=f"{config}/{split_directory}/{parquet_file}",
+ hf_token=hf_token,
+ cache_dir=cache_folder,
+ resume_download=False,
+ )
+ )
+ )
+
+ transformed_df = None
+ try:
+ transformed_df = compute_transformed_data(all_split_parquets, features)
+ except Exception as err:
+ logging.info(f"Unable to compute transformed data {err}, skipping statistics.")
+
+ # index all columns
+ db_path = Path(index_folder).resolve() / filename
+ con = duckdb.connect(str(db_path.resolve()))
+
+ hf_api = HfApi(token=hf_token)
+ stemmer = None
+
+ try:
+ if transformed_df is not None:
+ logging.debug(transformed_df.head())
+ # update original data with results of transformations (string lengths, audio durations, etc.):
+ logging.info(f"Updating data with {transformed_df.columns}")
+ create_command_sql = CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
+ columns=column_names, source=[str(p) for p in all_split_parquets]
+ )
+
+ else:
+ create_command_sql = CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
+ columns=column_names, source=[str(p) for p in all_split_parquets]
+ )
+
+ logging.info(create_command_sql)
+ con.sql(create_command_sql)
+ con.sql(CREATE_INDEX_ID_COLUMN_COMMANDS)
+ logging.debug(con.sql("SELECT * FROM data LIMIT 5;"))
+ logging.debug(con.sql("SELECT count(*) FROM data;"))
+
+ if len(indexable_columns) > 0:
+ # configure duckdb extensions
+ if extensions_directory is not None:
+ con.execute(SET_EXTENSIONS_DIRECTORY_COMMAND.format(directory=extensions_directory))
+ con.execute(INSTALL_AND_LOAD_EXTENSION_COMMAND)
+ stemmer = get_monolingual_stemmer(hf_api.dataset_info(repo_id=dataset).card_data)
+ create_index_sql = CREATE_INDEX_COMMAND.format(columns=indexable_columns, stemmer=stemmer)
+ logging.info(create_index_sql)
+ con.sql(create_index_sql)
+
+ finally:
+ con.close()
+
+
+async def get_index_file_location_and_build_if_missing(
+ duckdb_index_file_directory: StrPath,
+ dataset: str,
+ revision: str,
+ config: str,
+ split: str,
+ hf_token: Optional[str],
+ max_split_size_bytes: int,
+ extensions_directory: Optional[str],
+ parquet_metadata_directory: StrPath,
+ split_parquet_files: list[ParquetFileMetadataItem],
+ features: Features,
+) -> tuple[str, bool]:
+ with StepProfiler(method="get_index_file_location_and_build_if_missing", step="all"):
+ size_bytes = 100 << 30 # 100GiB - arbitrary, just to avoid filling the disk
+ index_folder = get_download_folder(duckdb_index_file_directory, size_bytes, dataset, config, split, revision)
+ # For directories like "partial-train" for the file at "en/partial-train/0000.parquet" in the C4 dataset.
+ # Note that "-" is forbidden for split names so it doesn't create directory names collisions.
+ split_directory = extract_split_directory_from_parquet_url(split_parquet_files[0]["url"])
+ partial_parquet_export = parquet_export_is_partial(split_parquet_files[0]["url"])
+
+ num_parquet_files_to_index, num_bytes, num_rows = get_num_parquet_files_to_process(
+ parquet_files=split_parquet_files,
+ parquet_metadata_directory=parquet_metadata_directory,
+ max_size_bytes=max_split_size_bytes,
+ )
+
+ index_filename = (
+ DUCKDB_DEFAULT_PARTIAL_INDEX_FILENAME
+ if (num_parquet_files_to_index < len(split_parquet_files))
+ else DUCKDB_DEFAULT_INDEX_FILENAME
+ )
+ partial = partial_parquet_export or (num_parquet_files_to_index < len(split_parquet_files))
+ repo_file_location = f"{config}/{split_directory}/{index_filename}"
+ index_file_location = f"{index_folder}/{repo_file_location}"
+ index_path = anyio.Path(index_file_location)
+ if not await index_path.is_file():
+ with StepProfiler(method="get_index_file_location_and_build_if_missing", step="build duckdb index"):
+ cache_folder = Path(duckdb_index_file_directory) / HUB_DOWNLOAD_CACHE_FOLDER
+ cache_folder.mkdir(exist_ok=True, parents=True)
+ async with AsyncFileLock(cache_folder / ".lock"):
+ await anyio.to_thread.run_sync(
+ build_index_file,
+ cache_folder,
+ index_folder,
+ dataset,
+ config,
+ split,
+ index_filename,
+ hf_token,
+ max_split_size_bytes,
+ extensions_directory,
+ parquet_metadata_directory,
+ split_parquet_files,
+ features,
+ )
+ # Update its modification time
+ await index_path.touch()
+ return index_file_location, partial
+
+
@@ -104 +289,0 @@ def download_index_file(
- init_dir(index_folder)
@@ -141,0 +327,23 @@ def get_cache_entry_from_duckdb_index_job(
+
+
+def get_cache_entry_from_parquet_metadata_job(
+ dataset: str,
+ config: str,
+ split: str,
+ hf_endpoint: str,
+ hf_token: Optional[str],
+ hf_timeout_seconds: Optional[float],
+ blocked_datasets: list[str],
+ storage_clients: Optional[list[StorageClient]] = None,
+) -> CacheEntry:
+ return get_cache_entry_from_step(
+ processing_step_name=CONFIG_PARQUET_METADATA_KIND,
+ dataset=dataset,
+ config=config,
+ split=split,
+ hf_endpoint=hf_endpoint,
+ hf_token=hf_token,
+ hf_timeout_seconds=hf_timeout_seconds,
+ blocked_datasets=blocked_datasets,
+ storage_clients=storage_clients,
+ )
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index 067aacc2..cdee6c14 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -695,0 +696,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -733 +793 @@ name = "filelock"
-version = "3.12.0"
+version = "3.18.0"
@@ -736 +796 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -738,2 +798,2 @@ files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -743,2 +803,3 @@ files = [
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -2213,0 +2275,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
@@ -3941 +4045 @@ python-versions = "3.9.18"
-content-hash = "7c844028b5f41c68dd2240277f007005d045d9bfab743a16d3ab7f1e27a82e4d"
+content-hash = "bac0e506d6c65ea661d6e0c2ff54533283d2f1097afc81ee7e670a68f49f1a4e"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index 391364d9..f8b9db22 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12,0 +13 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -13,0 +15 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -22,0 +25 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
diff --git a/libs/libcommon/src/libcommon/duckdb_utils.py b/libs/libcommon/src/libcommon/duckdb_utils.py
index 3b2aea9d..79ea1717 100644
--- a/libs/libcommon/src/libcommon/duckdb_utils.py
+++ b/libs/libcommon/src/libcommon/duckdb_utils.py
@@ -1 +1,182 @@
-from libcommon.parquet_utils import PARTIAL_PREFIX, parquet_export_is_partial
+from pathlib import Path
+from typing import Any, Literal, Optional
+
+import polars as pl
+from datasets.features.features import Features, FeatureType, Translation, TranslationVariableLanguages, Value, _visit
+from huggingface_hub.repocard_data import DatasetCardData
+
+from libcommon.constants import ROW_IDX_COLUMN
+from libcommon.parquet_utils import (
+ PARTIAL_PREFIX,
+ is_list_pa_type,
+ parquet_export_is_partial,
+)
+from libcommon.statistics_utils import (
+ STRING_DTYPES,
+ AudioColumn,
+ ImageColumn,
+ ListColumn,
+ StringColumn,
+)
+
+DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN = "*NoDuckdbRef*"
+
+DATASET_TYPE = "dataset"
+DEFAULT_STEMMER = "none" # Exact word matches
+DUCKDB_DEFAULT_INDEX_FILENAME = "index.duckdb"
+DUCKDB_DEFAULT_PARTIAL_INDEX_FILENAME = "partial-index.duckdb"
+CREATE_INDEX_COMMAND = (
+ f"PRAGMA create_fts_index('data', '{ROW_IDX_COLUMN}', {{columns}}, stemmer='{{stemmer}}', overwrite=1);"
+)
+CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES = (
+ "CREATE OR REPLACE TABLE data AS SELECT {columns} FROM read_parquet({source});"
+)
+CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES = """
+ CREATE OR REPLACE TABLE data AS
+ SELECT {columns}, transformed_df.* FROM read_parquet({source})
+ POSITIONAL JOIN transformed_df;
+"""
+CREATE_SEQUENCE_COMMAND = "CREATE OR REPLACE SEQUENCE serial START 0 MINVALUE 0;"
+ALTER_TABLE_BY_ADDING_SEQUENCE_COLUMN = (
+ f"ALTER TABLE data ADD COLUMN {ROW_IDX_COLUMN} BIGINT DEFAULT nextval('serial');"
+)
+CREATE_INDEX_ID_COLUMN_COMMANDS = CREATE_SEQUENCE_COMMAND + ALTER_TABLE_BY_ADDING_SEQUENCE_COLUMN
+INSTALL_AND_LOAD_EXTENSION_COMMAND = "INSTALL 'fts'; LOAD 'fts';"
+SET_EXTENSIONS_DIRECTORY_COMMAND = "SET extension_directory='{directory}';"
+REPO_TYPE = "dataset"
+# Only some languages are supported, see: https://duckdb.org/docs/extensions/full_text_search.html#pragma-create_fts_index
+STEMMER_MAPPING = {
+ # Stemmer : ["value ISO 639-1", "value ISO 639-2/3"]
+ "arabic": ["ar", "ara"],
+ "basque": ["eu", "eus"],
+ "catalan": ["ca", "cat"],
+ "danish": ["da", "dan"],
+ "dutch": ["nl", "nld"],
+ "english": ["en", "eng"],
+ "finnish": ["fi", "fin"],
+ "french": ["fr", "fra"],
+ "german": ["de", "deu"],
+ "greek": ["el", "ell"],
+ "hindi": ["hi", "hin"],
+ "hungarian": ["hu", "hun"],
+ "indonesian": ["id", "ind"],
+ "irish": ["ga", "gle"],
+ "italian": ["it", "ita"],
+ "lithuanian": ["lt", "lit"],
+ "nepali": ["ne", "nep"],
+ "norwegian": ["no", "nor"],
+ "portuguese": ["pt", "por"],
+ "romanian": ["ro", "ron"],
+ "russian": ["ru", "rus"],
+ "serbian": ["sr", "srp"],
+ "spanish": ["es", "spa"],
+ "swedish": ["sv", "swe"],
+ "tamil": ["ta", "tam"],
+ "turkish": ["tr", "tur"],
+}
+
+LengthDtype = Literal["string", "list"]
+
+
+def get_indexable_columns(features: Features) -> list[str]:
+ indexable_columns: list[str] = []
+ for column, feature in features.items():
+ indexable = False
+
+ def check_indexable(feature: FeatureType) -> None:
+ nonlocal indexable
+ if isinstance(feature, Value) and feature.dtype in STRING_DTYPES:
+ indexable = True
+ elif isinstance(feature, (Translation, TranslationVariableLanguages)):
+ indexable = True
+
+ _visit(feature, check_indexable)
+ if indexable:
+ indexable_columns.append(column)
+ return indexable_columns
+
+
+def get_monolingual_stemmer(card_data: Optional[DatasetCardData]) -> str:
+ if card_data is None:
+ return DEFAULT_STEMMER
+ all_languages = card_data["language"]
+ if isinstance(all_languages, list) and len(all_languages) == 1:
+ first_language = all_languages[0]
+ elif isinstance(all_languages, str):
+ first_language = all_languages
+ else:
+ return DEFAULT_STEMMER
+
+ return next((language for language, codes in STEMMER_MAPPING.items() if first_language in codes), DEFAULT_STEMMER)
+
+
+def compute_length_column(
+ parquet_paths: list[Path],
+ column_name: str,
+ target_df: Optional[pl.DataFrame],
+ dtype: LengthDtype,
+) -> pl.DataFrame:
+ column_class = ListColumn if dtype == "list" else StringColumn
+ df = pl.read_parquet(parquet_paths, columns=[column_name])
+ lengths_column_name = f"{column_name}.length"
+ lengths_df: pl.DataFrame = column_class.compute_transformed_data(
+ df, column_name, transformed_column_name=lengths_column_name
+ )
+ if target_df is None:
+ return lengths_df.select(pl.col(lengths_column_name))
+
+ target_df.insert_column(target_df.shape[1], lengths_df[lengths_column_name])
+ return target_df
+
+
+def compute_audio_duration_column(
+ parquet_paths: list[Path],
+ column_name: str,
+ target_df: Optional[pl.DataFrame],
+) -> pl.DataFrame:
+ duration_column_name = f"{column_name}.duration"
+ durations = AudioColumn.compute_transformed_data(parquet_paths, column_name, AudioColumn.get_duration)
+ duration_df = pl.from_dict({duration_column_name: durations})
+ if target_df is None:
+ return duration_df
+ target_df.insert_column(target_df.shape[1], duration_df[duration_column_name])
+ return target_df
+
+
+def compute_image_width_height_column(
+ parquet_paths: list[Path],
+ column_name: str,
+ target_df: Optional[pl.DataFrame],
+) -> pl.DataFrame:
+ shapes = ImageColumn.compute_transformed_data(parquet_paths, column_name, ImageColumn.get_shape)
+ widths, heights = list(zip(*shapes))
+ width_column_name, height_column_name = f"{column_name}.width", f"{column_name}.height"
+ shapes_df = pl.from_dict({width_column_name: widths, height_column_name: heights})
+ if target_df is None:
+ return shapes_df
+ target_df.insert_column(target_df.shape[1], shapes_df[width_column_name])
+ target_df.insert_column(target_df.shape[1], shapes_df[height_column_name])
+ return target_df
+
+
+def compute_transformed_data(parquet_paths: list[Path], features: dict[str, Any]) -> Optional[pl.DataFrame]:
+ transformed_df = None
+ for feature_name, feature in features.items():
+ if isinstance(feature, list) or (
+ isinstance(feature, dict) and feature.get("_type") in ("LargeList", "Sequence")
+ ):
+ first_parquet_file = parquet_paths[0]
+ if is_list_pa_type(first_parquet_file, feature_name):
+ transformed_df = compute_length_column(parquet_paths, feature_name, transformed_df, dtype="list")
+
+ elif isinstance(feature, dict):
+ if feature.get("_type") == "Value" and feature.get("dtype") in STRING_DTYPES:
+ transformed_df = compute_length_column(parquet_paths, feature_name, transformed_df, dtype="string")
+
+ elif feature.get("_type") == "Audio":
+ transformed_df = compute_audio_duration_column(parquet_paths, feature_name, transformed_df)
+
+ elif feature.get("_type") == "Image":
+ transformed_df = compute_image_width_height_column(parquet_paths, feature_name, transformed_df)
+
+ return transformed_df
diff --git a/services/worker/src/worker/statistics_utils.py b/libs/libcommon/src/libcommon/statistics_utils.py
similarity index 95%
rename from services/worker/src/worker/statistics_utils.py
rename to libs/libcommon/src/libcommon/statistics_utils.py
index 1c9afe0c..37a034aa 100644
--- a/services/worker/src/worker/statistics_utils.py
+++ b/libs/libcommon/src/libcommon/statistics_utils.py
@@ -14,0 +15,3 @@ from datasets import Features
+from PIL import Image
+from tqdm.contrib.concurrent import thread_map
+
@@ -19,2 +21,0 @@ from libcommon.utils import datetime_to_string, get_timezone, identify_datetime_
-from PIL import Image
-from tqdm.contrib.concurrent import thread_map
@@ -138,10 +139,5 @@ def generate_bins(
- if column_type is ColumnType.FLOAT:
- if min_value == max_value:
- bin_edges = [min_value]
- else:
- bin_size = (max_value - min_value) / n_bins
- bin_edges = np.arange(min_value, max_value, bin_size).astype(float).tolist()
- if len(bin_edges) != n_bins:
- raise StatisticsComputationError(
- f"Incorrect number of bins generated for {column_name=}, expected {n_bins}, got {len(bin_edges)}."
- )
+ if min_value == max_value:
+ bin_edges = [min_value, max_value]
+ elif column_type is ColumnType.FLOAT:
+ bin_size = (max_value - min_value) / n_bins
+ bin_edges = np.arange(min_value, max_value, bin_size).astype(float).tolist()
@@ -150,5 +146 @@ def generate_bins(
- bin_edges = np.arange(min_value, max_value + 1, bin_size).astype(int).tolist()
- if len(bin_edges) > n_bins:
- raise StatisticsComputationError(
- f"Incorrect number of bins generated for {column_name=}, expected {n_bins}, got {len(bin_edges)}."
- )
+ bin_edges = np.arange(min_value, max_value, bin_size).astype(int).tolist()
@@ -157 +149,3 @@ def generate_bins(
- return bin_edges + [max_value]
+ if bin_edges[-1] != max_value:
+ bin_edges.append(max_value)
+ return bin_edges
@@ -190,3 +184,9 @@ def compute_histogram(
- bins_edges_reverted = [-1 * b for b in bin_edges[::-1]]
- hist_df_reverted = df.with_columns(pl.col(column_name).mul(-1).alias("reverse"))["reverse"].hist(
- bins=bins_edges_reverted
+ reversed_bins = [-1 * edge for edge in bin_edges[::-1]]
+ # make sure to include all the values
+ reversed_bins[0] -= 1
+ reversed_bins[-1] += 1
+ hist_df = (
+ df.with_columns(pl.col(column_name).mul(-1).alias("reverse"))["reverse"]
+ .hist(bins=reversed_bins)
+ .with_columns(pl.col("breakpoint").mul(-1), pl.col("count"))
+ .reverse()
@@ -194,3 +194 @@ def compute_histogram(
- hist_reverted = hist_df_reverted["count"].cast(int).to_list()
- hist = hist_reverted[::-1]
- hist = [hist[0] + hist[1]] + hist[2:-2] + [hist[-2] + hist[-1]]
+ hist = hist_df["count"].to_list()
@@ -648 +646 @@ class MediaColumn(Column):
- cls, parquet_directory: Path, column_name: str, transform_func: Callable[[Any], Any]
+ cls, parquet_paths: list[Path], column_name: str, transform_func: Callable[[Any], Any]
@@ -650 +647,0 @@ class MediaColumn(Column):
- parquet_files = list(parquet_directory.glob("*.parquet"))
@@ -652 +649 @@ class MediaColumn(Column):
- for filename in parquet_files:
+ for filename in parquet_paths:
@@ -666 +663 @@ class MediaColumn(Column):
- parquet_directory: Path,
+ parquet_paths: list[Path],
@@ -670 +667 @@ class MediaColumn(Column):
- transformed_values = cls.compute_transformed_data(parquet_directory, column_name, cls.transform)
+ transformed_values = cls.compute_transformed_data(parquet_paths, column_name, cls.transform)
@@ -697 +694 @@ class MediaColumn(Column):
- def compute_and_prepare_response(self, parquet_directory: Path) -> StatisticsPerColumnItem:
+ def compute_and_prepare_response(self, parquet_paths: list[Path]) -> StatisticsPerColumnItem:
@@ -699 +696 @@ class MediaColumn(Column):
- parquet_directory=parquet_directory,
+ parquet_paths=parquet_paths,
diff --git a/libs/libcommon/src/libcommon/utils.py b/libs/libcommon/src/libcommon/utils.py
index c86077d5..93709680 100644
--- a/libs/libcommon/src/libcommon/utils.py
+++ b/libs/libcommon/src/libcommon/utils.py
@@ -13 +13 @@ from pathlib import Path
-from typing import Any, Optional, TypeVar, Union, cast
+from typing import Any, Optional, TypeVar, cast
@@ -22,0 +23 @@ from libcommon.exceptions import DatasetInBlockListError
+from libcommon.storage import StrPath
@@ -289,3 +290,3 @@ def download_file_from_hub(
- local_dir: Union[str, Path],
- hf_token: Optional[str],
- cache_dir: Union[str, Path, None] = None,
+ local_dir: Optional[StrPath] = None,
+ hf_token: Optional[str] = None,
+ cache_dir: Optional[StrPath] = None,
@@ -294 +295 @@ def download_file_from_hub(
-) -> None:
+) -> str:
@@ -298 +299 @@ def download_file_from_hub(
- retry_download_hub_file(
+ return retry_download_hub_file(
@@ -303 +304 @@ def download_file_from_hub(
- local_dir=local_dir,
+ local_dir=Path(local_dir) if local_dir is not None else None,
@@ -307 +308 @@ def download_file_from_hub(
- cache_dir=cache_dir,
+ cache_dir=Path(cache_dir) if cache_dir is not None else None,
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index a7412e96..56dd28cb 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -673,0 +674,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -711 +771 @@ name = "filelock"
-version = "3.12.0"
+version = "3.18.0"
@@ -714 +774 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -716,2 +776,2 @@ files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -721,2 +781,3 @@ files = [
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1170,0 +1232 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1171,0 +1234 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1180,0 +1244 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2197,0 +2262,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index b9c34d79..1fa388ee 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -673,0 +674,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -711 +771 @@ name = "filelock"
-version = "3.12.0"
+version = "3.18.0"
@@ -714 +774 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -716,2 +776,2 @@ files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -721,2 +781,3 @@ files = [
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1189,0 +1251 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1190,0 +1253 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1199,0 +1263 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2230,0 +2295,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index b724499f..4d5c9ae4 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -692,0 +693,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -730 +790 @@ name = "filelock"
-version = "3.12.2"
+version = "3.18.0"
@@ -733 +793 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -735,2 +795,2 @@ files = [
- {file = "filelock-3.12.2-py3-none-any.whl", hash = "sha256:cbb791cdea2a72f23da6ac5b5269ab0a0d161e9ef0100e653b69049a7706d1ec"},
- {file = "filelock-3.12.2.tar.gz", hash = "sha256:002740518d8aa59a26b0c76e10fb8c6e15eae825d34b6fdf670333fd7b938d81"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -740,2 +800,3 @@ files = [
-docs = ["furo (>=2023.5.20)", "sphinx (>=7.0.1)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4.1)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1208,0 +1270 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1209,0 +1272 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1218,0 +1282 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2287,0 +2352,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index 175cb61e..0ded55db 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -676 +676 @@ name = "duckdb"
-version = "0.10.3"
+version = "1.2.2"
@@ -681,47 +681,51 @@ files = [
- {file = "duckdb-0.10.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:cd25cc8d001c09a19340739ba59d33e12a81ab285b7a6bed37169655e1cefb31"},
- {file = "duckdb-0.10.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f9259c637b917ca0f4c63887e8d9b35ec248f5d987c886dfc4229d66a791009"},
- {file = "duckdb-0.10.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b48f5f1542f1e4b184e6b4fc188f497be8b9c48127867e7d9a5f4a3e334f88b0"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e327f7a3951ea154bb56e3fef7da889e790bd9a67ca3c36afc1beb17d3feb6d6"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5d8b20ed67da004b4481973f4254fd79a0e5af957d2382eac8624b5c527ec48c"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d37680b8d7be04e4709db3a66c8b3eb7ceba2a5276574903528632f2b2cc2e60"},
- {file = "duckdb-0.10.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3d34b86d6a2a6dfe8bb757f90bfe7101a3bd9e3022bf19dbddfa4b32680d26a9"},
- {file = "duckdb-0.10.3-cp310-cp310-win_amd64.whl", hash = "sha256:73b1cb283ca0f6576dc18183fd315b4e487a545667ffebbf50b08eb4e8cdc143"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d917dde19fcec8cadcbef1f23946e85dee626ddc133e1e3f6551f15a61a03c61"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:46757e0cf5f44b4cb820c48a34f339a9ccf83b43d525d44947273a585a4ed822"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:338c14d8ac53ac4aa9ec03b6f1325ecfe609ceeb72565124d489cb07f8a1e4eb"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:651fcb429602b79a3cf76b662a39e93e9c3e6650f7018258f4af344c816dab72"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d3ae3c73b98b6215dab93cc9bc936b94aed55b53c34ba01dec863c5cab9f8e25"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:56429b2cfe70e367fb818c2be19f59ce2f6b080c8382c4d10b4f90ba81f774e9"},
- {file = "duckdb-0.10.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b46c02c2e39e3676b1bb0dc7720b8aa953734de4fd1b762e6d7375fbeb1b63af"},
- {file = "duckdb-0.10.3-cp311-cp311-win_amd64.whl", hash = "sha256:bcd460feef56575af2c2443d7394d405a164c409e9794a4d94cb5fdaa24a0ba4"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:e229a7c6361afbb0d0ab29b1b398c10921263c52957aefe3ace99b0426fdb91e"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:732b1d3b6b17bf2f32ea696b9afc9e033493c5a3b783c292ca4b0ee7cc7b0e66"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f5380d4db11fec5021389fb85d614680dc12757ef7c5881262742250e0b58c75"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:468a4e0c0b13c55f84972b1110060d1b0f854ffeb5900a178a775259ec1562db"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fa1e7ff8d18d71defa84e79f5c86aa25d3be80d7cb7bc259a322de6d7cc72da"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ed1063ed97c02e9cf2e7fd1d280de2d1e243d72268330f45344c69c7ce438a01"},
- {file = "duckdb-0.10.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:22f2aad5bb49c007f3bfcd3e81fdedbc16a2ae41f2915fc278724ca494128b0c"},
- {file = "duckdb-0.10.3-cp312-cp312-win_amd64.whl", hash = "sha256:8f9e2bb00a048eb70b73a494bdc868ce7549b342f7ffec88192a78e5a4e164bd"},
- {file = "duckdb-0.10.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a6c2fc49875b4b54e882d68703083ca6f84b27536d57d623fc872e2f502b1078"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a66c125d0c30af210f7ee599e7821c3d1a7e09208196dafbf997d4e0cfcb81ab"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d99dd7a1d901149c7a276440d6e737b2777e17d2046f5efb0c06ad3b8cb066a6"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5ec3bbdb209e6095d202202893763e26c17c88293b88ef986b619e6c8b6715bd"},
- {file = "duckdb-0.10.3-cp37-cp37m-musllinux_1_2_x86_64.whl", hash = "sha256:2b3dec4ef8ed355d7b7230b40950b30d0def2c387a2e8cd7efc80b9d14134ecf"},
- {file = "duckdb-0.10.3-cp37-cp37m-win_amd64.whl", hash = "sha256:04129f94fb49bba5eea22f941f0fb30337f069a04993048b59e2811f52d564bc"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:d75d67024fc22c8edfd47747c8550fb3c34fb1cbcbfd567e94939ffd9c9e3ca7"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:f3796e9507c02d0ddbba2e84c994fae131da567ce3d9cbb4cbcd32fadc5fbb26"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:78e539d85ebd84e3e87ec44d28ad912ca4ca444fe705794e0de9be3dd5550c11"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a99b67ac674b4de32073e9bc604b9c2273d399325181ff50b436c6da17bf00a"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1209a354a763758c4017a1f6a9f9b154a83bed4458287af9f71d84664ddb86b6"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b735cea64aab39b67c136ab3a571dbf834067f8472ba2f8bf0341bc91bea820"},
- {file = "duckdb-0.10.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:816ffb9f758ed98eb02199d9321d592d7a32a6cb6aa31930f4337eb22cfc64e2"},
- {file = "duckdb-0.10.3-cp38-cp38-win_amd64.whl", hash = "sha256:1631184b94c3dc38b13bce4045bf3ae7e1b0ecbfbb8771eb8d751d8ffe1b59b3"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:fb98c35fc8dd65043bc08a2414dd9f59c680d7e8656295b8969f3f2061f26c52"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7e75c9f5b6a92b2a6816605c001d30790f6d67ce627a2b848d4d6040686efdf9"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ae786eddf1c2fd003466e13393b9348a44b6061af6fe7bcb380a64cac24e7df7"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b9387da7b7973707b0dea2588749660dd5dd724273222680e985a2dd36787668"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:538f943bf9fa8a3a7c4fafa05f21a69539d2c8a68e557233cbe9d989ae232899"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6930608f35025a73eb94252964f9f19dd68cf2aaa471da3982cf6694866cfa63"},
- {file = "duckdb-0.10.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:03bc54a9cde5490918aad82d7d2a34290e3dfb78d5b889c6626625c0f141272a"},
- {file = "duckdb-0.10.3-cp39-cp39-win_amd64.whl", hash = "sha256:372b6e3901d85108cafe5df03c872dfb6f0dbff66165a0cf46c47246c1957aa0"},
- {file = "duckdb-0.10.3.tar.gz", hash = "sha256:c5bd84a92bc708d3a6adffe1f554b94c6e76c795826daaaf482afc3d9c636971"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
@@ -767 +771 @@ name = "filelock"
-version = "3.12.2"
+version = "3.18.0"
@@ -770 +774 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -772,2 +776,2 @@ files = [
- {file = "filelock-3.12.2-py3-none-any.whl", hash = "sha256:cbb791cdea2a72f23da6ac5b5269ab0a0d161e9ef0100e653b69049a7706d1ec"},
- {file = "filelock-3.12.2.tar.gz", hash = "sha256:002740518d8aa59a26b0c76e10fb8c6e15eae825d34b6fdf670333fd7b938d81"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -777,2 +781,3 @@ files = [
-docs = ["furo (>=2023.5.20)", "sphinx (>=7.0.1)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4.1)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1248,0 +1254 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1249,0 +1256 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1258,0 +1266 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2292,0 +2301,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
@@ -3705 +3756 @@ python-versions = "3.9.18"
-content-hash = "58ca460da360a00a62a6c1b3e2a15728ae06d90546263840ff7ba3093c195008"
+content-hash = "a5131344e87861f1705598a3aa4c337009e205f1ac1db6f4a4915ac0e824a718"
diff --git a/services/search/pyproject.toml b/services/search/pyproject.toml
index 8fed9c02..63b3d06d 100644
--- a/services/search/pyproject.toml
+++ b/services/search/pyproject.toml
@@ -10 +9,0 @@ python = "3.9.18"
-duckdb = "^0.10.3"
diff --git a/services/search/src/search/app.py b/services/search/src/search/app.py
index 2e7794a1..ee535cc8 100644
--- a/services/search/src/search/app.py
+++ b/services/search/src/search/app.py
@@ -13 +13 @@ from libcommon.resources import CacheMongoResource, QueueMongoResource, Resource
-from libcommon.storage import exists, init_duckdb_index_cache_dir
+from libcommon.storage import exists, init_duckdb_index_cache_dir, init_parquet_metadata_dir
@@ -39,0 +40,3 @@ def create_app_with_config(app_config: AppConfig) -> Starlette:
+ parquet_metadata_directory = init_parquet_metadata_dir(directory=app_config.parquet_metadata.storage_directory)
+ if not exists(parquet_metadata_directory):
+ raise RuntimeError("The parquet metadata storage directory could not be accessed. Exiting.")
@@ -98,0 +102 @@ def create_app_with_config(app_config: AppConfig) -> Starlette:
+ parquet_metadata_directory=parquet_metadata_directory,
@@ -120,0 +125 @@ def create_app_with_config(app_config: AppConfig) -> Starlette:
+ parquet_metadata_directory=parquet_metadata_directory,
diff --git a/services/search/src/search/config.py b/services/search/src/search/config.py
index ef33184c..dc5557a2 100644
--- a/services/search/src/search/config.py
+++ b/services/search/src/search/config.py
@@ -15,0 +16 @@ from libcommon.config import (
+ ParquetMetadataConfig,
@@ -65,0 +67 @@ class AppConfig:
+ parquet_metadata: ParquetMetadataConfig = field(default_factory=ParquetMetadataConfig)
@@ -80,0 +83 @@ class AppConfig:
+ parquet_metadata=ParquetMetadataConfig.from_env(),
diff --git a/services/search/src/search/duckdb_connection.py b/services/search/src/search/duckdb_connection.py
index df575062..0fc42e84 100644
--- a/services/search/src/search/duckdb_connection.py
+++ b/services/search/src/search/duckdb_connection.py
@@ -4,0 +5 @@ import duckdb
+ATTACH_READ_ONLY_DATABASE = "ATTACH '{database}' as db (READ_ONLY); USE db;"
@@ -9,2 +10,6 @@ SET_EXTENSIONS_DIRECTORY_COMMAND = "SET extension_directory='{directory}';"
-def duckdb_connect(extensions_directory: Optional[str] = None, **kwargs: Any) -> duckdb.DuckDBPyConnection:
- con = duckdb.connect(read_only=True, **kwargs)
+def duckdb_connect(
+ database: Optional[str] = None, extensions_directory: Optional[str] = None, **kwargs: Any
+) -> duckdb.DuckDBPyConnection:
+ con = duckdb.connect(":memory:", **kwargs)
+ if database is not None:
+ con.execute(ATTACH_READ_ONLY_DATABASE.format(database=database))
diff --git a/services/search/src/search/routes/filter.py b/services/search/src/search/routes/filter.py
index c65f4e3a..3f611f11 100644
--- a/services/search/src/search/routes/filter.py
+++ b/services/search/src/search/routes/filter.py
@@ -6,0 +7 @@ import re
+from fnmatch import fnmatch
@@ -16,0 +18,2 @@ from libapi.duckdb import (
+ get_cache_entry_from_parquet_metadata_job,
+ get_index_file_location_and_build_if_missing,
@@ -32 +35 @@ from libapi.utils import (
-from libcommon.duckdb_utils import duckdb_index_is_partial
+from libcommon.duckdb_utils import DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN, duckdb_index_is_partial
@@ -64,0 +68 @@ def create_filter_endpoint(
+ parquet_metadata_directory: StrPath,
@@ -77,0 +82 @@ def create_filter_endpoint(
+ max_split_size_bytes: int = 5_000_000_000,
@@ -106,20 +111,34 @@ def create_filter_endpoint(
- with StepProfiler(method="filter_endpoint", step="validate indexing was done"):
- # no cache data is needed to download the index file
- # but will help to validate if indexing was done
- duckdb_index_cache_entry = get_cache_entry_from_duckdb_index_job(
- dataset=dataset,
- config=config,
- split=split,
- hf_endpoint=hf_endpoint,
- hf_token=hf_token,
- hf_timeout_seconds=hf_timeout_seconds,
- blocked_datasets=blocked_datasets,
- storage_clients=storage_clients,
- )
- revision = duckdb_index_cache_entry["dataset_git_revision"]
- if duckdb_index_cache_entry["http_status"] != HTTPStatus.OK:
- return get_json_error_response(
- content=duckdb_index_cache_entry["content"],
- status_code=duckdb_index_cache_entry["http_status"],
- max_age=max_age_short,
- error_code=duckdb_index_cache_entry["error_code"],
+ if fnmatch(dataset, DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN):
+ with StepProfiler(method="filter_endpoint", step="build index if missing"):
+ # get parquet urls and dataset_info
+ parquet_metadata_response = get_cache_entry_from_parquet_metadata_job(
+ dataset=dataset,
+ config=config,
+ split=split,
+ hf_endpoint=hf_endpoint,
+ hf_token=hf_token,
+ hf_timeout_seconds=hf_timeout_seconds,
+ blocked_datasets=blocked_datasets,
+ storage_clients=storage_clients,
+ )
+ revision = parquet_metadata_response["dataset_git_revision"]
+ if parquet_metadata_response["http_status"] != HTTPStatus.OK:
+ return get_json_error_response(
+ content=parquet_metadata_response["content"],
+ status_code=parquet_metadata_response["http_status"],
+ max_age=max_age_short,
+ error_code=parquet_metadata_response["error_code"],
+ revision=revision,
+ )
+ content_parquet_metadata = parquet_metadata_response["content"]
+ split_parquet_files = [
+ parquet_file
+ for parquet_file in content_parquet_metadata["parquet_files_metadata"]
+ if parquet_file["config"] == config and parquet_file["split"] == split
+ ]
+ features = Features.from_dict(content_parquet_metadata["features"])
+ index_file_location, partial = await get_index_file_location_and_build_if_missing(
+ duckdb_index_file_directory=duckdb_index_file_directory,
+ dataset=dataset,
+ config=config,
+ split=split,
@@ -126,0 +146,20 @@ def create_filter_endpoint(
+ hf_token=hf_token,
+ max_split_size_bytes=max_split_size_bytes,
+ extensions_directory=extensions_directory,
+ parquet_metadata_directory=parquet_metadata_directory,
+ split_parquet_files=split_parquet_files,
+ features=features,
+ )
+ else:
+ with StepProfiler(method="filter_endpoint", step="validate indexing was done"):
+ # no cache data is needed to download the index file
+ # but will help to validate if indexing was done
+ duckdb_index_cache_entry = get_cache_entry_from_duckdb_index_job(
+ dataset=dataset,
+ config=config,
+ split=split,
+ hf_endpoint=hf_endpoint,
+ hf_token=hf_token,
+ hf_timeout_seconds=hf_timeout_seconds,
+ blocked_datasets=blocked_datasets,
+ storage_clients=storage_clients,
@@ -127,0 +167,9 @@ def create_filter_endpoint(
+ revision = duckdb_index_cache_entry["dataset_git_revision"]
+ if duckdb_index_cache_entry["http_status"] != HTTPStatus.OK:
+ return get_json_error_response(
+ content=duckdb_index_cache_entry["content"],
+ status_code=duckdb_index_cache_entry["http_status"],
+ max_age=max_age_short,
+ error_code=duckdb_index_cache_entry["error_code"],
+ revision=revision,
+ )
@@ -129,5 +177,5 @@ def create_filter_endpoint(
- # check if the index is on the full dataset or if it's partial
- url = duckdb_index_cache_entry["content"]["url"]
- filename = duckdb_index_cache_entry["content"]["filename"]
- index_size = duckdb_index_cache_entry["content"]["size"]
- partial = duckdb_index_is_partial(url)
+ # check if the index is on the full dataset or if it's partial
+ url = duckdb_index_cache_entry["content"]["url"]
+ filename = duckdb_index_cache_entry["content"]["filename"]
+ index_size = duckdb_index_cache_entry["content"]["size"]
+ partial = duckdb_index_is_partial(url)
@@ -135,17 +183,17 @@ def create_filter_endpoint(
- with StepProfiler(method="filter_endpoint", step="download index file if missing"):
- index_file_location = await get_index_file_location_and_download_if_missing(
- duckdb_index_file_directory=duckdb_index_file_directory,
- dataset=dataset,
- config=config,
- split=split,
- revision=revision,
- filename=filename,
- size_bytes=index_size,
- url=url,
- target_revision=target_revision,
- hf_token=hf_token,
- )
- with StepProfiler(method="filter_endpoint", step="get features"):
- # in split-duckdb-index we always add the ROW_IDX_COLUMN column
- # see https://github.com/huggingface/dataset-viewer/blob/main/services/worker/src/worker/job_runners/split/duckdb_index.py#L305
- features = Features.from_dict(duckdb_index_cache_entry["content"]["features"])
+ with StepProfiler(method="filter_endpoint", step="download index file if missing"):
+ index_file_location = await get_index_file_location_and_download_if_missing(
+ duckdb_index_file_directory=duckdb_index_file_directory,
+ dataset=dataset,
+ config=config,
+ split=split,
+ revision=revision,
+ filename=filename,
+ size_bytes=index_size,
+ url=url,
+ target_revision=target_revision,
+ hf_token=hf_token,
+ )
+ with StepProfiler(method="filter_endpoint", step="get features"):
+ # in split-duckdb-index we always add the ROW_IDX_COLUMN column
+ # see https://github.com/huggingface/dataset-viewer/blob/main/services/worker/src/worker/job_runners/split/duckdb_index.py#L305
+ features = Features.from_dict(duckdb_index_cache_entry["content"]["features"])
diff --git a/services/search/src/search/routes/search.py b/services/search/src/search/routes/search.py
index 9d4f48db..c4ae6e13 100644
--- a/services/search/src/search/routes/search.py
+++ b/services/search/src/search/routes/search.py
@@ -5,0 +6 @@ import random
+from fnmatch import fnmatch
@@ -14,0 +16,2 @@ from libapi.duckdb import (
+ get_cache_entry_from_parquet_metadata_job,
+ get_index_file_location_and_build_if_missing,
@@ -36 +39 @@ from libcommon.dtos import PaginatedResponse
-from libcommon.duckdb_utils import duckdb_index_is_partial
+from libcommon.duckdb_utils import DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN, duckdb_index_is_partial
@@ -52 +55 @@ FTS_STAGE_TABLE_COMMAND = f"SELECT * FROM (SELECT {ROW_IDX_COLUMN}, fts_main_dat
-JOIN_STAGE_AND_DATA_COMMAND = "SELECT {columns} FROM fts_stage_table JOIN data USING({row_idx_column}) ORDER BY fts_stage_table.{hf_fts_score} DESC;" # nosec
+JOIN_STAGE_AND_DATA_COMMAND = "SELECT {columns} FROM memory.fts_stage_table JOIN db.data USING({row_idx_column}) ORDER BY memory.fts_stage_table.{hf_fts_score} DESC;" # nosec
@@ -74,0 +78,3 @@ def full_text_search(
+ con.execute("USE memory;")
+ con.from_arrow(fts_stage_table).create_view("fts_stage_table")
+ con.execute("USE db;")
@@ -119,0 +126 @@ def create_search_endpoint(
+ parquet_metadata_directory: StrPath,
@@ -133,0 +141 @@ def create_search_endpoint(
+ max_split_size_bytes: int = 5_000_000_000,
@@ -160,20 +168,34 @@ def create_search_endpoint(
- with StepProfiler(method="search_endpoint", step="validate indexing was done"):
- # no cache data is needed to download the index file
- # but will help to validate if indexing was done
- duckdb_index_cache_entry = get_cache_entry_from_duckdb_index_job(
- dataset=dataset,
- config=config,
- split=split,
- hf_endpoint=hf_endpoint,
- hf_token=hf_token,
- hf_timeout_seconds=hf_timeout_seconds,
- blocked_datasets=blocked_datasets,
- storage_clients=storage_clients,
- )
- revision = duckdb_index_cache_entry["dataset_git_revision"]
- if duckdb_index_cache_entry["http_status"] != HTTPStatus.OK:
- return get_json_error_response(
- content=duckdb_index_cache_entry["content"],
- status_code=duckdb_index_cache_entry["http_status"],
- max_age=max_age_short,
- error_code=duckdb_index_cache_entry["error_code"],
+ if fnmatch(dataset, DISABLED_DUCKDB_REF_BRANCH_DATASET_NAME_PATTERN):
+ with StepProfiler(method="filter_endpoint", step="build index if missing"):
+ # get parquet urls and dataset_info
+ parquet_metadata_response = get_cache_entry_from_parquet_metadata_job(
+ dataset=dataset,
+ config=config,
+ split=split,
+ hf_endpoint=hf_endpoint,
+ hf_token=hf_token,
+ hf_timeout_seconds=hf_timeout_seconds,
+ blocked_datasets=blocked_datasets,
+ storage_clients=storage_clients,
+ )
+ revision = parquet_metadata_response["dataset_git_revision"]
+ if parquet_metadata_response["http_status"] != HTTPStatus.OK:
+ return get_json_error_response(
+ content=parquet_metadata_response["content"],
+ status_code=parquet_metadata_response["http_status"],
+ max_age=max_age_short,
+ error_code=parquet_metadata_response["error_code"],
+ revision=revision,
+ )
+ content_parquet_metadata = parquet_metadata_response["content"]
+ split_parquet_files = [
+ parquet_file
+ for parquet_file in content_parquet_metadata["parquet_files_metadata"]
+ if parquet_file["config"] == config and parquet_file["split"] == split
+ ]
+ features = Features.from_dict(content_parquet_metadata["features"])
+ index_file_location, partial = await get_index_file_location_and_build_if_missing(
+ duckdb_index_file_directory=duckdb_index_file_directory,
+ dataset=dataset,
+ config=config,
+ split=split,
@@ -180,0 +203,6 @@ def create_search_endpoint(
+ hf_token=hf_token,
+ max_split_size_bytes=max_split_size_bytes,
+ extensions_directory=extensions_directory,
+ parquet_metadata_directory=parquet_metadata_directory,
+ split_parquet_files=split_parquet_files,
+ features=features,
@@ -182,24 +210,47 @@ def create_search_endpoint(
- if duckdb_index_cache_entry["content"]["stemmer"] is None:
- raise SearchFeatureNotAvailableError("The split does not have search feature enabled.")
-
- # check if the index is on the full dataset or if it's partial
- url = duckdb_index_cache_entry["content"]["url"]
- filename = duckdb_index_cache_entry["content"]["filename"]
- index_size = duckdb_index_cache_entry["content"]["size"]
- partial = duckdb_index_is_partial(url)
-
- with StepProfiler(method="search_endpoint", step="download index file if missing"):
- index_file_location = await get_index_file_location_and_download_if_missing(
- duckdb_index_file_directory=duckdb_index_file_directory,
- dataset=dataset,
- config=config,
- split=split,
- revision=revision,
- filename=filename,
- size_bytes=index_size,
- url=url,
- target_revision=target_revision,
- hf_token=hf_token,
- )
- with StepProfiler(method="search_endpoint", step="get features"):
- features = Features.from_dict(duckdb_index_cache_entry["content"]["features"])
+ else:
+ with StepProfiler(method="search_endpoint", step="validate indexing was done"):
+ # no cache data is needed to download the index file
+ # but will help to validate if indexing was done
+ duckdb_index_cache_entry = get_cache_entry_from_duckdb_index_job(
+ dataset=dataset,
+ config=config,
+ split=split,
+ hf_endpoint=hf_endpoint,
+ hf_token=hf_token,
+ hf_timeout_seconds=hf_timeout_seconds,
+ blocked_datasets=blocked_datasets,
+ storage_clients=storage_clients,
+ )
+ revision = duckdb_index_cache_entry["dataset_git_revision"]
+ if duckdb_index_cache_entry["http_status"] != HTTPStatus.OK:
+ return get_json_error_response(
+ content=duckdb_index_cache_entry["content"],
+ status_code=duckdb_index_cache_entry["http_status"],
+ max_age=max_age_short,
+ error_code=duckdb_index_cache_entry["error_code"],
+ revision=revision,
+ )
+ if duckdb_index_cache_entry["content"]["stemmer"] is None:
+ raise SearchFeatureNotAvailableError("The split does not have search feature enabled.")
+
+ # check if the index is on the full dataset or if it's partial
+ url = duckdb_index_cache_entry["content"]["url"]
+ filename = duckdb_index_cache_entry["content"]["filename"]
+ index_size = duckdb_index_cache_entry["content"]["size"]
+ partial = duckdb_index_is_partial(url)
+
+ with StepProfiler(method="search_endpoint", step="download index file if missing"):
+ index_file_location = await get_index_file_location_and_download_if_missing(
+ duckdb_index_file_directory=duckdb_index_file_directory,
+ dataset=dataset,
+ config=config,
+ split=split,
+ revision=revision,
+ filename=filename,
+ size_bytes=index_size,
+ url=url,
+ target_revision=target_revision,
+ hf_token=hf_token,
+ )
+ with StepProfiler(method="search_endpoint", step="get features"):
+ features = Features.from_dict(duckdb_index_cache_entry["content"]["features"])
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index c8155958..d3638e8d 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -673,0 +674,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -711 +771 @@ name = "filelock"
-version = "3.12.3"
+version = "3.18.0"
@@ -714 +774 @@ optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.9"
@@ -716,2 +776,2 @@ files = [
- {file = "filelock-3.12.3-py3-none-any.whl", hash = "sha256:f067e40ccc40f2b48395a80fcbd4728262fab54e232e090a4063ab804179efeb"},
- {file = "filelock-3.12.3.tar.gz", hash = "sha256:0ecc1dd2ec4672a10c8550a8182f1bd0c0a5088470ecd5a125e45f49472fac3d"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -720,3 +779,0 @@ files = [
-[package.dependencies]
-typing-extensions = {version = ">=4.7.1", markers = "python_version < \"3.11\""}
-
@@ -724,2 +781,3 @@ typing-extensions = {version = ">=4.7.1", markers = "python_version < \"3.11\""}
-docs = ["furo (>=2023.7.26)", "sphinx (>=7.1.2)", "sphinx-autodoc-typehints (>=1.24)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.3)", "diff-cover (>=7.7)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1218,0 +1277 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1219,0 +1279 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1228,0 +1289 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2319,0 +2381,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index 54168785..de96bf72 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -673,0 +674,60 @@ wmi = ["wmi (>=1.5.1)"]
+[[package]]
+name = "duckdb"
+version = "1.2.2"
+description = "DuckDB in-process database"
+optional = false
+python-versions = ">=3.7.0"
+files = [
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
+]
+
@@ -711 +771 @@ name = "filelock"
-version = "3.12.0"
+version = "3.18.0"
@@ -714 +774 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -716,2 +776,2 @@ files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -721,2 +781,3 @@ files = [
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1189,0 +1251 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1190,0 +1253 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1199,0 +1263 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2230,0 +2295,43 @@ testing = ["pytest", "pytest-benchmark"]
+[[package]]
+name = "polars"
+version = "1.27.0"
+description = "Blazingly fast DataFrame library"
+optional = false
+python-versions = ">=3.9"
+files = [
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
+]
+
+[package.extras]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
+cloudpickle = ["cloudpickle"]
+connectorx = ["connectorx (>=0.3.2)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
+fsspec = ["fsspec"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
+numpy = ["numpy (>=1.16.0)"]
+openpyxl = ["openpyxl (>=3.0.0)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
+pyarrow = ["pyarrow (>=7.0.0)"]
+pydantic = ["pydantic"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
+xlsx2csv = ["xlsx2csv (>=0.8.0)"]
+xlsxwriter = ["xlsxwriter"]
+
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index 098a03fd..6525780d 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -984 +984 @@ name = "duckdb"
-version = "0.10.3"
+version = "1.2.2"
@@ -989,47 +989,51 @@ files = [
- {file = "duckdb-0.10.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:cd25cc8d001c09a19340739ba59d33e12a81ab285b7a6bed37169655e1cefb31"},
- {file = "duckdb-0.10.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f9259c637b917ca0f4c63887e8d9b35ec248f5d987c886dfc4229d66a791009"},
- {file = "duckdb-0.10.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b48f5f1542f1e4b184e6b4fc188f497be8b9c48127867e7d9a5f4a3e334f88b0"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e327f7a3951ea154bb56e3fef7da889e790bd9a67ca3c36afc1beb17d3feb6d6"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5d8b20ed67da004b4481973f4254fd79a0e5af957d2382eac8624b5c527ec48c"},
- {file = "duckdb-0.10.3-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d37680b8d7be04e4709db3a66c8b3eb7ceba2a5276574903528632f2b2cc2e60"},
- {file = "duckdb-0.10.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3d34b86d6a2a6dfe8bb757f90bfe7101a3bd9e3022bf19dbddfa4b32680d26a9"},
- {file = "duckdb-0.10.3-cp310-cp310-win_amd64.whl", hash = "sha256:73b1cb283ca0f6576dc18183fd315b4e487a545667ffebbf50b08eb4e8cdc143"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d917dde19fcec8cadcbef1f23946e85dee626ddc133e1e3f6551f15a61a03c61"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:46757e0cf5f44b4cb820c48a34f339a9ccf83b43d525d44947273a585a4ed822"},
- {file = "duckdb-0.10.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:338c14d8ac53ac4aa9ec03b6f1325ecfe609ceeb72565124d489cb07f8a1e4eb"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:651fcb429602b79a3cf76b662a39e93e9c3e6650f7018258f4af344c816dab72"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d3ae3c73b98b6215dab93cc9bc936b94aed55b53c34ba01dec863c5cab9f8e25"},
- {file = "duckdb-0.10.3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:56429b2cfe70e367fb818c2be19f59ce2f6b080c8382c4d10b4f90ba81f774e9"},
- {file = "duckdb-0.10.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b46c02c2e39e3676b1bb0dc7720b8aa953734de4fd1b762e6d7375fbeb1b63af"},
- {file = "duckdb-0.10.3-cp311-cp311-win_amd64.whl", hash = "sha256:bcd460feef56575af2c2443d7394d405a164c409e9794a4d94cb5fdaa24a0ba4"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:e229a7c6361afbb0d0ab29b1b398c10921263c52957aefe3ace99b0426fdb91e"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:732b1d3b6b17bf2f32ea696b9afc9e033493c5a3b783c292ca4b0ee7cc7b0e66"},
- {file = "duckdb-0.10.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f5380d4db11fec5021389fb85d614680dc12757ef7c5881262742250e0b58c75"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:468a4e0c0b13c55f84972b1110060d1b0f854ffeb5900a178a775259ec1562db"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0fa1e7ff8d18d71defa84e79f5c86aa25d3be80d7cb7bc259a322de6d7cc72da"},
- {file = "duckdb-0.10.3-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ed1063ed97c02e9cf2e7fd1d280de2d1e243d72268330f45344c69c7ce438a01"},
- {file = "duckdb-0.10.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:22f2aad5bb49c007f3bfcd3e81fdedbc16a2ae41f2915fc278724ca494128b0c"},
- {file = "duckdb-0.10.3-cp312-cp312-win_amd64.whl", hash = "sha256:8f9e2bb00a048eb70b73a494bdc868ce7549b342f7ffec88192a78e5a4e164bd"},
- {file = "duckdb-0.10.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a6c2fc49875b4b54e882d68703083ca6f84b27536d57d623fc872e2f502b1078"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a66c125d0c30af210f7ee599e7821c3d1a7e09208196dafbf997d4e0cfcb81ab"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d99dd7a1d901149c7a276440d6e737b2777e17d2046f5efb0c06ad3b8cb066a6"},
- {file = "duckdb-0.10.3-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5ec3bbdb209e6095d202202893763e26c17c88293b88ef986b619e6c8b6715bd"},
- {file = "duckdb-0.10.3-cp37-cp37m-musllinux_1_2_x86_64.whl", hash = "sha256:2b3dec4ef8ed355d7b7230b40950b30d0def2c387a2e8cd7efc80b9d14134ecf"},
- {file = "duckdb-0.10.3-cp37-cp37m-win_amd64.whl", hash = "sha256:04129f94fb49bba5eea22f941f0fb30337f069a04993048b59e2811f52d564bc"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:d75d67024fc22c8edfd47747c8550fb3c34fb1cbcbfd567e94939ffd9c9e3ca7"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:f3796e9507c02d0ddbba2e84c994fae131da567ce3d9cbb4cbcd32fadc5fbb26"},
- {file = "duckdb-0.10.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:78e539d85ebd84e3e87ec44d28ad912ca4ca444fe705794e0de9be3dd5550c11"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7a99b67ac674b4de32073e9bc604b9c2273d399325181ff50b436c6da17bf00a"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1209a354a763758c4017a1f6a9f9b154a83bed4458287af9f71d84664ddb86b6"},
- {file = "duckdb-0.10.3-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b735cea64aab39b67c136ab3a571dbf834067f8472ba2f8bf0341bc91bea820"},
- {file = "duckdb-0.10.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:816ffb9f758ed98eb02199d9321d592d7a32a6cb6aa31930f4337eb22cfc64e2"},
- {file = "duckdb-0.10.3-cp38-cp38-win_amd64.whl", hash = "sha256:1631184b94c3dc38b13bce4045bf3ae7e1b0ecbfbb8771eb8d751d8ffe1b59b3"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:fb98c35fc8dd65043bc08a2414dd9f59c680d7e8656295b8969f3f2061f26c52"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7e75c9f5b6a92b2a6816605c001d30790f6d67ce627a2b848d4d6040686efdf9"},
- {file = "duckdb-0.10.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ae786eddf1c2fd003466e13393b9348a44b6061af6fe7bcb380a64cac24e7df7"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b9387da7b7973707b0dea2588749660dd5dd724273222680e985a2dd36787668"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:538f943bf9fa8a3a7c4fafa05f21a69539d2c8a68e557233cbe9d989ae232899"},
- {file = "duckdb-0.10.3-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6930608f35025a73eb94252964f9f19dd68cf2aaa471da3982cf6694866cfa63"},
- {file = "duckdb-0.10.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:03bc54a9cde5490918aad82d7d2a34290e3dfb78d5b889c6626625c0f141272a"},
- {file = "duckdb-0.10.3-cp39-cp39-win_amd64.whl", hash = "sha256:372b6e3901d85108cafe5df03c872dfb6f0dbff66165a0cf46c47246c1957aa0"},
- {file = "duckdb-0.10.3.tar.gz", hash = "sha256:c5bd84a92bc708d3a6adffe1f554b94c6e76c795826daaaf482afc3d9c636971"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:6e5e6c333b550903ff11919ed1154c60c9b9d935db51afdb263babe523a8a69e"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_universal2.whl", hash = "sha256:c1fcbc579de8e4fa7e34242fd6f419c1a39520073b1fe0c29ed6e60ed5553f38"},
+ {file = "duckdb-1.2.2-cp310-cp310-macosx_12_0_x86_64.whl", hash = "sha256:690885060c4140922ffa2f6935291c6e74ddad0ca2cf33bff66474ce89312ab3"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a382782980643f5ee827990b76f079b22f47786509061c0afac28afaa5b8bf5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7c33345570ed8c50c9fe340c2767470115cc02d330f25384104cfad1f6e54f5"},
+ {file = "duckdb-1.2.2-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b744f8293ce649d802a9eabbf88e4930d672cf9de7d4fc9af5d14ceaeeec5805"},
+ {file = "duckdb-1.2.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:c8680e81b0c77be9fc968c1dd4cd38395c34b18bb693cbfc7b7742c18221cc9b"},
+ {file = "duckdb-1.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:fb41f2035a70378b3021f724bb08b047ca4aa475850a3744c442570054af3c52"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:081110ffbc9d53c9740ef55482c93b97db2f8030d681d1658827d2e94f77da03"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_universal2.whl", hash = "sha256:53a154dbc074604036a537784ce5d1468edf263745a4363ca06fdb922f0d0a99"},
+ {file = "duckdb-1.2.2-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:0353f80882c066f7b14451852395b7a360f3d4846a10555c4268eb49144ea11c"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b134a5002757af1ae44a9ae26c2fe963ffa09eb47a62779ce0c5eeb44bfc2f28"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd9c434127fd1575694e1cf19a393bed301f5d6e80b4bcdae80caa368a61a678"},
+ {file = "duckdb-1.2.2-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:890f58855d127c25bc3a53f4c24b27e79391c4468c4fcc99bc10d87b5d4bd1c4"},
+ {file = "duckdb-1.2.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a5002305cdd4e76c94b61b50abc5e3f4e32c9cb81116960bb4b74acbbc9c6c8"},
+ {file = "duckdb-1.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:cdb9999c6a109aa31196cdd22fc58a810a3d35d08181a25d1bf963988e89f0a5"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:f745379f44ad302560688855baaed9739c03b37a331338eda6a4ac655e4eb42f"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:087713fc5958cae5eb59097856b3deaae0def021660c8f2052ec83fa8345174a"},
+ {file = "duckdb-1.2.2-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:a1f96395319c447a31b9477881bd84b4cb8323d6f86f21ceaef355d22dd90623"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6aba3bc0acf4f8d52b94f7746c3b0007b78b517676d482dc516d63f48f967baf"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5c1556775a9ebaa49b5c8d64718f155ac3e05b34a49e9c99443cf105e8b0371"},
+ {file = "duckdb-1.2.2-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d625cc7d2faacfb2fc83ebbe001ae75dda175b3d8dce6a51a71c199ffac3627a"},
+ {file = "duckdb-1.2.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:73263f81545c5cb4360fbaf7b22a493e55ddf88fadbe639c43efb7bc8d7554c4"},
+ {file = "duckdb-1.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:b1c0c4d737fd2ab9681e4e78b9f361e0a827916a730e84fa91e76dca451b14d5"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:fb9a2c77236fae079185a990434cb9d8432902488ba990235c702fc2692d2dcd"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_universal2.whl", hash = "sha256:d8bb89e580cb9a3aaf42e4555bf265d3db9446abfb118e32150e1a5dfa4b5b15"},
+ {file = "duckdb-1.2.2-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:88916d7f0532dc926bed84b50408c00dcbe6d2097d0de93c3ff647d8d57b4f83"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30bece4f58a6c7bb0944a02dd1dc6de435a9daf8668fa31a9fe3a9923b20bd65"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bd2c6373b8b54474724c2119f6939c4568c428e1d0be5bcb1f4e3d7f1b7c8bb"},
+ {file = "duckdb-1.2.2-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72f688a8b0df7030c5a28ca6072817c1f090979e08d28ee5912dee37c26a7d0c"},
+ {file = "duckdb-1.2.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:26e9c349f56f7c99341b5c79bbaff5ba12a5414af0261e79bf1a6a2693f152f6"},
+ {file = "duckdb-1.2.2-cp313-cp313-win_amd64.whl", hash = "sha256:e1aec7102670e59d83512cf47d32a6c77a79df9df0294c5e4d16b6259851e2e9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1b374e7e2c474d6cd65fd80a94ff7263baec4be14ea193db4076d54eab408f9"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0fc6512d26eac83521938d7de65645ec08b04c2dc7807d4e332590c667e9d78"},
+ {file = "duckdb-1.2.2-cp37-cp37m-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3b451d16c3931fdbc235a12a39217a2faa03fa7c84c8560e65bc9b706e876089"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_arm64.whl", hash = "sha256:f3f8e09029ae47d3b904d32a03149ffc938bb3fb8a3048dc7b2d0f2ab50e0f56"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_universal2.whl", hash = "sha256:cee19d0c5bcb143b851ebd3ffc91e3445c5c3ee3cc0106edd882dd5b4091d5c0"},
+ {file = "duckdb-1.2.2-cp38-cp38-macosx_12_0_x86_64.whl", hash = "sha256:c0f86c5e4ab7d4007ca0baa1707486daa38869c43f552a56e9cd2a28d431c2ae"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378ef6a3d1a8b50da5a89376cc0cc6f131102d4a27b4b3adef10b20f7a6ea49f"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b985d13e161c27e8b947af28658d460925bade61cb5d7431b8258a807cc83752"},
+ {file = "duckdb-1.2.2-cp38-cp38-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446a5db77caeb155bcc0874c162a51f6d023af4aa2563fffbdec555db7402a35"},
+ {file = "duckdb-1.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:0c1a3496695c7220ac83dde02fc1cf174359c8072a6880050c8ae6b5c62a2635"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_arm64.whl", hash = "sha256:25ac669180f88fecca20f300b898e191f81aa674d51dde8a328bdeb28a572ab0"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_universal2.whl", hash = "sha256:d42e7e545d1059e6b73d0f0baa9ae34c90684bfd8c862e70b0d8ab92e01e0e3f"},
+ {file = "duckdb-1.2.2-cp39-cp39-macosx_12_0_x86_64.whl", hash = "sha256:f3ce127bcecc723f1c7bddbc57f0526d11128cb05bfd81ffcd5e69e2dd5a1624"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2418937adb9d6d0ca823bd385b914495294db27bc2963749d54af6708757f679"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:14d41f899ce7979e7b3f9097ebce70da5c659db2d81d08c07a72b2b50f869859"},
+ {file = "duckdb-1.2.2-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:85e90a9c5307cf4d9151844e60c80f492618ea6e9b71081020e7d462e071ac8f"},
+ {file = "duckdb-1.2.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:df8c8a4ec998139b8507213c44c50e24f62a36af1cfded87e8972173dc9f8baf"},
+ {file = "duckdb-1.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:6507ad2445cd3479853fb6473164b5eb5b22446d283c9892cfbbd0a85c5f361d"},
+ {file = "duckdb-1.2.2.tar.gz", hash = "sha256:1e53555dece49201df08645dbfa4510c86440339889667702f936b7d28d39e43"},
@@ -1086 +1090 @@ name = "filelock"
-version = "3.12.0"
+version = "3.18.0"
@@ -1089 +1093 @@ optional = false
-python-versions = ">=3.7"
+python-versions = ">=3.9"
@@ -1091,2 +1095,2 @@ files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
+ {file = "filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de"},
+ {file = "filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2"},
@@ -1096,2 +1100,3 @@ files = [
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
+docs = ["furo (>=2024.8.6)", "sphinx (>=8.1.3)", "sphinx-autodoc-typehints (>=3)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.6.10)", "diff-cover (>=9.2.1)", "pytest (>=8.3.4)", "pytest-asyncio (>=0.25.2)", "pytest-cov (>=6)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.28.1)"]
+typing = ["typing-extensions (>=4.12.2)"]
@@ -1649,0 +1655 @@ datasets = {version = "3.4.1", extras = ["audio", "vision"]}
+duckdb = "^1.2.2"
@@ -1650,0 +1657 @@ environs = "^9.5.0"
+filelock = "^3.18.0"
@@ -1659,0 +1667 @@ pillow = "^10.3.0"
+polars = "^1.27.0"
@@ -2948 +2956 @@ name = "polars"
-version = "0.20.15"
+version = "1.27.0"
@@ -2951 +2959 @@ optional = false
-python-versions = ">=3.8"
+python-versions = ">=3.9"
@@ -2953,6 +2961,7 @@ files = [
- {file = "polars-0.20.15-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:d528acc0b0900cb8363f065cbf65325571eeb4b245e4b68679beae75287451c9"},
- {file = "polars-0.20.15-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:3adc68bd1400c651da826e66ad735c07dafd5f1811f369f394f8d8fb71f1178b"},
- {file = "polars-0.20.15-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:be613e4640a607040e3361622a254f88ac99bd92b212d6f580a3f4b74b6617ed"},
- {file = "polars-0.20.15-cp38-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:a1936ec8de4262ce68dd5c4f43b74c996184a36012bdd0ff9454c33132bd4d28"},
- {file = "polars-0.20.15-cp38-abi3-win_amd64.whl", hash = "sha256:00b5687d1fdcb09f7c2babdf88f63b3238284bf9f6cddd2ea60aea07b711172e"},
- {file = "polars-0.20.15.tar.gz", hash = "sha256:88ad0c3e1f92185b86041d68783f9862ec21adc92a33001818697644dd0794ee"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:8df053bc9586e0672e99be43c5645f7b762c352d9212816c6cf238179af602e9"},
+ {file = "polars-1.27.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3b6795f745021ca63742a382d1feb39e2c0b5b7d17657a4484683301e869a86f"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b53cb3da131b0bceaa4fb0139ac916e516247e44184f863d09a6618a382bd04c"},
+ {file = "polars-1.27.0-cp39-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:74cf7f972861d5d1bcdef017a4d4af3ce30036f9afaa609d5fc04b2fb3764f66"},
+ {file = "polars-1.27.0-cp39-abi3-win_amd64.whl", hash = "sha256:83837056286f78e8a820a13ed803f0b27ea5015997a12f64cd0c8ff1b18fc555"},
+ {file = "polars-1.27.0-cp39-abi3-win_arm64.whl", hash = "sha256:8824ecd9796f8663661ab147a25945e4d21a5b8dee5f2ed985b50633ef40038b"},
+ {file = "polars-1.27.0.tar.gz", hash = "sha256:5207355926ad0a6a1b6e5c97fc8106f5c0618a22f5aaa84db233d77b10ef8118"},
@@ -2962,2 +2971,4 @@ files = [
-adbc = ["adbc-driver-manager", "adbc-driver-sqlite"]
-all = ["polars[adbc,cloudpickle,connectorx,deltalake,fastexcel,fsspec,gevent,numpy,pandas,plot,pyarrow,pydantic,pyiceberg,sqlalchemy,timezone,xlsx2csv,xlsxwriter]"]
+adbc = ["adbc-driver-manager[dbapi]", "adbc-driver-sqlite[dbapi]"]
+all = ["polars[async,cloudpickle,database,deltalake,excel,fsspec,graph,iceberg,numpy,pandas,plot,pyarrow,pydantic,style,timezone]"]
+async = ["gevent"]
+calamine = ["fastexcel (>=0.9)"]
@@ -2966,2 +2977,3 @@ connectorx = ["connectorx (>=0.3.2)"]
-deltalake = ["deltalake (>=0.14.0)"]
-fastexcel = ["fastexcel (>=0.9)"]
+database = ["polars[adbc,connectorx,sqlalchemy]"]
+deltalake = ["deltalake (>=0.19.0)"]
+excel = ["polars[calamine,openpyxl,xlsx2csv,xlsxwriter]"]
@@ -2969,2 +2981,3 @@ fsspec = ["fsspec"]
-gevent = ["gevent"]
-matplotlib = ["matplotlib"]
+gpu = ["cudf-polars-cu12"]
+graph = ["matplotlib"]
+iceberg = ["pyiceberg (>=0.7.1)"]
@@ -2973,2 +2986,3 @@ openpyxl = ["openpyxl (>=3.0.0)"]
-pandas = ["pandas", "pyarrow (>=7.0.0)"]
-plot = ["hvplot (>=0.9.1)"]
+pandas = ["pandas", "polars[pyarrow]"]
+plot = ["altair (>=5.4.0)"]
+polars-cloud = ["polars-cloud (>=0.0.1a1)"]
@@ -2977,4 +2991,3 @@ pydantic = ["pydantic"]
-pyiceberg = ["pyiceberg (>=0.5.0)"]
-pyxlsb = ["pyxlsb (>=1.0)"]
-sqlalchemy = ["pandas", "sqlalchemy"]
-timezone = ["backports-zoneinfo", "tzdata"]
+sqlalchemy = ["polars[pandas]", "sqlalchemy"]
+style = ["great-tables (>=0.8.0)"]
+timezone = ["tzdata"]
@@ -5527 +5540 @@ python-versions = "3.9.18"
-content-hash = "cbcbd6cb2e453b7784f6e62b17979ecb5554b8ba0422885bb29a5a81dfdd6890"
+content-hash = "bb3fec5fed3a703cbb138a3cf21e85e71600c7db4fc1e93ddc3e2da6114ca8c7"
diff --git a/services/worker/pyproject.toml b/services/worker/pyproject.toml
index 7055b2af..27721f7a 100644
--- a/services/worker/pyproject.toml
+++ b/services/worker/pyproject.toml
@@ -12 +11,0 @@ aiolimiter = "^1.0.0"
-duckdb = "^0.10.3"
diff --git a/services/worker/src/worker/job_runners/split/descriptive_statistics.py b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
index 41dd1d84..5400025f 100644
--- a/services/worker/src/worker/job_runners/split/descriptive_statistics.py
+++ b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
@@ -28,7 +28 @@ from libcommon.simple_cache import get_previous_step_or_raise
-from libcommon.storage import StrPath
-from libcommon.utils import download_file_from_hub
-
-from worker.config import AppConfig, DescriptiveStatisticsConfig
-from worker.dtos import CompleteJobResult
-from worker.job_runners.split.split_job_runner import SplitJobRunnerWithCache
-from worker.statistics_utils import (
+from libcommon.statistics_utils import (
@@ -49,0 +44,6 @@ from worker.statistics_utils import (
+from libcommon.storage import StrPath
+from libcommon.utils import download_file_from_hub
+
+from worker.config import AppConfig, DescriptiveStatisticsConfig
+from worker.dtos import CompleteJobResult
+from worker.job_runners.split.split_job_runner import SplitJobRunnerWithCache
@@ -275,0 +276 @@ def compute_descriptive_statistics_response(
+ local_parquet_paths = list(local_parquet_split_directory.glob("*.parquet"))
@@ -278 +279 @@ def compute_descriptive_statistics_response(
- column_stats = column.compute_and_prepare_response(local_parquet_split_directory)
+ column_stats = column.compute_and_prepare_response(local_parquet_paths)
@@ -283 +284 @@ def compute_descriptive_statistics_response(
- local_parquet_split_directory,
+ local_parquet_paths,
diff --git a/services/worker/src/worker/job_runners/split/duckdb_index.py b/services/worker/src/worker/job_runners/split/duckdb_index.py
index 6ddb679d..799e6767 100644
--- a/services/worker/src/worker/job_runners/split/duckdb_index.py
+++ b/services/worker/src/worker/job_runners/split/duckdb_index.py
@@ -8 +8 @@ from pathlib import Path
-from typing import Any, Literal, Optional
+from typing import Optional
@@ -11,2 +11 @@ import duckdb
-import polars as pl
-from datasets.features.features import Features, FeatureType, Translation, TranslationVariableLanguages, Value, _visit
+from datasets.features.features import Features
@@ -20 +18,0 @@ from huggingface_hub.hf_api import HfApi
-from huggingface_hub.repocard_data import DatasetCardData
@@ -22,0 +21,13 @@ from libcommon.dtos import JobInfo
+from libcommon.duckdb_utils import (
+ CREATE_INDEX_COMMAND,
+ CREATE_INDEX_ID_COLUMN_COMMANDS,
+ CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES,
+ CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES,
+ DUCKDB_DEFAULT_INDEX_FILENAME,
+ DUCKDB_DEFAULT_PARTIAL_INDEX_FILENAME,
+ INSTALL_AND_LOAD_EXTENSION_COMMAND,
+ SET_EXTENSIONS_DIRECTORY_COMMAND,
+ compute_transformed_data,
+ get_indexable_columns,
+ get_monolingual_stemmer,
+)
@@ -35 +45,0 @@ from libcommon.parquet_utils import (
- is_list_pa_type,
@@ -46,7 +55,0 @@ from worker.job_runners.split.split_job_runner import SplitJobRunnerWithCache
-from worker.statistics_utils import (
- STRING_DTYPES,
- AudioColumn,
- ImageColumn,
- ListColumn,
- StringColumn,
-)
@@ -60,158 +62,0 @@ from worker.utils import (
-DATASET_TYPE = "dataset"
-DEFAULT_STEMMER = "none" # Exact word matches
-DUCKDB_DEFAULT_INDEX_FILENAME = "index.duckdb"
-DUCKDB_DEFAULT_PARTIAL_INDEX_FILENAME = "partial-index.duckdb"
-CREATE_INDEX_COMMAND = (
- f"PRAGMA create_fts_index('data', '{ROW_IDX_COLUMN}', {{columns}}, stemmer='{{stemmer}}', overwrite=1);"
-)
-CREATE_TABLE_COMMAND = "CREATE OR REPLACE TABLE data AS SELECT {columns} FROM '{source}';"
-CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND = """
- CREATE OR REPLACE TABLE data AS
- SELECT {columns}, transformed_df.* FROM '{source}'
- POSITIONAL JOIN transformed_df;
-"""
-CREATE_SEQUENCE_COMMAND = "CREATE OR REPLACE SEQUENCE serial START 0 MINVALUE 0;"
-ALTER_TABLE_BY_ADDING_SEQUENCE_COLUMN = (
- f"ALTER TABLE data ADD COLUMN {ROW_IDX_COLUMN} BIGINT DEFAULT nextval('serial');"
-)
-CREATE_INDEX_ID_COLUMN_COMMANDS = CREATE_SEQUENCE_COMMAND + ALTER_TABLE_BY_ADDING_SEQUENCE_COLUMN
-INSTALL_AND_LOAD_EXTENSION_COMMAND = "INSTALL 'fts'; LOAD 'fts';"
-SET_EXTENSIONS_DIRECTORY_COMMAND = "SET extension_directory='{directory}';"
-REPO_TYPE = "dataset"
-# Only some languages are supported, see: https://duckdb.org/docs/extensions/full_text_search.html#pragma-create_fts_index
-STEMMER_MAPPING = {
- # Stemmer : ["value ISO 639-1", "value ISO 639-2/3"]
- "arabic": ["ar", "ara"],
- "basque": ["eu", "eus"],
- "catalan": ["ca", "cat"],
- "danish": ["da", "dan"],
- "dutch": ["nl", "nld"],
- "english": ["en", "eng"],
- "finnish": ["fi", "fin"],
- "french": ["fr", "fra"],
- "german": ["de", "deu"],
- "greek": ["el", "ell"],
- "hindi": ["hi", "hin"],
- "hungarian": ["hu", "hun"],
- "indonesian": ["id", "ind"],
- "irish": ["ga", "gle"],
- "italian": ["it", "ita"],
- "lithuanian": ["lt", "lit"],
- "nepali": ["ne", "nep"],
- "norwegian": ["no", "nor"],
- "portuguese": ["pt", "por"],
- "romanian": ["ro", "ron"],
- "russian": ["ru", "rus"],
- "serbian": ["sr", "srp"],
- "spanish": ["es", "spa"],
- "swedish": ["sv", "swe"],
- "tamil": ["ta", "tam"],
- "turkish": ["tr", "tur"],
-}
-
-LengthDtype = Literal["string", "list"]
-
-
-def get_indexable_columns(features: Features) -> list[str]:
- indexable_columns: list[str] = []
- for column, feature in features.items():
- indexable = False
-
- def check_indexable(feature: FeatureType) -> None:
- nonlocal indexable
- if isinstance(feature, Value) and feature.dtype in STRING_DTYPES:
- indexable = True
- elif isinstance(feature, (Translation, TranslationVariableLanguages)):
- indexable = True
-
- _visit(feature, check_indexable)
- if indexable:
- indexable_columns.append(column)
- return indexable_columns
-
-
-def get_monolingual_stemmer(card_data: Optional[DatasetCardData]) -> str:
- if card_data is None:
- return DEFAULT_STEMMER
- all_languages = card_data["language"]
- if isinstance(all_languages, list) and len(all_languages) == 1:
- first_language = all_languages[0]
- elif isinstance(all_languages, str):
- first_language = all_languages
- else:
- return DEFAULT_STEMMER
-
- return next((language for language, codes in STEMMER_MAPPING.items() if first_language in codes), DEFAULT_STEMMER)
-
-
-def compute_length_column(
- parquet_directory: Path,
- column_name: str,
- target_df: Optional[pl.DataFrame],
- dtype: LengthDtype,
-) -> pl.DataFrame:
- column_class = ListColumn if dtype == "list" else StringColumn
- df = pl.read_parquet(str(parquet_directory / "*.parquet"), columns=[column_name])
- lengths_column_name = f"{column_name}.length"
- lengths_df: pl.DataFrame = column_class.compute_transformed_data(
- df, column_name, transformed_column_name=lengths_column_name
- )
- if target_df is None:
- return lengths_df.select(pl.col(lengths_column_name))
-
- target_df.insert_column(target_df.shape[1], lengths_df[lengths_column_name])
- return target_df
-
-
-def compute_audio_duration_column(
- parquet_directory: Path,
- column_name: str,
- target_df: Optional[pl.DataFrame],
-) -> pl.DataFrame:
- duration_column_name = f"{column_name}.duration"
- durations = AudioColumn.compute_transformed_data(parquet_directory, column_name, AudioColumn.get_duration)
- duration_df = pl.from_dict({duration_column_name: durations})
- if target_df is None:
- return duration_df
- target_df.insert_column(target_df.shape[1], duration_df[duration_column_name])
- return target_df
-
-
-def compute_image_width_height_column(
- parquet_directory: Path,
- column_name: str,
- target_df: Optional[pl.DataFrame],
-) -> pl.DataFrame:
- shapes = ImageColumn.compute_transformed_data(parquet_directory, column_name, ImageColumn.get_shape)
- widths, heights = list(zip(*shapes))
- width_column_name, height_column_name = f"{column_name}.width", f"{column_name}.height"
- shapes_df = pl.from_dict({width_column_name: widths, height_column_name: heights})
- if target_df is None:
- return shapes_df
- target_df.insert_column(target_df.shape[1], shapes_df[width_column_name])
- target_df.insert_column(target_df.shape[1], shapes_df[height_column_name])
- return target_df
-
-
-def compute_transformed_data(parquet_directory: Path, features: dict[str, Any]) -> Optional[pl.DataFrame]:
- transformed_df = None
- for feature_name, feature in features.items():
- if isinstance(feature, list) or (
- isinstance(feature, dict) and feature.get("_type") in ("LargeList", "Sequence")
- ):
- first_parquet_file = list(parquet_directory.glob("*.parquet"))[0]
- if is_list_pa_type(first_parquet_file, feature_name):
- transformed_df = compute_length_column(parquet_directory, feature_name, transformed_df, dtype="list")
-
- elif isinstance(feature, dict):
- if feature.get("_type") == "Value" and feature.get("dtype") in STRING_DTYPES:
- transformed_df = compute_length_column(parquet_directory, feature_name, transformed_df, dtype="string")
-
- elif feature.get("_type") == "Audio":
- transformed_df = compute_audio_duration_column(parquet_directory, feature_name, transformed_df)
-
- elif feature.get("_type") == "Image":
- transformed_df = compute_image_width_height_column(parquet_directory, feature_name, transformed_df)
-
- return transformed_df
-
@@ -312,0 +158 @@ def compute_split_duckdb_index_response(
+ all_split_parquets: list[Path] = []
@@ -314,10 +160,14 @@ def compute_split_duckdb_index_response(
- download_file_from_hub(
- repo_type=REPO_TYPE,
- revision=source_revision,
- repo_id=dataset,
- filename=f"{config}/{split_directory}/{parquet_file}",
- local_dir=duckdb_index_file_directory,
- hf_token=hf_token,
- cache_dir=duckdb_index_file_directory,
- force_download=True,
- resume_download=False,
+ all_split_parquets.append(
+ Path(
+ download_file_from_hub(
+ repo_type="dataset",
+ revision=source_revision,
+ repo_id=dataset,
+ filename=f"{config}/{split_directory}/{parquet_file}",
+ local_dir=duckdb_index_file_directory,
+ hf_token=hf_token,
+ cache_dir=duckdb_index_file_directory,
+ force_download=True,
+ resume_download=False,
+ )
+ )
@@ -325,2 +174,0 @@ def compute_split_duckdb_index_response(
- split_parquet_directory = duckdb_index_file_directory / config / split_directory
- all_split_parquets = str(split_parquet_directory / "*.parquet")
@@ -330 +178 @@ def compute_split_duckdb_index_response(
- transformed_df = compute_transformed_data(split_parquet_directory, features)
+ transformed_df = compute_transformed_data(all_split_parquets, features)
@@ -346,2 +194,2 @@ def compute_split_duckdb_index_response(
- create_command_sql = CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND.format(
- columns=column_names, source=all_split_parquets
+ create_command_sql = CREATE_TABLE_JOIN_WITH_TRANSFORMED_DATA_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
+ columns=column_names, source=[str(p) for p in all_split_parquets]
@@ -351 +199,3 @@ def compute_split_duckdb_index_response(
- create_command_sql = CREATE_TABLE_COMMAND.format(columns=column_names, source=all_split_parquets)
+ create_command_sql = CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(
+ columns=column_names, source=[str(p) for p in all_split_parquets]
+ )
@@ -413 +263 @@ def compute_split_duckdb_index_response(
- repo_type=DATASET_TYPE,
+ repo_type="dataset",
@@ -437 +287 @@ def compute_split_duckdb_index_response(
- repo_type=DATASET_TYPE,
+ repo_type="dataset",
diff --git a/services/worker/tests/job_runners/config/test_duckdb_index_size.py b/services/worker/tests/job_runners/config/test_duckdb_index_size.py
index 0dd84a40..e1940066 100644
--- a/services/worker/tests/job_runners/config/test_duckdb_index_size.py
+++ b/services/worker/tests/job_runners/config/test_duckdb_index_size.py
@@ -9,0 +10 @@ from libcommon.dtos import Priority
+from libcommon.duckdb_utils import DEFAULT_STEMMER
@@ -20 +20,0 @@ from worker.job_runners.config.duckdb_index_size import ConfigDuckdbIndexSizeJob
-from worker.job_runners.split.duckdb_index import DEFAULT_STEMMER
diff --git a/services/worker/tests/job_runners/split/test_descriptive_statistics.py b/services/worker/tests/job_runners/split/test_descriptive_statistics.py
index 0837b73b..a2d7be6c 100644
--- a/services/worker/tests/job_runners/split/test_descriptive_statistics.py
+++ b/services/worker/tests/job_runners/split/test_descriptive_statistics.py
@@ -13,0 +14,3 @@ from libcommon.simple_cache import upsert_response
+from libcommon.statistics_utils import (
+ ColumnType,
+)
@@ -22,3 +24,0 @@ from worker.resources import LibrariesResource
-from worker.statistics_utils import (
- ColumnType,
-)
diff --git a/services/worker/tests/job_runners/split/test_duckdb_index.py b/services/worker/tests/job_runners/split/test_duckdb_index.py
index c1f53b5f..dc69d148 100644
--- a/services/worker/tests/job_runners/split/test_duckdb_index.py
+++ b/services/worker/tests/job_runners/split/test_duckdb_index.py
@@ -25,0 +26,8 @@ from libcommon.dtos import Priority
+from libcommon.duckdb_utils import (
+ CREATE_INDEX_COMMAND,
+ CREATE_INDEX_ID_COLUMN_COMMANDS,
+ CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES,
+ DEFAULT_STEMMER,
+ get_indexable_columns,
+ get_monolingual_stemmer,
+)
@@ -35,4 +42,0 @@ from worker.job_runners.split.duckdb_index import (
- CREATE_INDEX_COMMAND,
- CREATE_INDEX_ID_COLUMN_COMMANDS,
- CREATE_TABLE_COMMAND,
- DEFAULT_STEMMER,
@@ -41,2 +44,0 @@ from worker.job_runners.split.duckdb_index import (
- get_indexable_columns,
- get_monolingual_stemmer,
@@ -582 +584,3 @@ FTS_COMMAND = (
-def test_index_command(df: pd.DataFrame, query: str, expected_ids: list[int]) -> None:
+def test_index_command(df: pd.DataFrame, query: str, expected_ids: list[int], tmp_path: Path) -> None:
+ parquet_path = str(tmp_path / "0000.parquet")
+ df.to_parquet(parquet_path, index=False)
@@ -585 +589 @@ def test_index_command(df: pd.DataFrame, query: str, expected_ids: list[int]) ->
- con.sql(CREATE_TABLE_COMMAND.format(columns=columns, source="df"))
+ con.sql(CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(columns=columns, source=[parquet_path]))
@@ -599 +603 @@ def test_table_column_hf_index_id_is_monotonic_increasing(tmp_path: Path) -> Non
- con.sql(CREATE_TABLE_COMMAND.format(columns=column_names, source=parquet_path))
+ con.sql(CREATE_TABLE_COMMAND_FROM_LIST_OF_PARQUET_FILES.format(columns=column_names, source=[parquet_path]))
diff --git a/services/worker/tests/test_statistics_utils.py b/services/worker/tests/test_statistics_utils.py
index 5b3ea884..2ebb68ed 100644
--- a/services/worker/tests/test_statistics_utils.py
+++ b/services/worker/tests/test_statistics_utils.py
@@ -15,2 +15 @@ from datasets.table import embed_table_storage
-
-from worker.statistics_utils import (
+from libcommon.statistics_utils import (
@@ -39,2 +38,2 @@ from worker.statistics_utils import (
- (0, 1, ColumnType.INT, [0, 1, 1]),
- (0, 12, ColumnType.INT, [0, 2, 4, 6, 8, 10, 12, 12]),
+ (0, 1, ColumnType.INT, [0, 1]),
+ (0, 12, ColumnType.INT, [0, 2, 4, 6, 8, 10, 12]),
@@ -42,2 +41,2 @@ from worker.statistics_utils import (
- (0, 9, ColumnType.INT, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9]),
- (0, 10, ColumnType.INT, [0, 2, 4, 6, 8, 10, 10]),
+ (0, 9, ColumnType.INT, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]),
+ (0, 10, ColumnType.INT, [0, 2, 4, 6, 8, 10]),
@@ -416 +415 @@ def test_audio_statistics(
- parquet_directory=parquet_directory,
+ parquet_paths=[parquet_filename],
@@ -429 +428 @@ def test_audio_statistics(
- parquet_directory=parquet_directory,
+ parquet_paths=[parquet_filename],
@@ -457 +456 @@ def test_image_statistics(
- parquet_directory=parquet_directory,
+ parquet_paths=[parquet_filename],
@@ -470 +469 @@ def test_image_statistics(
- parquet_directory=parquet_directory,
+ parquet_paths=[parquet_filename],
|
|
94e6e8db5eea2d7f37f7d74d4fec92da6e7a48cf
|
Quentin Lhoest
| 2025-04-04T17:10:24 |
Fix webhook repo config update (#3167)
|
diff --git a/services/webhook/src/webhook/routes/webhook.py b/services/webhook/src/webhook/routes/webhook.py
index ff2a6b99..3a4c729f 100644
--- a/services/webhook/src/webhook/routes/webhook.py
+++ b/services/webhook/src/webhook/routes/webhook.py
@@ -65,0 +66 @@ class MoonWebhookV2Payload(TypedDict):
+ updatedConfig: Optional[dict[str, str]]
@@ -87 +87,0 @@ def process_payload(
- private = payload["repo"]["private"]
@@ -93,0 +94 @@ def process_payload(
+ revision = payload["repo"].get("headSha")
@@ -96,2 +97,2 @@ def process_payload(
- and get_current_revision(dataset) == payload["repo"]["headSha"]
- and (not payload["scope"] == "repo.config" or not private)
+ and get_current_revision(dataset) == revision
+ and not (payload.get("updatedConfig") or {}).get("private", False)
@@ -105 +105,0 @@ def process_payload(
- revision = payload["repo"].get("headSha")
|
|
94234db29aef7a178318c44f9560ab10446567ee
|
Quentin Lhoest
| 2025-04-03T12:11:05 |
Re-enable smart update for private and gated repos (#3164)
|
diff --git a/libs/libcommon/src/libcommon/orchestrator.py b/libs/libcommon/src/libcommon/orchestrator.py
index 472ff3df..aa8c9039 100644
--- a/libs/libcommon/src/libcommon/orchestrator.py
+++ b/libs/libcommon/src/libcommon/orchestrator.py
@@ -978,5 +978 @@ class SmartDatasetUpdatePlan(Plan):
- # Temporary fix for https://github.com/huggingface-internal/moon-landing/pull/13232
- # Don't use thee app token until it's allowed on this endpoint
- # This way, it can still work for public repos
- # headers = build_hf_headers(token=self.hf_token, library_name="dataset-viewer")
- headers = build_hf_headers(library_name="dataset-viewer")
+ headers = build_hf_headers(token=self.hf_token, library_name="dataset-viewer")
@@ -984 +980,3 @@ class SmartDatasetUpdatePlan(Plan):
- self.hf_endpoint + f"/datasets/{self.dataset}/commit/{self.revision}.diff", timeout=10, headers=headers
+ self.hf_endpoint + f"/api/datasets/{self.dataset}/compare/{self.revision}^..{self.revision}",
+ timeout=10,
+ headers=headers,
@@ -988 +986,3 @@ class SmartDatasetUpdatePlan(Plan):
- raise RuntimeError(f"failed reading /datasets/{self.dataset}/commit/{self.revision}.diff")
+ raise RuntimeError(
+ f"failed reading /api/datasets/{self.dataset}/compare/{self.revision}^..{self.revision}"
+ )
|
|
a6389081427d0a2659f37ce158ef289dcfe51055
|
Quentin Lhoest
| 2025-04-03T10:14:29 |
workaround smart update for public repos (#3163)
|
diff --git a/libs/libcommon/src/libcommon/orchestrator.py b/libs/libcommon/src/libcommon/orchestrator.py
index 225ca0c7..472ff3df 100644
--- a/libs/libcommon/src/libcommon/orchestrator.py
+++ b/libs/libcommon/src/libcommon/orchestrator.py
@@ -978 +978,5 @@ class SmartDatasetUpdatePlan(Plan):
- headers = build_hf_headers(token=self.hf_token, library_name="dataset-viewer")
+ # Temporary fix for https://github.com/huggingface-internal/moon-landing/pull/13232
+ # Don't use thee app token until it's allowed on this endpoint
+ # This way, it can still work for public repos
+ # headers = build_hf_headers(token=self.hf_token, library_name="dataset-viewer")
+ headers = build_hf_headers(library_name="dataset-viewer")
|
|
9772d1de43cb8f141c547b308f252f37c40530d3
|
Quentin Lhoest
| 2025-04-02T14:29:46 |
even less logs in webhook (#3162)
|
diff --git a/libs/libcommon/src/libcommon/orchestrator.py b/libs/libcommon/src/libcommon/orchestrator.py
index fcd3f9f4..225ca0c7 100644
--- a/libs/libcommon/src/libcommon/orchestrator.py
+++ b/libs/libcommon/src/libcommon/orchestrator.py
@@ -13,0 +14 @@ from huggingface_hub import DatasetCard, HfApi, HfFileSystem, get_session
+from huggingface_hub.errors import RepositoryNotFoundError, RevisionNotFoundError
@@ -227 +228 @@ class DeleteDatasetCacheEntriesTask(Task):
-class DeleteDatasetFilesInParquetRefBranchTask(Task):
+class DeleteDatasetParquetRefBranchTask(Task):
@@ -233 +234 @@ class DeleteDatasetFilesInParquetRefBranchTask(Task):
- self.id = f"DeleteDatasetFilesInParquetRefBranchJobsTask,{self.dataset}"
+ self.id = f"DeleteDatasetParquetRefBranchTask,{self.dataset}"
@@ -238 +239 @@ class DeleteDatasetFilesInParquetRefBranchTask(Task):
- Delete the dataset waiting jobs.
+ Delete the dataset refs/convert/parquet branch.
@@ -241 +242 @@ class DeleteDatasetFilesInParquetRefBranchTask(Task):
- `TasksStatistics`: The statistics of the parquet ref branch files deletion.
+ `TasksStatistics`: The statistics of the parquet ref branch deletion.
@@ -244 +245 @@ class DeleteDatasetFilesInParquetRefBranchTask(Task):
- method="DeleteDatasetFilesInParquetRefBranchJobsTask.run",
+ method="DeleteDatasetParquetRefBranchTask.run",
@@ -247,3 +248,6 @@ class DeleteDatasetFilesInParquetRefBranchTask(Task):
- HfApi(token=self.committer_hf_token).delete_branch(
- repo_id=self.dataset, branch="refs/convert/parquet", repo_type="dataset"
- )
+ try:
+ HfApi(token=self.committer_hf_token).delete_branch(
+ repo_id=self.dataset, branch="refs/convert/parquet", repo_type="dataset"
+ )
+ except (RevisionNotFoundError, RepositoryNotFoundError):
+ return TasksStatistics(num_deleted_ref_branches=0)
@@ -254 +258 @@ class DeleteDatasetFilesInParquetRefBranchTask(Task):
-class DeleteDatasetFilesInDuckdbRefBranchTask(Task):
+class DeleteDatasetDuckdbRefBranchTask(Task):
@@ -260 +264 @@ class DeleteDatasetFilesInDuckdbRefBranchTask(Task):
- self.id = f"DeleteDatasetFilesInDuckdbRefBranchJobsTask,{self.dataset}"
+ self.id = f"DeleteDatasetDuckdbRefBranchTask,{self.dataset}"
@@ -265 +269 @@ class DeleteDatasetFilesInDuckdbRefBranchTask(Task):
- Delete the dataset waiting jobs.
+ Delete the dataset refs/convert/duckdb branch.
@@ -268 +272 @@ class DeleteDatasetFilesInDuckdbRefBranchTask(Task):
- `TasksStatistics`: The statistics of the duckdb ref branch files deletion.
+ `TasksStatistics`: The statistics of the duckdb ref branch deletion.
@@ -271 +275 @@ class DeleteDatasetFilesInDuckdbRefBranchTask(Task):
- method="DeleteDatasetFilesInDuckdbRefBranchJobsTask.run",
+ method="DeleteDatasetDuckdbRefBranchTask.run",
@@ -274,3 +278,6 @@ class DeleteDatasetFilesInDuckdbRefBranchTask(Task):
- HfApi(token=self.committer_hf_token).delete_branch(
- repo_id=self.dataset, branch="refs/convert/duckdb", repo_type="dataset"
- )
+ try:
+ HfApi(token=self.committer_hf_token).delete_branch(
+ repo_id=self.dataset, branch="refs/convert/duckdb", repo_type="dataset"
+ )
+ except (RevisionNotFoundError, RepositoryNotFoundError):
+ return TasksStatistics(num_deleted_ref_branches=0)
@@ -371,2 +378,2 @@ SupportedTask = Union[
- DeleteDatasetFilesInDuckdbRefBranchTask,
- DeleteDatasetFilesInParquetRefBranchTask,
+ DeleteDatasetDuckdbRefBranchTask,
+ DeleteDatasetParquetRefBranchTask,
@@ -1044,3 +1051 @@ class DatasetRemovalPlan(Plan):
- DeleteDatasetFilesInParquetRefBranchTask(
- dataset=self.dataset, committer_hf_token=self.committer_hf_token
- )
+ DeleteDatasetParquetRefBranchTask(dataset=self.dataset, committer_hf_token=self.committer_hf_token)
@@ -1049,3 +1054 @@ class DatasetRemovalPlan(Plan):
- DeleteDatasetFilesInDuckdbRefBranchTask(
- dataset=self.dataset, committer_hf_token=self.committer_hf_token
- )
+ DeleteDatasetDuckdbRefBranchTask(dataset=self.dataset, committer_hf_token=self.committer_hf_token)
|
|
b0bfe1bcabe27687cc544241bb99045b7973d7dc
|
Quentin Lhoest
| 2025-04-02T14:06:27 |
fix webhook logs (#3161)
|
diff --git a/libs/libcommon/src/libcommon/operations.py b/libs/libcommon/src/libcommon/operations.py
index c17b0263..9c2455cc 100644
--- a/libs/libcommon/src/libcommon/operations.py
+++ b/libs/libcommon/src/libcommon/operations.py
@@ -282 +282,4 @@ def smart_update_dataset(
- delete_dataset(dataset=dataset, storage_clients=storage_clients, committer_hf_token=committer_hf_token)
+ try:
+ delete_dataset(dataset=dataset, storage_clients=storage_clients, committer_hf_token=committer_hf_token)
+ except Exception as err:
+ logging.info(f"Couldn't delete dataset: {err}")
|
|
e11cc85672acb848b42b22c3cc3079d42bf3deaf
|
Quentin Lhoest
| 2025-04-02T12:44:43 |
Delete ref branches (#3159)
|
diff --git a/.github/workflows/_e2e_tests.yml b/.github/workflows/_e2e_tests.yml
index f5f97212..94a95153 100644
--- a/.github/workflows/_e2e_tests.yml
+++ b/.github/workflows/_e2e_tests.yml
@@ -49,2 +49 @@ jobs:
- PARQUET_AND_INFO_COMMITTER_HF_TOKEN: "hf_app_datasets-server-parquet-converter_token"
- DUCKDB_INDEX_COMMITTER_HF_TOKEN: "hf_app_datasets-server-parquet-converter_token"
+ COMMITTER_HF_TOKEN: "hf_app_datasets-server-parquet-converter_token"
@@ -110,2 +109 @@ jobs:
- PARQUET_AND_INFO_COMMITTER_HF_TOKEN: "hf_app_datasets-server-parquet-converter_token"
- DUCKDB_INDEX_COMMITTER_HF_TOKEN: "hf_app_datasets-server-parquet-converter_token"
+ COMMITTER_HF_TOKEN: "hf_app_datasets-server-parquet-converter_token"
diff --git a/chart/templates/_env/_envCommitter.tpl b/chart/templates/_env/_envCommitter.tpl
new file mode 100644
index 00000000..ff7e735f
--- /dev/null
+++ b/chart/templates/_env/_envCommitter.tpl
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: Apache-2.0
+# Copyright 2022 The HuggingFace Authors.
+
+{{- define "envCommitter" -}}
+- name: COMMITTER_HF_TOKEN
+ {{- if .Values.secrets.appParquetConverterHfToken.fromSecret }}
+ valueFrom:
+ secretKeyRef:
+ name: {{ .Values.secrets.appParquetConverterHfToken.secretName | default (include "datasetsServer.infisical.secretName" $) | quote }}
+ key: PARQUET_CONVERTER_HF_TOKEN
+ optional: false
+ {{- else }}
+ value: {{ .Values.secrets.appParquetConverterHfToken.value }}
+ {{- end }}
+{{- end -}}
diff --git a/chart/templates/_env/_envWorker.tpl b/chart/templates/_env/_envWorker.tpl
index 115aa19f..9bb2e2e2 100644
--- a/chart/templates/_env/_envWorker.tpl
+++ b/chart/templates/_env/_envWorker.tpl
@@ -38,10 +37,0 @@
-- name: PARQUET_AND_INFO_COMMITTER_HF_TOKEN
- {{- if .Values.secrets.appParquetConverterHfToken.fromSecret }}
- valueFrom:
- secretKeyRef:
- name: {{ .Values.secrets.appParquetConverterHfToken.secretName | default (include "datasetsServer.infisical.secretName" $) | quote }}
- key: PARQUET_CONVERTER_HF_TOKEN
- optional: false
- {{- else }}
- value: {{ .Values.secrets.appParquetConverterHfToken.value }}
- {{- end }}
@@ -86,10 +75,0 @@
-- name: DUCKDB_INDEX_COMMITTER_HF_TOKEN
- {{- if .Values.secrets.appParquetConverterHfToken.fromSecret }}
- valueFrom:
- secretKeyRef:
- name: {{ .Values.secrets.appParquetConverterHfToken.secretName | default (include "datasetsServer.infisical.secretName" $) | quote }}
- key: PARQUET_CONVERTER_HF_TOKEN
- optional: false
- {{- else }}
- value: {{ .Values.secrets.appParquetConverterHfToken.value }}
- {{- end }}
diff --git a/chart/templates/services/webhook/_container.tpl b/chart/templates/services/webhook/_container.tpl
index ce17e89f..fef7dc08 100644
--- a/chart/templates/services/webhook/_container.tpl
+++ b/chart/templates/services/webhook/_container.tpl
@@ -19,0 +20 @@
+ {{ include "envCommitter" . | nindent 2 }}
diff --git a/chart/templates/worker/_container.tpl b/chart/templates/worker/_container.tpl
index 3d774982..3064be80 100644
--- a/chart/templates/worker/_container.tpl
+++ b/chart/templates/worker/_container.tpl
@@ -17,0 +18 @@
+ {{ include "envCommitter" . | nindent 2 }}
diff --git a/e2e/Makefile b/e2e/Makefile
index a4f2c0a3..4edaa6c7 100644
--- a/e2e/Makefile
+++ b/e2e/Makefile
@@ -23,2 +23 @@ export MONGO_PORT := 27050
-export PARQUET_AND_INFO_COMMITTER_HF_TOKEN := hf_app_datasets-server-parquet-converter_token
-export DUCKDB_INDEX_COMMITTER_HF_TOKEN := hf_app_datasets-server-parquet-converter_token
+export COMMITTER_HF_TOKEN := hf_app_datasets-server-parquet-converter_token
diff --git a/e2e/tests/utils.py b/e2e/tests/utils.py
index a1f72924..82aaeb1a 100644
--- a/e2e/tests/utils.py
+++ b/e2e/tests/utils.py
@@ -26 +26 @@ WORKER_UVICORN_PORT = os.environ.get("WORKER_UVICORN_PORT", "8086")
-WEBHOOK_UVICORN_PORT = os.environ.get("WORKER_UVICORN_PORT", "8087")
+WEBHOOK_UVICORN_PORT = os.environ.get("WEBHOOK_UVICORN_PORT", "8087")
diff --git a/libs/libcommon/src/libcommon/config.py b/libs/libcommon/src/libcommon/config.py
index a59fca5e..4db9f3d7 100644
--- a/libs/libcommon/src/libcommon/config.py
+++ b/libs/libcommon/src/libcommon/config.py
@@ -220,0 +221,16 @@ class QueueConfig:
+
+
+COMMITTER_HF_TOKEN = None
+
+
+@dataclass(frozen=True)
+class CommitterConfig:
+ hf_token: Optional[str] = COMMITTER_HF_TOKEN
+
+ @classmethod
+ def from_env(cls) -> "CommitterConfig":
+ env = Env(expand_vars=True)
+ with env.prefixed("COMMITTER_"):
+ return cls(
+ hf_token=env.str(name="HF_TOKEN", default=COMMITTER_HF_TOKEN),
+ )
diff --git a/libs/libcommon/src/libcommon/operations.py b/libs/libcommon/src/libcommon/operations.py
index b44fc45f..c17b0263 100644
--- a/libs/libcommon/src/libcommon/operations.py
+++ b/libs/libcommon/src/libcommon/operations.py
@@ -195 +195,3 @@ class OperationsStatistics:
-def delete_dataset(dataset: str, storage_clients: Optional[list[StorageClient]] = None) -> OperationsStatistics:
+def delete_dataset(
+ dataset: str, storage_clients: Optional[list[StorageClient]] = None, committer_hf_token: Optional[str] = None
+) -> OperationsStatistics:
@@ -201,0 +204 @@ def delete_dataset(dataset: str, storage_clients: Optional[list[StorageClient]]
+ committer_hf_token (`str`, *optional*): HF token to empty the ref branches (parquet/duckdb)
@@ -208 +211,2 @@ def delete_dataset(dataset: str, storage_clients: Optional[list[StorageClient]]
- num_deleted_datasets=1, tasks=remove_dataset(dataset=dataset, storage_clients=storage_clients)
+ num_deleted_datasets=1,
+ tasks=remove_dataset(dataset=dataset, storage_clients=storage_clients, committer_hf_token=committer_hf_token),
@@ -219,0 +224 @@ def update_dataset(
+ committer_hf_token: Optional[str] = None,
@@ -237 +242 @@ def update_dataset(
- delete_dataset(dataset=dataset, storage_clients=storage_clients)
+ delete_dataset(dataset=dataset, storage_clients=storage_clients, committer_hf_token=committer_hf_token)
@@ -254,0 +260 @@ def smart_update_dataset(
+ committer_hf_token: Optional[str] = None,
@@ -276 +282 @@ def smart_update_dataset(
- delete_dataset(dataset=dataset, storage_clients=storage_clients)
+ delete_dataset(dataset=dataset, storage_clients=storage_clients, committer_hf_token=committer_hf_token)
diff --git a/libs/libcommon/src/libcommon/orchestrator.py b/libs/libcommon/src/libcommon/orchestrator.py
index 58f7bea2..fcd3f9f4 100644
--- a/libs/libcommon/src/libcommon/orchestrator.py
+++ b/libs/libcommon/src/libcommon/orchestrator.py
@@ -13 +13 @@ import pandas as pd
-from huggingface_hub import DatasetCard, HfFileSystem, get_session
+from huggingface_hub import DatasetCard, HfApi, HfFileSystem, get_session
@@ -79,0 +80 @@ class TasksStatistics:
+ num_deleted_ref_branches: int = 0
@@ -87,0 +89 @@ class TasksStatistics:
+ self.num_deleted_ref_branches += other.num_deleted_ref_branches
@@ -97,0 +100 @@ class TasksStatistics:
+ self.num_deleted_ref_branches > 0,
@@ -106 +109,2 @@ class TasksStatistics:
- f" storage directories, {self.num_updated_storage_directories} updated storage directories"
+ f" storage directories, {self.num_updated_storage_directories} updated storage directories, "
+ f"{self.num_deleted_ref_branches} emptied ref branches"
@@ -221,0 +226,54 @@ class DeleteDatasetCacheEntriesTask(Task):
+@dataclass
+class DeleteDatasetFilesInParquetRefBranchTask(Task):
+ dataset: str
+ committer_hf_token: str
+
+ def __post_init__(self) -> None:
+ # for debug and testing
+ self.id = f"DeleteDatasetFilesInParquetRefBranchJobsTask,{self.dataset}"
+ self.long_id = self.id
+
+ def run(self) -> TasksStatistics:
+ """
+ Delete the dataset waiting jobs.
+
+ Returns:
+ `TasksStatistics`: The statistics of the parquet ref branch files deletion.
+ """
+ with StepProfiler(
+ method="DeleteDatasetFilesInParquetRefBranchJobsTask.run",
+ step="all",
+ ):
+ HfApi(token=self.committer_hf_token).delete_branch(
+ repo_id=self.dataset, branch="refs/convert/parquet", repo_type="dataset"
+ )
+ return TasksStatistics(num_deleted_ref_branches=1)
+
+
+@dataclass
+class DeleteDatasetFilesInDuckdbRefBranchTask(Task):
+ dataset: str
+ committer_hf_token: str
+
+ def __post_init__(self) -> None:
+ # for debug and testing
+ self.id = f"DeleteDatasetFilesInDuckdbRefBranchJobsTask,{self.dataset}"
+ self.long_id = self.id
+
+ def run(self) -> TasksStatistics:
+ """
+ Delete the dataset waiting jobs.
+
+ Returns:
+ `TasksStatistics`: The statistics of the duckdb ref branch files deletion.
+ """
+ with StepProfiler(
+ method="DeleteDatasetFilesInDuckdbRefBranchJobsTask.run",
+ step="all",
+ ):
+ HfApi(token=self.committer_hf_token).delete_branch(
+ repo_id=self.dataset, branch="refs/convert/duckdb", repo_type="dataset"
+ )
+ return TasksStatistics(num_deleted_ref_branches=1)
+
+
@@ -312,0 +371,2 @@ SupportedTask = Union[
+ DeleteDatasetFilesInDuckdbRefBranchTask,
+ DeleteDatasetFilesInParquetRefBranchTask,
@@ -972,0 +1033 @@ class DatasetRemovalPlan(Plan):
+ committer_hf_token: Optional[str]
@@ -980,0 +1042,11 @@ class DatasetRemovalPlan(Plan):
+ if self.committer_hf_token:
+ self.add_task(
+ DeleteDatasetFilesInParquetRefBranchTask(
+ dataset=self.dataset, committer_hf_token=self.committer_hf_token
+ )
+ )
+ self.add_task(
+ DeleteDatasetFilesInDuckdbRefBranchTask(
+ dataset=self.dataset, committer_hf_token=self.committer_hf_token
+ )
+ )
@@ -983 +1055,3 @@ class DatasetRemovalPlan(Plan):
-def remove_dataset(dataset: str, storage_clients: Optional[list[StorageClient]] = None) -> TasksStatistics:
+def remove_dataset(
+ dataset: str, storage_clients: Optional[list[StorageClient]] = None, committer_hf_token: Optional[str] = None
+) -> TasksStatistics:
@@ -989,0 +1064 @@ def remove_dataset(dataset: str, storage_clients: Optional[list[StorageClient]]
+ committer_hf_token (`str`, *optional*): HF token to empty the ref branches (parquet/duckdb)
@@ -994 +1069 @@ def remove_dataset(dataset: str, storage_clients: Optional[list[StorageClient]]
- plan = DatasetRemovalPlan(dataset=dataset, storage_clients=storage_clients)
+ plan = DatasetRemovalPlan(dataset=dataset, storage_clients=storage_clients, committer_hf_token=committer_hf_token)
@@ -997 +1072,2 @@ def remove_dataset(dataset: str, storage_clients: Optional[list[StorageClient]]
- # TODO: delete the other files: metadata parquet, parquet, duckdb index, etc
+ # parquet and duckdb indexes are deleted using committer_hf_token if present
+ # TODO: delete the other files: metadata parquet
@@ -1000 +1076 @@ def remove_dataset(dataset: str, storage_clients: Optional[list[StorageClient]]
- # don't exist anymore either (they were in refs/convert/parquet or refs/convert/duckdb).
+ # don't exist anymore either (they were in refs/convert/parquet or refs/convert/duckdb or in metadata dir).
diff --git a/services/webhook/README.md b/services/webhook/README.md
index 454a41a4..55a18f11 100644
--- a/services/webhook/README.md
+++ b/services/webhook/README.md
@@ -14,0 +15,4 @@ See [../../libs/libcommon/README.md](../../libs/libcommon/README.md) for more in
+### Committer
+
+- `COMMITTER_HF_TOKEN`: the HuggingFace token to commit the parquet/duckdb files to the Hub. The token must be an app token associated with a user that has the right to create/delete ref branches like `refs/converrt/parquet` and `refs/convert/duckdb`.
+
diff --git a/services/webhook/src/webhook/app.py b/services/webhook/src/webhook/app.py
index 97b896c8..ca365f1f 100644
--- a/services/webhook/src/webhook/app.py
+++ b/services/webhook/src/webhook/app.py
@@ -88,0 +89 @@ def create_app_with_config(app_config: AppConfig) -> Starlette:
+ committer_hf_token=app_config.committer.hf_token,
diff --git a/services/webhook/src/webhook/config.py b/services/webhook/src/webhook/config.py
index 17c520d7..46171812 100644
--- a/services/webhook/src/webhook/config.py
+++ b/services/webhook/src/webhook/config.py
@@ -11,0 +12 @@ from libcommon.config import (
+ CommitterConfig,
@@ -29,0 +31 @@ class AppConfig:
+ committer: CommitterConfig = field(default_factory=CommitterConfig)
@@ -43,0 +46 @@ class AppConfig:
+ committer=CommitterConfig.from_env(),
diff --git a/services/webhook/src/webhook/routes/webhook.py b/services/webhook/src/webhook/routes/webhook.py
index fc88b88f..ff2a6b99 100644
--- a/services/webhook/src/webhook/routes/webhook.py
+++ b/services/webhook/src/webhook/routes/webhook.py
@@ -80,0 +81 @@ def process_payload(
+ committer_hf_token: Optional[str] = None,
@@ -128,0 +130 @@ def process_payload(
+ committer_hf_token=committer_hf_token,
@@ -133 +135 @@ def process_payload(
- delete_dataset(dataset=dataset, storage_clients=storage_clients)
+ delete_dataset(dataset=dataset, storage_clients=storage_clients, committer_hf_token=committer_hf_token)
@@ -142,0 +145 @@ def process_payload(
+ committer_hf_token=committer_hf_token,
@@ -153,0 +157 @@ def create_webhook_endpoint(
+ committer_hf_token: Optional[str] = None,
@@ -198,0 +203 @@ def create_webhook_endpoint(
+ committer_hf_token=committer_hf_token,
diff --git a/services/worker/README.md b/services/worker/README.md
index a1ae1a75..5da27523 100644
--- a/services/worker/README.md
+++ b/services/worker/README.md
@@ -77 +77 @@ Set environment variables to configure the `parquet-and-info` worker (`PARQUET_A
-- `PARQUET_AND_INFO_COMMITTER_HF_TOKEN`: the HuggingFace token to commit the parquet files to the Hub. The token must be an app token associated with a user that has the right to 1. create the `refs/convert/parquet` branch (see `PARQUET_AND_INFO_TARGET_REVISION`) and 2. push commits to it on any dataset. [Datasets maintainers](https://huggingface.co/datasets-maintainers) members have these rights. The token must have permission to write. If not set, the worker will fail. Defaults to None.
+- `COMMITTER_HF_TOKEN`: the HuggingFace token to commit the parquet files to the Hub. The token must be an app token associated with a user that has the right to 1. create the `refs/convert/parquet` branch (see `PARQUET_AND_INFO_TARGET_REVISION`) and 2. push commits to it on any dataset. [Datasets maintainers](https://huggingface.co/datasets-maintainers) members have these rights. The token must have permission to write. If not set, the worker will fail. Defaults to None.
@@ -90 +90 @@ Set environment variables to configure the `duckdb-index` worker (`DUCKDB_INDEX_
-- `DUCKDB_INDEX_COMMITTER_HF_TOKEN`: the HuggingFace token to commit the duckdb index file to the Hub. The token must be an app token associated with a user that has the right to 1. create the `refs/convert/duckdb` branch (see `DUCKDB_INDEX_TARGET_REVISION`) and 2. push commits to it on any dataset. [Datasets maintainers](https://huggingface.co/datasets-maintainers) members have these rights. The token must have permission to write. If not set, the worker will fail. Defaults to None.
+- `COMMITTER_HF_TOKEN`: the HuggingFace token to commit the duckdb index file to the Hub. The token must be an app token associated with a user that has the right to 1. create the `refs/convert/duckdb` branch (see `DUCKDB_INDEX_TARGET_REVISION`) and 2. push commits to it on any dataset. [Datasets maintainers](https://huggingface.co/datasets-maintainers) members have these rights. The token must have permission to write. If not set, the worker will fail. Defaults to None.
diff --git a/services/worker/src/worker/config.py b/services/worker/src/worker/config.py
index edefcc3f..896b8254 100644
--- a/services/worker/src/worker/config.py
+++ b/services/worker/src/worker/config.py
@@ -10,0 +11 @@ from libcommon.config import (
+ CommitterConfig,
@@ -221 +221,0 @@ class ParquetAndInfoConfig:
- committer_hf_token: Optional[str] = PARQUET_AND_INFO_COMMITTER_HF_TOKEN
@@ -234 +233,0 @@ class ParquetAndInfoConfig:
- committer_hf_token=env.str(name="COMMITTER_HF_TOKEN", default=PARQUET_AND_INFO_COMMITTER_HF_TOKEN),
@@ -306 +304,0 @@ class DuckDbIndexConfig:
- committer_hf_token: Optional[str] = DUCKDB_INDEX_COMMITTER_HF_TOKEN
@@ -319 +316,0 @@ class DuckDbIndexConfig:
- committer_hf_token=env.str(name="COMMITTER_HF_TOKEN", default=DUCKDB_INDEX_COMMITTER_HF_TOKEN),
@@ -371,0 +369 @@ class AppConfig:
+ committer: CommitterConfig = field(default_factory=CommitterConfig)
@@ -385,0 +384 @@ class AppConfig:
+ rows_index=RowsIndexConfig.from_env(),
@@ -394 +393 @@ class AppConfig:
- rows_index=RowsIndexConfig.from_env(),
+ committer=CommitterConfig.from_env(),
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index 2dbeeec0..450f6c15 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -1530,0 +1531 @@ class ConfigParquetAndInfoJobRunner(ConfigJobRunnerWithDatasetsCache):
+ self.committer_config = app_config.committer
@@ -1540 +1541 @@ class ConfigParquetAndInfoJobRunner(ConfigJobRunnerWithDatasetsCache):
- committer_hf_token=self.parquet_and_info_config.committer_hf_token,
+ committer_hf_token=self.committer_config.hf_token,
diff --git a/services/worker/src/worker/job_runners/split/duckdb_index.py b/services/worker/src/worker/job_runners/split/duckdb_index.py
index e9685d13..6ddb679d 100644
--- a/services/worker/src/worker/job_runners/split/duckdb_index.py
+++ b/services/worker/src/worker/job_runners/split/duckdb_index.py
@@ -514,0 +515 @@ class SplitDuckDbIndexJobRunner(SplitJobRunnerWithCache):
+ self.committer_config = app_config.committer
@@ -535 +536 @@ class SplitDuckDbIndexJobRunner(SplitJobRunnerWithCache):
- committer_hf_token=self.duckdb_index_config.committer_hf_token,
+ committer_hf_token=self.committer_config.hf_token,
diff --git a/services/worker/tests/conftest.py b/services/worker/tests/conftest.py
index 8641e5ec..20d139b1 100644
--- a/services/worker/tests/conftest.py
+++ b/services/worker/tests/conftest.py
@@ -88,2 +88 @@ def set_env_vars(
- mp.setenv("PARQUET_AND_INFO_COMMITTER_HF_TOKEN", CI_PARQUET_CONVERTER_APP_TOKEN)
- mp.setenv("DUCKDB_INDEX_COMMITTER_HF_TOKEN", CI_PARQUET_CONVERTER_APP_TOKEN)
+ mp.setenv("COMMITTER_HF_TOKEN", CI_PARQUET_CONVERTER_APP_TOKEN)
diff --git a/tools/docker-compose-dataset-viewer.yml b/tools/docker-compose-dataset-viewer.yml
index eb690a49..12c3dc14 100644
--- a/tools/docker-compose-dataset-viewer.yml
+++ b/tools/docker-compose-dataset-viewer.yml
@@ -169,0 +170 @@ services:
+ COMMITTER_HF_TOKEN: ${COMMITTER_HF_TOKEN-}
@@ -175 +175,0 @@ services:
- DUCKDB_INDEX_COMMITTER_HF_TOKEN: ${DUCKDB_INDEX_COMMITTER_HF_TOKEN-}
@@ -192 +191,0 @@ services:
- PARQUET_AND_INFO_COMMITTER_HF_TOKEN: ${PARQUET_AND_INFO_COMMITTER_HF_TOKEN-}
diff --git a/tools/docker-compose-dev-dataset-viewer.yml b/tools/docker-compose-dev-dataset-viewer.yml
index 05d686d6..022fea49 100644
--- a/tools/docker-compose-dev-dataset-viewer.yml
+++ b/tools/docker-compose-dev-dataset-viewer.yml
@@ -184,0 +185 @@ services:
+ COMMITTER_HF_TOKEN: ${COMMITTER_HF_TOKEN-}
@@ -190 +190,0 @@ services:
- DUCKDB_INDEX_COMMITTER_HF_TOKEN: ${DUCKDB_INDEX_COMMITTER_HF_TOKEN-}
@@ -207 +206,0 @@ services:
- PARQUET_AND_INFO_COMMITTER_HF_TOKEN: ${PARQUET_AND_INFO_COMMITTER_HF_TOKEN-hf_app_datasets-server-parquet-converter_token}
|
|
a41d18751bcf68952aecf47208bad0b52987166c
|
Quentin Lhoest
| 2025-03-26T02:37:15 |
enable datetime for string on all datasets (#3158)
|
diff --git a/services/worker/src/worker/job_runners/split/descriptive_statistics.py b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
index 468f9bb9..41dd1d84 100644
--- a/services/worker/src/worker/job_runners/split/descriptive_statistics.py
+++ b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
@@ -7 +6,0 @@ from typing import Any, Optional, TypedDict, Union
-from unittest.mock import patch
@@ -277,16 +276,10 @@ def compute_descriptive_statistics_response(
- with patch.object(
- StringColumn,
- "ENABLE_DATETIME",
- StringColumn.ENABLE_DATETIME or dataset.startswith("lhoestq/") or dataset.startswith("cfahlgren1/"),
- ): # TODO(QL): enable for everyone
- for column in columns:
- if isinstance(column, AudioColumn) or isinstance(column, ImageColumn):
- column_stats = column.compute_and_prepare_response(local_parquet_split_directory)
- else:
- try:
- data = pl.DataFrame._from_arrow(
- pq.read_table(
- local_parquet_split_directory,
- columns=[column.name],
- schema=Features.from_dict({column.name: features[column.name]}).arrow_schema,
- )
+ for column in columns:
+ if isinstance(column, AudioColumn) or isinstance(column, ImageColumn):
+ column_stats = column.compute_and_prepare_response(local_parquet_split_directory)
+ else:
+ try:
+ data = pl.DataFrame._from_arrow(
+ pq.read_table(
+ local_parquet_split_directory,
+ columns=[column.name],
+ schema=Features.from_dict({column.name: features[column.name]}).arrow_schema,
@@ -294,7 +287,8 @@ def compute_descriptive_statistics_response(
- except Exception as error:
- raise PolarsParquetReadError(
- f"Error reading parquet file(s) at {local_parquet_split_directory=}, columns=[{column.name}]: {error}",
- error,
- )
- column_stats = column.compute_and_prepare_response(data)
- all_stats.append(column_stats)
+ )
+ except Exception as error:
+ raise PolarsParquetReadError(
+ f"Error reading parquet file(s) at {local_parquet_split_directory=}, columns=[{column.name}]: {error}",
+ error,
+ )
+ column_stats = column.compute_and_prepare_response(data)
+ all_stats.append(column_stats)
diff --git a/services/worker/src/worker/statistics_utils.py b/services/worker/src/worker/statistics_utils.py
index 6a6bfb31..1c9afe0c 100644
--- a/services/worker/src/worker/statistics_utils.py
+++ b/services/worker/src/worker/statistics_utils.py
@@ -473 +472,0 @@ class StringColumn(Column):
- ENABLE_DATETIME = False
@@ -508 +507 @@ class StringColumn(Column):
- if cls.ENABLE_DATETIME and cls.is_datetime(data, column_name):
+ if cls.is_datetime(data, column_name):
diff --git a/services/worker/tests/test_statistics_utils.py b/services/worker/tests/test_statistics_utils.py
index 2a5d4dd6..5b3ea884 100644
--- a/services/worker/tests/test_statistics_utils.py
+++ b/services/worker/tests/test_statistics_utils.py
@@ -35,2 +34,0 @@ from worker.statistics_utils import (
-StringColumn.ENABLE_DATETIME = True # TODO(QL): remove once it's always enabled
-
|
|
10dcf3464940c61c910d91dc2ee2305b15482254
|
ccl-core
| 2025-03-25T15:23:19 |
Add function to convert a feature name to a valid jsonpath. (#3150)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index 02444fa7..e06b8935 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -3,0 +4 @@
+import re
@@ -65,0 +67,10 @@ HF_TO_CROISSANT_VALUE_TYPE = {
+def escape_jsonpath_key(feature_name: str) -> str:
+ """Escape single quotes and brackets in the feature name so that it constitutes a valid JSONPath."""
+ if "/" in feature_name or "'" in feature_name or "]" in feature_name or "[" in feature_name:
+ escaped_name = re.sub(r"(?<!\\)'", r"\'", feature_name)
+ escaped_name = re.sub(r"(?<!\\)\[", r"\[", escaped_name)
+ escaped_name = re.sub(r"(?<!\\)\]", r"\]", escaped_name)
+ return f"['{escaped_name}']"
+ return feature_name
+
+
@@ -120 +131,2 @@ def feature_to_croissant_field(
- sub_json_path = json_path + [subfeature_name]
+ subfeature_jsonpath = escape_jsonpath_key(subfeature_name)
+ sub_json_path = json_path + [subfeature_jsonpath]
diff --git a/libs/libcommon/tests/test_croissant_utils.py b/libs/libcommon/tests/test_croissant_utils.py
index d9dcd577..72b479a2 100644
--- a/libs/libcommon/tests/test_croissant_utils.py
+++ b/libs/libcommon/tests/test_croissant_utils.py
@@ -11 +11,5 @@ from datasets import Sequence, Value
-from libcommon.croissant_utils import feature_to_croissant_field, truncate_features_from_croissant_crumbs_response
+from libcommon.croissant_utils import (
+ escape_jsonpath_key,
+ feature_to_croissant_field,
+ truncate_features_from_croissant_crumbs_response,
+)
@@ -32,0 +37,16 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
[email protected](
+ "feature_name, expected_output",
+ [
+ ("simple_feature", "simple_feature"),
+ ("feature/with/slash", "['feature/with/slash']"),
+ ("feature'with'quote", r"['feature\'with\'quote']"),
+ ("feature[with]brackets", r"['feature\[with\]brackets']"),
+ ("feature[with/slash]'and'quote", r"['feature\[with/slash\]\'and\'quote']"),
+ (r"feature\'already\'escaped", r"['feature\'already\'escaped']"),
+ ],
+)
+def test_escape_jsonpath_key(feature_name: str, expected_output: str) -> None:
+ """Tests the escape_jsonpath_key function with various inputs."""
+ assert escape_jsonpath_key(feature_name) == expected_output
+
+
|
|
441036c88bbfa6a21aee1e9073697c8dd38a57f6
|
Polina Kazakova
| 2025-03-25T13:59:54 |
Stats for datetimes (#3007)
|
diff --git a/docs/source/openapi.json b/docs/source/openapi.json
index 214b3204..f83e9d2b 100644
--- a/docs/source/openapi.json
+++ b/docs/source/openapi.json
@@ -1195 +1195,2 @@
- "image"
+ "image",
+ "datetime"
@@ -1215,0 +1217,18 @@
+ "DatetimeHistogram": {
+ "type": "object",
+ "required": ["hist", "bin_edges"],
+ "properties": {
+ "hist": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "bin_edges": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
@@ -1247,0 +1267,32 @@
+ "DatetimeStatisticsItem": {
+ "type": "object",
+ "required": [
+ "nan_count",
+ "nan_proportion",
+ "min",
+ "max",
+ "mean",
+ "median",
+ "std",
+ "histogram"
+ ],
+ "properties": {
+ "nan_count": {
+ "type": "integer"
+ },
+ "nan_proportion": {
+ "type": "number"
+ },
+ "min": { "oneOf": [{ "type": "string" }, { "type": "null" }] },
+ "max": { "oneOf": [{ "type": "string" }, { "type": "null" }] },
+ "mean": { "oneOf": [{ "type": "string" }, { "type": "null" }] },
+ "median": { "oneOf": [{ "type": "string" }, { "type": "null" }] },
+ "std": { "oneOf": [{ "type": "string" }, { "type": "null" }] },
+ "histogram": {
+ "oneOf": [
+ { "$ref": "#/components/schemas/DatetimeHistogram" },
+ { "type": "null" }
+ ]
+ }
+ }
+ },
@@ -1298,0 +1350,3 @@
+ {
+ "$ref": "#/components/schemas/DatetimeStatisticsItem"
+ },
@@ -5943,0 +5998,369 @@
+ "A split (CL-ETM/datetimeevents) with a datetime column": {
+ "summary": "Statistics on a split with datetime columns 'charttime', 'storetime' and 'value'. ",
+ "description": "Try with https://datasets-server.huggingface.co/statistics?dataset=CL-ETM/datetimeevents&config=mnist&split=train.",
+ "value": {
+ "num_examples": 6653174,
+ "statistics": [
+ {
+ "column_name": "caregiver_id",
+ "column_type": "int",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": 45,
+ "max": 99872,
+ "mean": 49146.20367,
+ "median": 46354.0,
+ "std": 28893.09204,
+ "histogram": {
+ "hist": [
+ 586864,
+ 696061,
+ 882127,
+ 627295,
+ 759981,
+ 594546,
+ 544977,
+ 653948,
+ 507192,
+ 800183
+ ],
+ "bin_edges": [
+ 45,
+ 10028,
+ 20011,
+ 29994,
+ 39977,
+ 49960,
+ 59943,
+ 69926,
+ 79909,
+ 89892,
+ 99872
+ ]
+ }
+ }
+ },
+ {
+ "column_name": "charttime",
+ "column_type": "datetime",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": "2110-01-13 09:39:00",
+ "max": "2214-07-26 08:00:00",
+ "mean": "2153-03-20 23:15:24",
+ "median": "2153-01-19 04:19:30",
+ "std": "8691 days, 20:22:21.464930",
+ "histogram": {
+ "hist": [
+ 644662,
+ 824869,
+ 883173,
+ 884980,
+ 861445,
+ 863916,
+ 838647,
+ 664347,
+ 156213,
+ 30922
+ ],
+ "bin_edges": [
+ "2110-01-13 09:39:00",
+ "2120-06-27 07:05:07",
+ "2130-12-10 04:31:14",
+ "2141-05-24 01:57:21",
+ "2151-11-05 23:23:28",
+ "2162-04-19 20:49:35",
+ "2172-10-01 18:15:42",
+ "2183-03-16 15:41:49",
+ "2193-08-28 13:07:56",
+ "2204-02-11 10:34:03",
+ "2214-07-26 08:00:00"
+ ]
+ }
+ }
+ },
+ {
+ "column_name": "hadm_id",
+ "column_type": "int",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": 20000094,
+ "max": 29999828,
+ "mean": 25027899.88926,
+ "median": 25052613.0,
+ "std": 2869146.55704,
+ "histogram": {
+ "hist": [
+ 638196,
+ 656157,
+ 656168,
+ 661133,
+ 678335,
+ 693220,
+ 676587,
+ 653053,
+ 674626,
+ 665699
+ ],
+ "bin_edges": [
+ 20000094,
+ 21000068,
+ 22000042,
+ 23000016,
+ 23999990,
+ 24999964,
+ 25999938,
+ 26999912,
+ 27999886,
+ 28999860,
+ 29999828
+ ]
+ }
+ }
+ },
+ {
+ "column_name": "itemid",
+ "column_type": "int",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": 224183,
+ "max": 230120,
+ "mean": 225487.4805,
+ "median": 224290.0,
+ "std": 1820.04267,
+ "histogram": {
+ "hist": [
+ 3742726,
+ 568047,
+ 1012645,
+ 75427,
+ 21011,
+ 41780,
+ 311155,
+ 100074,
+ 249544,
+ 530765
+ ],
+ "bin_edges": [
+ 224183,
+ 224777,
+ 225371,
+ 225965,
+ 226559,
+ 227153,
+ 227747,
+ 228341,
+ 228935,
+ 229529,
+ 230120
+ ]
+ }
+ }
+ },
+ {
+ "column_name": "stay_id",
+ "column_type": "int",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": 30000153,
+ "max": 39999858,
+ "mean": 34988877.57506,
+ "median": 34997302.0,
+ "std": 2873138.27766,
+ "histogram": {
+ "hist": [
+ 669019,
+ 638622,
+ 695479,
+ 665010,
+ 659205,
+ 659496,
+ 696313,
+ 662500,
+ 671230,
+ 636300
+ ],
+ "bin_edges": [
+ 30000153,
+ 31000124,
+ 32000095,
+ 33000066,
+ 34000037,
+ 35000008,
+ 35999979,
+ 36999950,
+ 37999921,
+ 38999892,
+ 39999858
+ ]
+ }
+ }
+ },
+ {
+ "column_name": "storetime",
+ "column_type": "datetime",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": "2110-01-13 13:13:00",
+ "max": "2214-07-26 09:20:00",
+ "mean": "2153-03-20 23:57:17",
+ "median": "2153-01-19 03:42:00",
+ "std": "8691 days, 20:22:32.902370",
+ "histogram": {
+ "hist": [
+ 644728,
+ 824803,
+ 883215,
+ 884951,
+ 861438,
+ 863915,
+ 838652,
+ 664336,
+ 156214,
+ 30922
+ ],
+ "bin_edges": [
+ "2110-01-13 13:13:00",
+ "2120-06-27 10:25:43",
+ "2130-12-10 07:38:26",
+ "2141-05-24 04:51:09",
+ "2151-11-06 02:03:52",
+ "2162-04-19 23:16:35",
+ "2172-10-01 20:29:18",
+ "2183-03-16 17:42:01",
+ "2193-08-28 14:54:44",
+ "2204-02-11 12:07:27",
+ "2214-07-26 09:20:00"
+ ]
+ }
+ }
+ },
+ {
+ "column_name": "subject_id",
+ "column_type": "int",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": 10000032,
+ "max": 16657691,
+ "mean": 13340551.62433,
+ "median": 13334004.0,
+ "std": 1927957.39956,
+ "histogram": {
+ "hist": [
+ 638347,
+ 684908,
+ 691450,
+ 631212,
+ 672810,
+ 659625,
+ 641987,
+ 654011,
+ 702989,
+ 675835
+ ],
+ "bin_edges": [
+ 10000032,
+ 10665798,
+ 11331564,
+ 11997330,
+ 12663096,
+ 13328862,
+ 13994628,
+ 14660394,
+ 15326160,
+ 15991926,
+ 16657691
+ ]
+ }
+ }
+ },
+ {
+ "column_name": "value",
+ "column_type": "datetime",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": "2109-08-02 00:00:00",
+ "max": "2214-07-24 09:57:00",
+ "mean": "2153-03-17 00:32:04",
+ "median": "2153-01-15 00:00:00",
+ "std": "8691 days, 20:07:56.642090",
+ "histogram": {
+ "hist": [
+ 611811,
+ 820557,
+ 897262,
+ 880309,
+ 876200,
+ 860348,
+ 845238,
+ 673106,
+ 157352,
+ 30991
+ ],
+ "bin_edges": [
+ "2109-08-02 00:00:00",
+ "2120-01-31 03:23:43",
+ "2130-07-31 06:47:26",
+ "2141-01-28 10:11:09",
+ "2151-07-29 13:34:52",
+ "2162-01-26 16:58:35",
+ "2172-07-26 20:22:18",
+ "2183-01-24 23:46:01",
+ "2193-07-25 03:09:44",
+ "2204-01-24 06:33:27",
+ "2214-07-24 09:57:00"
+ ]
+ }
+ }
+ },
+ {
+ "column_name": "valueuom",
+ "column_type": "string_label",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "no_label_count": 0,
+ "no_label_proportion": 0.0,
+ "n_unique": 2,
+ "frequencies": {
+ "Date and Time": 1885855,
+ "Date": 4767319
+ }
+ }
+ },
+ {
+ "column_name": "warning",
+ "column_type": "int",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": 0,
+ "max": 1,
+ "mean": 0.00028,
+ "median": 0.0,
+ "std": 0.01674,
+ "histogram": {
+ "hist": [
+ 6651308,
+ 1866
+ ],
+ "bin_edges": [
+ 0,
+ 1,
+ 1
+ ]
+ }
+ }
+ }
+ ],
+ "partial": true
+ }
+ },
diff --git a/docs/source/statistics.md b/docs/source/statistics.md
index 3b061c01..15e820da 100644
--- a/docs/source/statistics.md
+++ b/docs/source/statistics.md
@@ -168 +168 @@ The response JSON contains three keys:
-Currently, statistics are supported for strings, float and integer numbers, lists, audio and image data and the special [`datasets.ClassLabel`](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.ClassLabel) feature type of the [`datasets`](https://huggingface.co/docs/datasets/) library.
+Currently, statistics are supported for strings, float and integer numbers, lists, datetimes, audio and image data and the special [`datasets.ClassLabel`](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.ClassLabel) feature type of the [`datasets`](https://huggingface.co/docs/datasets/) library.
@@ -180,0 +181 @@ Currently, statistics are supported for strings, float and integer numbers, list
+* `datetime` - for datetime data
@@ -219 +220 @@ The following measures are returned for float data types:
-* minimum, maximum, mean, and standard deviation values
+* minimum, maximum, mean, median, and standard deviation values
@@ -276 +277 @@ The following measures are returned for integer data types:
-* minimum, maximum, mean, and standard deviation values
+* minimum, maximum, mean, median, and standard deviation values
@@ -380 +381 @@ If string column does not satisfy the conditions to be treated as a `string_labe
-* minimum, maximum, mean, and standard deviation of text lengths
+* minimum, maximum, mean, median, and standard deviation of text lengths
@@ -437 +438 @@ For lists, the distribution of their lengths is computed. The following measures
-* minimum, maximum, mean, and standard deviation of lists lengths
+* minimum, maximum, mean, median, and standard deviation of lists lengths
@@ -483 +484 @@ For audio data, the distribution of audio files durations is computed. The follo
-* minimum, maximum, mean, and standard deviation of audio files durations
+* minimum, maximum, mean, median, and standard deviation of audio files durations
@@ -542 +543 @@ For image data, the distribution of images widths is computed. The following mea
-* minimum, maximum, mean, and standard deviation of widths of image files
+* minimum, maximum, mean, median, and standard deviation of widths of image files
@@ -593,0 +595,58 @@ For image data, the distribution of images widths is computed. The following mea
+
+### datetime
+
+The distribution of datetime is computed. The following measures are returned:
+
+* minimum, maximum, mean, median, and standard deviation of datetimes represented as strings with precision up to seconds
+* number and proportion of `null` values
+* histogram of datetimes with 10 bins
+
+<details><summary>Example </summary>
+<p>
+
+```json
+{
+ "column_name": "date",
+ "column_type": "datetime",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": "2013-05-18 04:54:11",
+ "max": "2013-06-20 10:01:41",
+ "mean": "2013-05-27 18:03:39",
+ "median": "2013-05-23 11:55:50",
+ "std": "11 days, 4:57:32.322450",
+ "histogram": {
+ "hist": [
+ 318776,
+ 393036,
+ 173904,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 206284
+ ],
+ "bin_edges": [
+ "2013-05-18 04:54:11",
+ "2013-05-21 12:36:57",
+ "2013-05-24 20:19:43",
+ "2013-05-28 04:02:29",
+ "2013-05-31 11:45:15",
+ "2013-06-03 19:28:01",
+ "2013-06-07 03:10:47",
+ "2013-06-10 10:53:33",
+ "2013-06-13 18:36:19",
+ "2013-06-17 02:19:05",
+ "2013-06-20 10:01:41"
+ ]
+ }
+ }
+}
+```
+
+</p>
+</details>
+
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index a4c24250..391364d9 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -79,0 +80 @@ module = [
+ "dateutil.*"
diff --git a/libs/libcommon/src/libcommon/utils.py b/libs/libcommon/src/libcommon/utils.py
index c85079b6..c86077d5 100644
--- a/libs/libcommon/src/libcommon/utils.py
+++ b/libs/libcommon/src/libcommon/utils.py
@@ -17,0 +18 @@ import pytz
+from dateutil import parser
@@ -95,0 +97,73 @@ def get_datetime(days: Optional[float] = None) -> datetime:
+def is_datetime(string: str) -> bool:
+ try:
+ parser.parse(string)
+ return True
+ except ValueError:
+ return False
+
+
+def get_timezone(string: str) -> Any:
+ return parser.parse(string).tzinfo
+
+
+def datetime_to_string(dt: datetime, format: str = "%Y-%m-%d %H:%M:%S%z") -> str:
+ if dt.utcoffset() == timedelta(0):
+ format = "%Y-%m-%d %H:%M:%S" # do not display +0000
+ return dt.strftime(format)
+
+
+def identify_datetime_format(datetime_string: str) -> Optional[str]:
+ # Common datetime formats
+ common_formats = [
+ "%Y-%m-%dT%H:%M:%S%Z",
+ "%Y-%m-%dT%H:%M:%S%z",
+ "%Y-%m-%dT%H:%M:%S",
+ "%Y-%m-%dT%H:%M:%S.%f",
+ "%Y-%m-%d %H:%M:%S%Z",
+ "%Y-%m-%d %H:%M:%S%z",
+ "%Y-%m-%d %H:%M:%S",
+ "%Y-%m-%d %H:%M",
+ "%Y-%m-%d",
+ "%d-%m-%Y %H:%M:%S%Z",
+ "%d-%m-%Y %H:%M:%S%z",
+ "%d-%m-%Y %H:%M:%S",
+ "%d-%m-%Y %H:%M",
+ "%d-%m-%Y",
+ "%m-%d-%Y %H:%M:%S%Z",
+ "%m-%d-%Y %H:%M:%S%z",
+ "%m-%d-%Y %H:%M:%S",
+ "%m-%d-%Y %H:%M",
+ "%m-%d-%Y",
+ "%Y/%m/%d %H:%M:%S%Z",
+ "%Y/%m/%d %H:%M:%S%z",
+ "%Y/%m/%d %H:%M:%S",
+ "%Y/%m/%d %H:%M",
+ "%Y/%m/%d",
+ "%d/%m/%Y %H:%M:%S%Z",
+ "%d/%m/%Y %H:%M:%S%z",
+ "%d/%m/%Y %H:%M:%S",
+ "%d/%m/%Y %H:%M",
+ "%d/%m/%Y",
+ "%m/%d/%Y %H:%M:%S%Z",
+ "%m/%d/%Y %H:%M:%S%z",
+ "%m/%d/%Y %H:%M:%S",
+ "%m/%d/%Y %H:%M",
+ "%m/%d/%Y",
+ "%B %d, %Y",
+ "%d %B %Y",
+ "%m-%Y",
+ "%Y-%m",
+ "%m/%Y",
+ "%Y/%m",
+ "%Y",
+ ]
+
+ for fmt in common_formats:
+ try:
+ _ = datetime.strptime(datetime_string, fmt)
+ return fmt
+ except ValueError:
+ continue
+ return None
+
+
diff --git a/services/worker/README.md b/services/worker/README.md
index b7722ed1..a1ae1a75 100644
--- a/services/worker/README.md
+++ b/services/worker/README.md
@@ -118,0 +119 @@ The response has three fields: `num_examples`, `statistics`, and `partial`. `par
+* `datetime` - for datetime data
@@ -593,0 +595,53 @@ Shows distribution of image files widths.
+
+##### datetime
+
+Shows distribution of datetimes.
+
+<details><summary>example: </summary>
+<p>
+
+```python
+{
+ "column_name": "date",
+ "column_type": "datetime",
+ "column_statistics": {
+ "nan_count": 0,
+ "nan_proportion": 0.0,
+ "min": "2013-05-18 04:54:11",
+ "max": "2013-06-20 10:01:41",
+ "mean": "2013-05-27 18:03:39",
+ "median": "2013-05-23 11:55:50",
+ "std": "11 days, 4:57:32.322450",
+ "histogram": {
+ "hist": [
+ 318776,
+ 393036,
+ 173904,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 206284
+ ],
+ "bin_edges": [
+ "2013-05-18 04:54:11",
+ "2013-05-21 12:36:57",
+ "2013-05-24 20:19:43",
+ "2013-05-28 04:02:29",
+ "2013-05-31 11:45:15",
+ "2013-06-03 19:28:01",
+ "2013-06-07 03:10:47",
+ "2013-06-10 10:53:33",
+ "2013-06-13 18:36:19",
+ "2013-06-17 02:19:05",
+ "2013-06-20 10:01:41"
+ ]
+ }
+ }
+}
+```
+</p>
+</details>
+
diff --git a/services/worker/src/worker/job_runners/split/descriptive_statistics.py b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
index 95158225..468f9bb9 100644
--- a/services/worker/src/worker/job_runners/split/descriptive_statistics.py
+++ b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
@@ -6,0 +7 @@ from typing import Any, Optional, TypedDict, Union
+from unittest.mock import patch
@@ -41,0 +43 @@ from worker.statistics_utils import (
+ DatetimeColumn,
@@ -60 +62,9 @@ SupportedColumns = Union[
- ClassLabelColumn, IntColumn, FloatColumn, StringColumn, BoolColumn, ListColumn, AudioColumn, ImageColumn
+ ClassLabelColumn,
+ IntColumn,
+ FloatColumn,
+ StringColumn,
+ BoolColumn,
+ ListColumn,
+ AudioColumn,
+ ImageColumn,
+ DatetimeColumn,
@@ -218 +228,2 @@ def compute_descriptive_statistics_response(
- if dataset_feature.get("_type") == "ClassLabel":
+ _type = dataset_feature.get("_type")
+ if _type == "ClassLabel":
@@ -223 +234 @@ def compute_descriptive_statistics_response(
- if dataset_feature.get("_type") == "Audio":
+ if _type == "Audio":
@@ -226 +237 @@ def compute_descriptive_statistics_response(
- if dataset_feature.get("_type") == "Image":
+ if _type == "Image":
@@ -229,2 +240,3 @@ def compute_descriptive_statistics_response(
- if dataset_feature.get("_type") == "Value":
- if dataset_feature.get("dtype") in INTEGER_DTYPES:
+ if _type == "Value":
+ dtype = dataset_feature.get("dtype", "")
+ if dtype in INTEGER_DTYPES:
@@ -233 +245 @@ def compute_descriptive_statistics_response(
- if dataset_feature.get("dtype") in FLOAT_DTYPES:
+ if dtype in FLOAT_DTYPES:
@@ -236 +248 @@ def compute_descriptive_statistics_response(
- if dataset_feature.get("dtype") in STRING_DTYPES:
+ if dtype in STRING_DTYPES:
@@ -239 +251 @@ def compute_descriptive_statistics_response(
- if dataset_feature.get("dtype") == "bool":
+ if dtype == "bool":
@@ -240,0 +253,3 @@ def compute_descriptive_statistics_response(
+
+ if dtype.startswith("timestamp"):
+ return DatetimeColumn(feature_name=dataset_feature_name, n_samples=num_examples)
@@ -252 +267 @@ def compute_descriptive_statistics_response(
- f"{NUMERICAL_DTYPES}, {STRING_DTYPES}, ClassLabel, list/Sequence and bool. "
+ f"{NUMERICAL_DTYPES}, {STRING_DTYPES}, ClassLabel, Image, Audio, list/Sequence, datetime and bool. "
@@ -262,10 +277,16 @@ def compute_descriptive_statistics_response(
- for column in columns:
- if isinstance(column, AudioColumn) or isinstance(column, ImageColumn):
- column_stats = column.compute_and_prepare_response(local_parquet_split_directory)
- else:
- try:
- data = pl.DataFrame._from_arrow(
- pq.read_table(
- local_parquet_split_directory,
- columns=[column.name],
- schema=Features.from_dict({column.name: features[column.name]}).arrow_schema,
+ with patch.object(
+ StringColumn,
+ "ENABLE_DATETIME",
+ StringColumn.ENABLE_DATETIME or dataset.startswith("lhoestq/") or dataset.startswith("cfahlgren1/"),
+ ): # TODO(QL): enable for everyone
+ for column in columns:
+ if isinstance(column, AudioColumn) or isinstance(column, ImageColumn):
+ column_stats = column.compute_and_prepare_response(local_parquet_split_directory)
+ else:
+ try:
+ data = pl.DataFrame._from_arrow(
+ pq.read_table(
+ local_parquet_split_directory,
+ columns=[column.name],
+ schema=Features.from_dict({column.name: features[column.name]}).arrow_schema,
+ )
@@ -273,8 +294,7 @@ def compute_descriptive_statistics_response(
- )
- except Exception as error:
- raise PolarsParquetReadError(
- f"Error reading parquet file(s) at {local_parquet_split_directory=}, columns=[{column.name}]: {error}",
- error,
- )
- column_stats = column.compute_and_prepare_response(data)
- all_stats.append(column_stats)
+ except Exception as error:
+ raise PolarsParquetReadError(
+ f"Error reading parquet file(s) at {local_parquet_split_directory=}, columns=[{column.name}]: {error}",
+ error,
+ )
+ column_stats = column.compute_and_prepare_response(data)
+ all_stats.append(column_stats)
diff --git a/services/worker/src/worker/statistics_utils.py b/services/worker/src/worker/statistics_utils.py
index f2651bb0..6a6bfb31 100644
--- a/services/worker/src/worker/statistics_utils.py
+++ b/services/worker/src/worker/statistics_utils.py
@@ -2,0 +3 @@
+import datetime
@@ -16,0 +18 @@ from libcommon.exceptions import (
+from libcommon.utils import datetime_to_string, get_timezone, identify_datetime_format, is_datetime
@@ -52,0 +55 @@ class ColumnType(str, enum.Enum):
+ DATETIME = "datetime"
@@ -59,0 +63,5 @@ class Histogram(TypedDict):
+class DatetimeHistogram(TypedDict):
+ hist: list[int]
+ bin_edges: list[str] # edges are string representations of dates
+
+
@@ -63,2 +71,2 @@ class NumericalStatisticsItem(TypedDict):
- min: Optional[float] # might be None in very rare cases when the whole column is only None values
- max: Optional[float]
+ min: Optional[Union[int, float]] # might be None in very rare cases when the whole column is only None values
+ max: Optional[Union[int, float]]
@@ -70,0 +79,11 @@ class NumericalStatisticsItem(TypedDict):
+class DatetimeStatisticsItem(TypedDict):
+ nan_count: int
+ nan_proportion: float
+ min: Optional[str] # might be None in very rare cases when the whole column is only None values
+ max: Optional[str]
+ mean: Optional[str]
+ median: Optional[str]
+ std: Optional[str] # string representation of timedelta
+ histogram: Optional[DatetimeHistogram]
+
+
@@ -86 +105,3 @@ class BoolStatisticsItem(TypedDict):
-SupportedStatistics = Union[NumericalStatisticsItem, CategoricalStatisticsItem, BoolStatisticsItem]
+SupportedStatistics = Union[
+ NumericalStatisticsItem, CategoricalStatisticsItem, BoolStatisticsItem, DatetimeStatisticsItem
+]
@@ -451,0 +473 @@ class StringColumn(Column):
+ ENABLE_DATETIME = False
@@ -458,0 +481,7 @@ class StringColumn(Column):
+ @staticmethod
+ def is_datetime(data: pl.DataFrame, column_name: str) -> bool:
+ """Check if first 100 non-null samples in a column match datetime format."""
+
+ values = data.filter(pl.col(column_name).is_not_null()).head(100)[column_name].to_list()
+ return all(is_datetime(value) for value in values) if len(values) > 0 else False
+
@@ -476 +505 @@ class StringColumn(Column):
- ) -> Union[CategoricalStatisticsItem, NumericalStatisticsItem]:
+ ) -> Union[CategoricalStatisticsItem, NumericalStatisticsItem, DatetimeStatisticsItem]:
@@ -478,0 +508,14 @@ class StringColumn(Column):
+ if cls.ENABLE_DATETIME and cls.is_datetime(data, column_name):
+ try:
+ stats: DatetimeStatisticsItem = DatetimeColumn.compute_statistics(
+ data,
+ column_name=column_name,
+ n_samples=n_samples,
+ )
+ return stats
+ except Exception as error:
+ logging.info(
+ f"Column {column_name} is datetime, but datetime stats compute failed ({error}), "
+ f"compute string stats instead. "
+ )
+
@@ -502 +545,6 @@ class StringColumn(Column):
- string_type = ColumnType.STRING_LABEL if "frequencies" in stats else ColumnType.STRING_TEXT
+ if "frequencies" in stats:
+ string_type = ColumnType.STRING_LABEL
+ elif isinstance(stats["histogram"]["bin_edges"][0], str):
+ string_type = ColumnType.DATETIME
+ else:
+ string_type = ColumnType.STRING_TEXT
@@ -701,0 +750,108 @@ class ImageColumn(MediaColumn):
+
+
+class DatetimeColumn(Column):
+ transform_column = IntColumn
+
+ @classmethod
+ def compute_transformed_data(
+ cls,
+ data: pl.DataFrame,
+ column_name: str,
+ transformed_column_name: str,
+ min_date: datetime.datetime,
+ ) -> pl.DataFrame:
+ return data.select((pl.col(column_name) - min_date).dt.total_seconds().alias(transformed_column_name))
+
+ @staticmethod
+ def shift_and_convert_to_string(base_date: datetime.datetime, seconds: Union[int, float]) -> str:
+ return datetime_to_string(base_date + datetime.timedelta(seconds=seconds))
+
+ @staticmethod
+ def get_format(data: pl.DataFrame, column_name: str) -> str:
+ values = data.filter(pl.col(column_name).is_not_null()).head(100)[column_name].to_list()
+ formats = [identify_datetime_format(value) for value in values]
+ if len(set(formats)) == 1:
+ datetime_format = formats[0]
+ if not datetime_format:
+ raise StatisticsComputationError(
+ f"Values are datetime but format is not identified. Example: {values[0]}. "
+ )
+ else:
+ raise StatisticsComputationError(f"Multiple datetime formats detected: {set(formats)}. ")
+
+ return datetime_format
+
+ @classmethod
+ def _compute_statistics(
+ cls,
+ data: pl.DataFrame,
+ column_name: str,
+ n_samples: int,
+ ) -> DatetimeStatisticsItem:
+ nan_count, nan_proportion = nan_count_proportion(data, column_name, n_samples)
+ if nan_count == n_samples: # all values are None
+ return DatetimeStatisticsItem(
+ nan_count=n_samples,
+ nan_proportion=1.0,
+ min=None,
+ max=None,
+ mean=None,
+ median=None,
+ std=None,
+ histogram=None,
+ )
+ original_timezone = None
+ if isinstance(data[column_name].dtype, pl.String):
+ # let polars identify format itself. provide manually in case of error
+ try:
+ original_timezone = get_timezone(data[column_name][0])
+ data = data.with_columns(pl.col(column_name).str.to_datetime())
+ except pl.ComputeError:
+ datetime_format = cls.get_format(data, column_name)
+ data = data.with_columns(pl.col(column_name).str.to_datetime(format=datetime_format))
+ original_timezone = None
+
+ min_date: datetime.datetime = data[column_name].min() # type: ignore # mypy infers type of datetime column .min() incorrectly
+ timedelta_column_name = f"{column_name}_timedelta"
+ # compute distribution of time passed from min date in **seconds**
+ timedelta_df = cls.compute_transformed_data(data, column_name, timedelta_column_name, min_date)
+ timedelta_stats: NumericalStatisticsItem = cls.transform_column.compute_statistics(
+ timedelta_df,
+ column_name=timedelta_column_name,
+ n_samples=n_samples,
+ )
+ # to assure mypy that these values are not None to pass to conversion functions:
+ assert timedelta_stats["histogram"] is not None # nosec
+ assert timedelta_stats["max"] is not None # nosec
+ assert timedelta_stats["mean"] is not None # nosec
+ assert timedelta_stats["median"] is not None # nosec
+ assert timedelta_stats["std"] is not None # nosec
+
+ if original_timezone:
+ min_date = min_date.astimezone(original_timezone)
+
+ datetime_bin_edges = [
+ cls.shift_and_convert_to_string(min_date, seconds) for seconds in timedelta_stats["histogram"]["bin_edges"]
+ ]
+
+ return DatetimeStatisticsItem(
+ nan_count=nan_count,
+ nan_proportion=nan_proportion,
+ min=datetime_to_string(min_date),
+ max=cls.shift_and_convert_to_string(min_date, timedelta_stats["max"]),
+ mean=cls.shift_and_convert_to_string(min_date, timedelta_stats["mean"]),
+ median=cls.shift_and_convert_to_string(min_date, timedelta_stats["median"]),
+ std=str(datetime.timedelta(seconds=timedelta_stats["std"])),
+ histogram=DatetimeHistogram(
+ hist=timedelta_stats["histogram"]["hist"],
+ bin_edges=datetime_bin_edges,
+ ),
+ )
+
+ def compute_and_prepare_response(self, data: pl.DataFrame) -> StatisticsPerColumnItem:
+ stats = self.compute_statistics(data, column_name=self.name, n_samples=self.n_samples)
+ return StatisticsPerColumnItem(
+ column_name=self.name,
+ column_type=ColumnType.DATETIME,
+ column_statistics=stats,
+ )
diff --git a/services/worker/tests/fixtures/datasets.py b/services/worker/tests/fixtures/datasets.py
index 77e41e2a..2b471a98 100644
--- a/services/worker/tests/fixtures/datasets.py
+++ b/services/worker/tests/fixtures/datasets.py
@@ -30,0 +31 @@ from .statistics_dataset import (
+ datetime_dataset,
@@ -240,0 +242 @@ def datasets() -> Mapping[str, Dataset]:
+ "datetime_statistics": datetime_dataset,
diff --git a/services/worker/tests/fixtures/hub.py b/services/worker/tests/fixtures/hub.py
index d799bd7a..78355373 100644
--- a/services/worker/tests/fixtures/hub.py
+++ b/services/worker/tests/fixtures/hub.py
@@ -337,0 +338,7 @@ def hub_public_image_statistics(datasets: Mapping[str, Dataset]) -> Iterator[str
[email protected](scope="session")
+def hub_public_datetime_statistics(datasets: Mapping[str, Dataset]) -> Iterator[str]:
+ repo_id = create_hub_dataset_repo(prefix="datetime_statistics", dataset=datasets["datetime_statistics"])
+ yield repo_id
+ delete_hub_dataset_repo(repo_id=repo_id)
+
+
@@ -1175,0 +1183,13 @@ def hub_responses_image_statistics(
+ "parquet_and_info_response": None,
+ }
+
+
[email protected]
+def hub_responses_datetime_statistics(
+ hub_public_datetime_statistics: str,
+) -> HubDatasetTest:
+ return {
+ "name": hub_public_datetime_statistics,
+ "config_names_response": create_config_names_response(hub_public_datetime_statistics),
+ "splits_response": create_splits_response(hub_public_datetime_statistics),
+ "first_rows_response": None,
diff --git a/services/worker/tests/fixtures/statistics_dataset.py b/services/worker/tests/fixtures/statistics_dataset.py
index f32e4041..416a68f1 100644
--- a/services/worker/tests/fixtures/statistics_dataset.py
+++ b/services/worker/tests/fixtures/statistics_dataset.py
@@ -3,0 +4 @@
+from datetime import datetime
@@ -1700,0 +1702,124 @@ image_dataset = Dataset.from_dict(
+
+
+datetime_dataset = Dataset.from_dict(
+ {
+ "datetime_string": [
+ "2024-01-01 00:00:00",
+ "2024-01-02 00:00:00",
+ "2024-01-03 00:00:00",
+ "2024-01-04 00:00:00",
+ "2024-01-05 00:00:00",
+ "2024-01-06 00:00:00",
+ "2024-01-07 00:00:00",
+ "2024-01-08 00:00:00",
+ "2024-01-09 00:00:00",
+ "2024-01-10 00:00:00",
+ "2024-01-11 00:00:00",
+ ],
+ "datetime_string_z": [
+ "2024-01-01 00:00:00Z",
+ "2024-01-02 00:00:00Z",
+ "2024-01-03 00:00:00Z",
+ "2024-01-04 00:00:00Z",
+ "2024-01-05 00:00:00Z",
+ "2024-01-06 00:00:00Z",
+ "2024-01-07 00:00:00Z",
+ "2024-01-08 00:00:00Z",
+ "2024-01-09 00:00:00Z",
+ "2024-01-10 00:00:00Z",
+ "2024-01-11 00:00:00Z",
+ ],
+ "datetime_string_t_z": [
+ "2024-01-01T00:00:00Z",
+ "2024-01-02T00:00:00Z",
+ "2024-01-03T00:00:00Z",
+ "2024-01-04T00:00:00Z",
+ "2024-01-05T00:00:00Z",
+ "2024-01-06T00:00:00Z",
+ "2024-01-07T00:00:00Z",
+ "2024-01-08T00:00:00Z",
+ "2024-01-09T00:00:00Z",
+ "2024-01-10T00:00:00Z",
+ "2024-01-11T00:00:00Z",
+ ],
+ "datetime_string_tz": [
+ "2024-01-01 00:00:00+0200",
+ "2024-01-02 00:00:00+0200",
+ "2024-01-03 00:00:00+0200",
+ "2024-01-04 00:00:00+0200",
+ "2024-01-05 00:00:00+0200",
+ "2024-01-06 00:00:00+0200",
+ "2024-01-07 00:00:00+0200",
+ "2024-01-08 00:00:00+0200",
+ "2024-01-09 00:00:00+0200",
+ "2024-01-10 00:00:00+0200",
+ "2024-01-11 00:00:00+0200",
+ ],
+ "datetime_string_error": [
+ "16/01/2023",
+ "17/01/2023",
+ "18/01/2023",
+ "19/01/2023",
+ "01/2023",
+ "02/2023",
+ "20/01/2023",
+ "21/01/2023",
+ "03/2023",
+ "25/01/2023",
+ "26/01/2023",
+ ],
+ "datetime": [
+ datetime.strptime("2024-01-01 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-02 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-03 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-04 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-05 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-06 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-07 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-08 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-09 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-10 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ datetime.strptime("2024-01-11 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ ],
+ "datetime_tz": [
+ datetime.strptime("2024-01-01 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-02 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-03 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-04 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-05 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-06 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-07 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-08 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-09 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-10 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ datetime.strptime("2024-01-11 00:00:00+0200", "%Y-%m-%d %H:%M:%S%z"),
+ ],
+ "datetime_null": [
+ datetime.strptime("2024-01-01 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ None,
+ datetime.strptime("2024-01-03 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ None,
+ datetime.strptime("2024-01-05 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ None,
+ datetime.strptime("2024-01-07 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ None,
+ datetime.strptime("2024-01-09 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ None,
+ datetime.strptime("2024-01-11 00:00:00", "%Y-%m-%d %H:%M:%S"),
+ ],
+ "datetime_all_null": [None] * 11,
+ },
+ features=Features(
+ {
+ "datetime_string": Value("string"),
+ "datetime_string_z": Value("string"),
+ "datetime_string_t_z": Value("string"),
+ "datetime_string_tz": Value("string"),
+ "datetime_string_error": Value("string"),
+ "datetime": Value("timestamp[s]"),
+ "datetime_tz": Value("timestamp[s, tz=+02:00]"),
+ "datetime_null": Value("timestamp[s]"),
+ "datetime_all_null": Value("timestamp[s]"),
+ }
+ ),
+)
diff --git a/services/worker/tests/job_runners/split/test_descriptive_statistics.py b/services/worker/tests/job_runners/split/test_descriptive_statistics.py
index ae6b4ff7..0837b73b 100644
--- a/services/worker/tests/job_runners/split/test_descriptive_statistics.py
+++ b/services/worker/tests/job_runners/split/test_descriptive_statistics.py
@@ -6 +6 @@ from http import HTTPStatus
-from typing import Optional
+from typing import Any, Optional
@@ -29,0 +30 @@ from ...test_statistics_utils import (
+ count_expected_statistics_for_datetime_column,
@@ -215 +216 @@ def get_parquet_metadata_job_runner(
-def descriptive_statistics_expected(datasets: Mapping[str, Dataset]) -> dict: # type: ignore
+def descriptive_statistics_expected(datasets: Mapping[str, Dataset]) -> dict[str, Any]:
@@ -253 +254 @@ def descriptive_statistics_expected(datasets: Mapping[str, Dataset]) -> dict: #
-def descriptive_statistics_string_text_expected(datasets: Mapping[str, Dataset]) -> dict: # type: ignore
+def descriptive_statistics_string_text_expected(datasets: Mapping[str, Dataset]) -> dict[str, Any]:
@@ -270 +271 @@ def descriptive_statistics_string_text_expected(datasets: Mapping[str, Dataset])
-def descriptive_statistics_string_text_partial_expected(datasets: Mapping[str, Dataset]) -> dict: # type: ignore
+def descriptive_statistics_string_text_partial_expected(datasets: Mapping[str, Dataset]) -> dict[str, Any]:
@@ -287 +288 @@ def descriptive_statistics_string_text_partial_expected(datasets: Mapping[str, D
-def audio_statistics_expected() -> dict: # type: ignore
+def audio_statistics_expected() -> dict[str, Any]:
@@ -312 +313 @@ def audio_statistics_expected() -> dict: # type: ignore
-def image_statistics_expected() -> dict: # type: ignore
+def image_statistics_expected() -> dict[str, Any]:
@@ -333,0 +335,15 @@ def image_statistics_expected() -> dict: # type: ignore
[email protected]
+def datetime_statistics_expected(datasets: Mapping[str, Dataset]) -> dict[str, Any]:
+ ds = datasets["datetime_statistics"]
+ df = ds.to_pandas()
+ expected_statistics = {}
+ for column_name in df.columns:
+ statistics = count_expected_statistics_for_datetime_column(column=df[column_name], column_name=column_name)
+ expected_statistics[column_name] = {
+ "column_name": column_name,
+ "column_type": ColumnType.DATETIME if column_name != "datetime_string_error" else ColumnType.STRING_TEXT,
+ "column_statistics": statistics,
+ }
+ return {"num_examples": df.shape[0], "statistics": expected_statistics, "partial": False}
+
+
@@ -342,0 +359 @@ def image_statistics_expected() -> dict: # type: ignore
+ ("datetime_statistics", None),
@@ -358,0 +376 @@ def test_compute(
+ hub_responses_datetime_statistics: HubDatasetTest,
@@ -361,5 +379,6 @@ def test_compute(
- descriptive_statistics_expected: dict, # type: ignore
- descriptive_statistics_string_text_expected: dict, # type: ignore
- descriptive_statistics_string_text_partial_expected: dict, # type: ignore
- audio_statistics_expected: dict, # type: ignore
- image_statistics_expected: dict, # type: ignore
+ descriptive_statistics_expected: dict[str, Any],
+ descriptive_statistics_string_text_expected: dict[str, Any],
+ descriptive_statistics_string_text_partial_expected: dict[str, Any],
+ audio_statistics_expected: dict[str, Any],
+ image_statistics_expected: dict[str, Any],
+ datetime_statistics_expected: dict[str, Any],
@@ -374,0 +394 @@ def test_compute(
+ "datetime_statistics": hub_responses_datetime_statistics,
@@ -383,0 +404 @@ def test_compute(
+ "datetime_statistics": datetime_statistics_expected,
@@ -507,0 +529,10 @@ def test_compute(
+ elif column_response["column_type"] is ColumnType.DATETIME:
+ std, expected_std = (
+ column_response_stats.pop("std"),
+ expected_column_response_stats.pop("std"),
+ )
+ if std:
+ assert std.split(".")[0] == expected_std.split(".")[0]
+ else:
+ assert std == expected_std
+ assert column_response_stats == expected_column_response_stats
diff --git a/services/worker/tests/test_statistics_utils.py b/services/worker/tests/test_statistics_utils.py
index 80f41f31..2a5d4dd6 100644
--- a/services/worker/tests/test_statistics_utils.py
+++ b/services/worker/tests/test_statistics_utils.py
@@ -2,0 +3 @@
+import datetime
@@ -4 +5 @@ from collections.abc import Mapping
-from typing import Optional, Union
+from typing import Any, Optional, Union
@@ -24,0 +26 @@ from worker.statistics_utils import (
+ DatetimeColumn,
@@ -32,0 +35,2 @@ from worker.statistics_utils import (
+StringColumn.ENABLE_DATETIME = True # TODO(QL): remove once it's always enabled
+
@@ -69 +73 @@ def count_expected_statistics_for_numerical_column(
-) -> dict: # type: ignore
+) -> dict[str, Any]:
@@ -126 +130 @@ def count_expected_statistics_for_numerical_column(
-def count_expected_statistics_for_list_column(column: pd.Series) -> dict: # type: ignore
+def count_expected_statistics_for_list_column(column: pd.Series) -> dict[str, Any]: # type: ignore
@@ -142 +146 @@ def count_expected_statistics_for_categorical_column(
-) -> dict: # type: ignore
+) -> dict[str, Any]:
@@ -161 +165 @@ def count_expected_statistics_for_categorical_column(
-def count_expected_statistics_for_string_column(column: pd.Series) -> dict: # type: ignore
+def count_expected_statistics_for_string_column(column: pd.Series) -> dict[str, Any]: # type: ignore
@@ -184 +188 @@ def count_expected_statistics_for_string_column(column: pd.Series) -> dict: # t
-def count_expected_statistics_for_bool_column(column: pd.Series) -> dict: # type: ignore
+def count_expected_statistics_for_bool_column(column: pd.Series) -> dict[str, Any]: # type: ignore
@@ -472,0 +477,109 @@ def test_image_statistics(
+
+
+def count_expected_statistics_for_datetime_column(column: pd.Series, column_name: str) -> dict[str, Any]: # type: ignore
+ n_samples = column.shape[0]
+ nan_count = column.isna().sum()
+ if nan_count == n_samples:
+ return {
+ "nan_count": n_samples,
+ "nan_proportion": 1.0,
+ "min": None,
+ "max": None,
+ "mean": None,
+ "median": None,
+ "std": None,
+ "histogram": None,
+ }
+
+ # testcase contains multiple datetime formats, and we compute string lengths distributions instead of error
+ if column_name == "datetime_string_error":
+ return count_expected_statistics_for_string_column(column)
+
+ # hardcode expected values
+ minv = "2024-01-01 00:00:00"
+ maxv = "2024-01-11 00:00:00"
+ mean = "2024-01-06 00:00:00"
+ median = "2024-01-06 00:00:00"
+ bin_edges = [
+ "2024-01-01 00:00:00",
+ "2024-01-02 00:00:01",
+ "2024-01-03 00:00:02",
+ "2024-01-04 00:00:03",
+ "2024-01-05 00:00:04",
+ "2024-01-06 00:00:05",
+ "2024-01-07 00:00:06",
+ "2024-01-08 00:00:07",
+ "2024-01-09 00:00:08",
+ "2024-01-10 00:00:09",
+ "2024-01-11 00:00:00",
+ ]
+ if column_name in ["datetime_tz", "datetime_string_tz"]:
+ bin_edges = [f"{bin_edge}+0200" for bin_edge in bin_edges]
+ minv, maxv, mean, median = f"{minv}+0200", f"{maxv}+0200", f"{mean}+0200", f"{median}+0200"
+
+ # compute std
+ seconds_in_day = 24 * 60 * 60
+ if column_name == "datetime_null":
+ timedeltas = pd.Series(range(0, 6 * 2 * seconds_in_day, 2 * seconds_in_day)) # take every other day
+ hist = [1, 1, 0, 1, 0, 1, 0, 1, 0, 1]
+ else:
+ timedeltas = pd.Series(range(0, 11 * seconds_in_day, seconds_in_day))
+ hist = [2, 1, 1, 1, 1, 1, 1, 1, 1, 1]
+
+ std = timedeltas.std()
+ std_str = str(datetime.timedelta(seconds=std))
+
+ return {
+ "nan_count": nan_count,
+ "nan_proportion": np.round(nan_count / n_samples, DECIMALS).item() if nan_count else 0.0,
+ "min": minv,
+ "max": maxv,
+ "mean": mean,
+ "median": median,
+ "std": std_str,
+ "histogram": {
+ "hist": hist,
+ "bin_edges": bin_edges,
+ },
+ }
+
+
[email protected](
+ "column_name",
+ [
+ "datetime",
+ "datetime_string",
+ "datetime_string_z",
+ "datetime_string_t_z",
+ "datetime_string_tz",
+ "datetime_string_error",
+ "datetime_tz",
+ "datetime_null",
+ "datetime_all_null",
+ ],
+)
+def test_datetime_statistics(
+ column_name: str,
+ datasets: Mapping[str, Dataset],
+) -> None:
+ data = datasets["datetime_statistics"].to_pandas()
+ expected = count_expected_statistics_for_datetime_column(data[column_name], column_name)
+ if "_string" in column_name:
+ computed = StringColumn.compute_statistics(
+ data=pl.from_pandas(data),
+ column_name=column_name,
+ n_samples=len(data[column_name]),
+ )
+ else:
+ computed = DatetimeColumn.compute_statistics(
+ data=pl.from_pandas(data),
+ column_name=column_name,
+ n_samples=len(data[column_name]),
+ )
+
+ computed_std, expected_std = computed.pop("std"), expected.pop("std")
+ if computed_std and column_name != "datetime_string_error":
+ assert computed_std.split(".")[0] == expected_std.split(".")[0] # check with precision up to seconds
+ else:
+ assert computed_std == expected_std
+ assert computed == expected
|
|
6b11d655f9455deacbb925dbd17f265b883b3e5d
|
Remy
| 2025-03-21T11:20:19 |
feat(chart): update ALB rules order (#3155)
|
diff --git a/chart/env/prod.yaml b/chart/env/prod.yaml
index 7b71d579..18862dd7 100644
--- a/chart/env/prod.yaml
+++ b/chart/env/prod.yaml
@@ -376,0 +377 @@ rows:
+ alb.ingress.kubernetes.io/group.order: "2"
@@ -413,0 +415 @@ search:
+ alb.ingress.kubernetes.io/group.order: "3"
@@ -447,0 +450 @@ sseApi:
+ alb.ingress.kubernetes.io/group.order: "4"
@@ -570,0 +574 @@ webhook:
+ alb.ingress.kubernetes.io/group.order: "5"
|
|
eac9f864ccb460f0060ba799b523adc013cc3c8b
|
Remy
| 2025-03-21T11:06:37 |
fix(chart): update TLS certs (#3154)
|
diff --git a/chart/env/prod.yaml b/chart/env/prod.yaml
index cc51335f..7b71d579 100644
--- a/chart/env/prod.yaml
+++ b/chart/env/prod.yaml
@@ -261 +261 @@ ingress:
- alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:707930574880:certificate/971187a3-2baa-40e5-bcae-94d6ec55cd24
+ alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-1:707930574880:certificate/134d1ed3-7ac1-481d-b2e4-31e17fbacb28
|
|
ac11c3a790a2def71339a35d44566ed08fb97fcc
|
rtrm
| 2025-03-20T14:17:07 |
fix: reduce alb int name
|
diff --git a/chart/env/prod.yaml b/chart/env/prod.yaml
index 9b0a3f2a..cc51335f 100644
--- a/chart/env/prod.yaml
+++ b/chart/env/prod.yaml
@@ -305 +305 @@ admin:
- alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-int"
@@ -343 +343 @@ api:
- alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-int"
@@ -378 +378 @@ rows:
- alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-int"
@@ -415 +415 @@ search:
- alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-int"
@@ -449 +449 @@ sseApi:
- alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-int"
@@ -572 +572 @@ webhook:
- alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-int"
|
|
d335e2a720d4ddff185975c5000edb4f6600afd6
|
rtrm
| 2025-03-20T13:55:44 |
fix: disable internal ingress by default
|
diff --git a/chart/values.yaml b/chart/values.yaml
index 4b92d521..0e72d3f5 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -567 +567 @@ sseApi:
- enabled: true
+ enabled: false
|
|
310c0f8ff14c55a92f8b96f00b347cc2aaceaee9
|
Remy
| 2025-03-20T10:00:28 |
feat: new internal ALB (#3153)
|
diff --git a/.github/workflows/trufflehog.yml b/.github/workflows/trufflehog.yml
index 9cbbf680..8686dc06 100644
--- a/.github/workflows/trufflehog.yml
+++ b/.github/workflows/trufflehog.yml
@@ -15,0 +16,2 @@ jobs:
+ with:
+ extra_args: --results=verified,unknown
diff --git a/chart/env/prod.yaml b/chart/env/prod.yaml
index 993505ba..9b0a3f2a 100644
--- a/chart/env/prod.yaml
+++ b/chart/env/prod.yaml
@@ -299,0 +300,7 @@ admin:
+ ingressInternal:
+ enabled: true
+ annotations:
+ external-dns.alpha.kubernetes.io/hostname: "internal.datasets-server.huggingface.co"
+ alb.ingress.kubernetes.io/scheme: "internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/group.name: "datasets-server-internal"
@@ -330,0 +338,7 @@ api:
+ ingressInternal:
+ enabled: true
+ annotations:
+ external-dns.alpha.kubernetes.io/hostname: "internal.datasets-server.huggingface.co"
+ alb.ingress.kubernetes.io/scheme: "internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/group.name: "datasets-server-internal"
@@ -358,0 +373,7 @@ rows:
+ ingressInternal:
+ enabled: true
+ annotations:
+ external-dns.alpha.kubernetes.io/hostname: "internal.datasets-server.huggingface.co"
+ alb.ingress.kubernetes.io/scheme: "internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/group.name: "datasets-server-internal"
@@ -388,0 +410,7 @@ search:
+ ingressInternal:
+ enabled: true
+ annotations:
+ external-dns.alpha.kubernetes.io/hostname: "internal.datasets-server.huggingface.co"
+ alb.ingress.kubernetes.io/scheme: "internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/group.name: "datasets-server-internal"
@@ -415,0 +444,7 @@ sseApi:
+ ingressInternal:
+ enabled: true
+ annotations:
+ external-dns.alpha.kubernetes.io/hostname: "internal.datasets-server.huggingface.co"
+ alb.ingress.kubernetes.io/scheme: "internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/group.name: "datasets-server-internal"
@@ -531,0 +567,7 @@ webhook:
+ ingressInternal:
+ enabled: true
+ annotations:
+ external-dns.alpha.kubernetes.io/hostname: "internal.datasets-server.huggingface.co"
+ alb.ingress.kubernetes.io/scheme: "internal"
+ alb.ingress.kubernetes.io/load-balancer-name: "hub-datasets-server-prod-internal"
+ alb.ingress.kubernetes.io/group.name: "datasets-server-internal"
diff --git a/chart/templates/_common/_helpers.tpl b/chart/templates/_common/_helpers.tpl
index edd00d65..fc14b36c 100644
--- a/chart/templates/_common/_helpers.tpl
+++ b/chart/templates/_common/_helpers.tpl
@@ -192 +192 @@ http://{{ $hubName }}
-Return the api ingress anotation
+Return ingress anotations
@@ -202,0 +203,12 @@ note: keep $instanceAnnotations in first position during the merge, to avoid ove
+{{/*
+Return ingressInternal anotations
+note: keep $instanceAnnotations in first position during the merge, to avoid override annotations in other pods
+*/}}
+{{- define "datasetsServer.instance.ingressInternal.annotations" -}}
+{{- $instanceAnnotations := .instance.ingressInternal.annotations -}}
+{{- $defaultAnnotations := .context.Values.ingress.annotations -}}
+{{- $dict := merge $instanceAnnotations $defaultAnnotations -}}
+{{- range $key, $value := $dict }}
+{{ $key | quote }}: {{ $value | quote }}
+{{- end }}
+{{- end -}}
diff --git a/chart/templates/services/admin/ingress-internal.yaml b/chart/templates/services/admin/ingress-internal.yaml
new file mode 100644
index 00000000..1b4d0e3d
--- /dev/null
+++ b/chart/templates/services/admin/ingress-internal.yaml
@@ -0,0 +1,32 @@
+{{- if and .Values.global.huggingface.ingress.enabled .Values.ingress.enabled .Values.admin.ingressInternal.enabled -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ {{- $annotations := fromYaml (include "datasetsServer.instance.ingressInternal.annotations" (dict "instance" .Values.admin "context" $ )) }}
+ annotations: {{ toYaml $annotations | nindent 4 }}
+ labels: {{ include "labels.admin" . | nindent 4 }}
+ name: "{{ include "name" . }}-admin-internal"
+ namespace: {{ .Release.Namespace }}
+spec:
+ rules:
+ - host: internal.{{ include "datasetsServer.ingress.hostname" . }}
+ http:
+ paths:
+ - path: /admin
+ pathType: Prefix
+ backend:
+ service:
+ name: "{{ include "name" . }}-admin"
+ port:
+ name: http
+ {{- if hasKey $annotations "alb.ingress.kubernetes.io/actions.metrics-unauthorized" }}
+ - path: /admin/metrics
+ pathType: Exact
+ backend:
+ service:
+ name: metrics-unauthorized
+ port:
+ name: use-annotation
+ {{- end -}}
+{{- include "ingress.tls" (merge (dict "annotations" $annotations) $ ) | indent 2}}
+{{- end }}
diff --git a/chart/templates/services/api/ingress-internal.yaml b/chart/templates/services/api/ingress-internal.yaml
new file mode 100644
index 00000000..41d3b058
--- /dev/null
+++ b/chart/templates/services/api/ingress-internal.yaml
@@ -0,0 +1,41 @@
+{{- if and .Values.global.huggingface.ingress.enabled .Values.ingress.enabled .Values.api.ingressInternal.enabled -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ {{- $annotations := fromYaml (include "datasetsServer.instance.ingressInternal.annotations" (dict "instance" .Values.api "context" $ )) }}
+ annotations: {{ toYaml $annotations | nindent 4}}
+ labels: {{ include "labels.api" . | nindent 4 }}
+ name: "{{ include "name" . }}-api-internal"
+ namespace: {{ .Release.Namespace }}
+spec:
+ rules:
+ - host: internal.{{ include "datasetsServer.ingress.hostname" . }}
+ http:
+ paths:
+ - backend:
+ service:
+ name: "{{ include "name" . }}-api"
+ port:
+ name: http
+ path: /
+ pathType: Prefix
+ {{ if hasKey $annotations "alb.ingress.kubernetes.io/actions.openapi-redirect" -}}
+ - path: /openapi.json
+ pathType: Exact
+ backend:
+ service:
+ name: openapi-redirect
+ port:
+ name: use-annotation
+ {{- end }}
+ {{ if hasKey $annotations "alb.ingress.kubernetes.io/actions.metrics-unauthorized" -}}
+ - path: /metrics
+ pathType: Exact
+ backend:
+ service:
+ name: metrics-unauthorized
+ port:
+ name: use-annotation
+ {{- end -}}
+{{- include "ingress.tls" (merge (dict "annotations" $annotations) $ ) | indent 2}}
+{{- end }}
diff --git a/chart/templates/services/rows/ingress-internal.yaml b/chart/templates/services/rows/ingress-internal.yaml
new file mode 100644
index 00000000..32e9e062
--- /dev/null
+++ b/chart/templates/services/rows/ingress-internal.yaml
@@ -0,0 +1,23 @@
+{{- if and .Values.global.huggingface.ingress.enabled .Values.ingress.enabled .Values.rows.ingressInternal.enabled -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ {{- $annotations := fromYaml (include "datasetsServer.instance.ingressInternal.annotations" (dict "instance" .Values.rows "context" $ )) }}
+ annotations: {{ toYaml $annotations | nindent 4}}
+ labels: {{ include "labels.rows" . | nindent 4 }}
+ name: "{{ include "name" . }}-rows-internal"
+ namespace: {{ .Release.Namespace }}
+spec:
+ rules:
+ - host: internal.{{ include "datasetsServer.ingress.hostname" . }}
+ http:
+ paths:
+ - backend:
+ service:
+ name: "{{ include "name" . }}-rows"
+ port:
+ name: http
+ path: /rows
+ pathType: Prefix
+{{- include "ingress.tls" (merge (dict "annotations" $annotations) $ ) | indent 2}}
+{{- end }}
diff --git a/chart/templates/services/search/ingress-internal.yaml b/chart/templates/services/search/ingress-internal.yaml
new file mode 100644
index 00000000..e021bd3f
--- /dev/null
+++ b/chart/templates/services/search/ingress-internal.yaml
@@ -0,0 +1,33 @@
+{{- if and .Values.global.huggingface.ingress.enabled .Values.ingress.enabled .Values.search.ingressInternal.enabled -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ {{- $annotations := fromYaml (include "datasetsServer.instance.ingressInternal.annotations" (dict "instance" .Values.search "context" $ )) }}
+ annotations: {{ toYaml $annotations | nindent 4}}
+ labels: {{ include "labels.search" . | nindent 4 }}
+ name: "{{ include "name" . }}-search-internal"
+ namespace: {{ .Release.Namespace }}
+spec:
+ rules:
+ - host: internal.{{ include "datasetsServer.ingress.hostname" . }}
+ http:
+ paths:
+ - backend:
+ service:
+ name: "{{ include "name" . }}-search"
+ port:
+ name: http
+ path: /search
+ pathType: Prefix
+ - host: internal.{{ include "datasetsServer.ingress.hostname" . }}
+ http:
+ paths:
+ - backend:
+ service:
+ name: "{{ include "name" . }}-search"
+ port:
+ name: http
+ path: /filter
+ pathType: Prefix
+{{- include "ingress.tls" (merge (dict "annotations" $annotations) $ ) | indent 2}}
+{{- end }}
diff --git a/chart/templates/services/sse-api/ingress-internal.yaml b/chart/templates/services/sse-api/ingress-internal.yaml
new file mode 100644
index 00000000..448db2c8
--- /dev/null
+++ b/chart/templates/services/sse-api/ingress-internal.yaml
@@ -0,0 +1,23 @@
+{{- if and .Values.global.huggingface.ingress.enabled .Values.ingress.enabled .Values.sseApi.ingressInternal.enabled -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ {{- $annotations := fromYaml (include "datasetsServer.instance.ingressInternal.annotations" (dict "instance" .Values.sseApi "context" $ )) }}
+ annotations: {{ toYaml $annotations | nindent 4}}
+ labels: {{ include "labels.sseApi" . | nindent 4 }}
+ name: "{{ include "name" . }}-sse-api-internal"
+ namespace: {{ .Release.Namespace }}
+spec:
+ rules:
+ - host: internal.{{ include "datasetsServer.ingress.hostname" . }}
+ http:
+ paths:
+ - backend:
+ service:
+ name: "{{ include "name" . }}-sse-api"
+ port:
+ name: http
+ path: /sse
+ pathType: Prefix
+{{- include "ingress.tls" (merge (dict "annotations" $annotations) $ ) | indent 2}}
+{{- end }}
diff --git a/chart/templates/services/webhook/ingress-internal.yaml b/chart/templates/services/webhook/ingress-internal.yaml
new file mode 100644
index 00000000..e4731c35
--- /dev/null
+++ b/chart/templates/services/webhook/ingress-internal.yaml
@@ -0,0 +1,23 @@
+{{- if and .Values.global.huggingface.ingress.enabled .Values.ingress.enabled .Values.webhook.ingressInternal.enabled -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ {{- $annotations := fromYaml (include "datasetsServer.instance.ingressInternal.annotations" (dict "instance" .Values.webhook "context" $ )) }}
+ annotations: {{ toYaml $annotations | nindent 4}}
+ labels: {{ include "labels.webhook" . | nindent 4 }}
+ name: "{{ include "name" . }}-webhook-internal"
+ namespace: {{ .Release.Namespace }}
+spec:
+ rules:
+ - host: internal.{{ include "datasetsServer.ingress.hostname" . }}
+ http:
+ paths:
+ - backend:
+ service:
+ name: "{{ include "name" . }}-webhook"
+ port:
+ name: http
+ path: /webhook
+ pathType: Prefix
+{{- include "ingress.tls" (merge (dict "annotations" $annotations) $ ) | indent 2}}
+{{- end }}
diff --git a/chart/values.yaml b/chart/values.yaml
index b63664c5..4b92d521 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -420,0 +421,3 @@ admin:
+ ingressInternal:
+ enabled: false
+ annotations: {}
@@ -463,0 +467,3 @@ api:
+ ingressInternal:
+ enabled: false
+ annotations: {}
@@ -493,0 +500,3 @@ rows:
+ ingressInternal:
+ enabled: false
+ annotations: {}
@@ -527,0 +537,3 @@ search:
+ ingressInternal:
+ enabled: false
+ annotations: {}
@@ -553,0 +566,3 @@ sseApi:
+ ingressInternal:
+ enabled: true
+ annotations: {}
@@ -610,0 +626,3 @@ webhook:
+ ingressInternal:
+ enabled: false
+ annotations: {}
|
|
8e2665e0203eed6d4eb8dd9fb880dd62310e27f1
|
Quentin Lhoest
| 2025-03-19T12:09:16 |
code formatting (#3152)
|
diff --git a/services/rows/src/rows/routes/rows.py b/services/rows/src/rows/routes/rows.py
index cbde5d52..1bf38928 100644
--- a/services/rows/src/rows/routes/rows.py
+++ b/services/rows/src/rows/routes/rows.py
@@ -81 +81,2 @@ def create_rows_endpoint(
- status_code=HTTPStatus.TOO_MANY_REQUESTS
+ status_code=HTTPStatus.TOO_MANY_REQUESTS,
+ max_age=max_age_short,
|
|
1211cce15cbc3ff3b34a8e1d6a625cade8016330
|
Quentin Lhoest
| 2025-03-19T12:06:02 |
dummy rate limit (#3151)
|
diff --git a/services/rows/src/rows/routes/rows.py b/services/rows/src/rows/routes/rows.py
index cf73f8fa..cbde5d52 100644
--- a/services/rows/src/rows/routes/rows.py
+++ b/services/rows/src/rows/routes/rows.py
@@ -4,0 +5 @@ import logging
+from http import HTTPStatus
@@ -76,0 +78,5 @@ def create_rows_endpoint(
+ if dataset == "HuggingFaceFW/fineweb-edu-score-2" and offset > 1_000_000:
+ return get_json_error_response(
+ content="too many requests",
+ status_code=HTTPStatus.TOO_MANY_REQUESTS
+ )
|
|
695dcced79a30aff00785f6fa01b3420c1dd328a
|
ccl-core
| 2025-03-18T11:18:32 |
Include multiple transforms for nested fields. (#3148)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index ed9e50fb..02444fa7 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -67 +67 @@ def get_source(
- distribution_name: str, column: str, add_transform: bool, json_path: Optional[str] = None
+ distribution_name: str, column: str, add_transform: bool, json_path: Optional[list[str]] = None
@@ -70 +70 @@ def get_source(
- source = {"fileSet": {"@id": distribution_name}, "extract": {"column": column}}
+ source: dict[str, Any] = {"fileSet": {"@id": distribution_name}, "extract": {"column": column}}
@@ -72 +72,4 @@ def get_source(
- source["transform"] = {"jsonPath": json_path}
+ if len(json_path) == 1:
+ source["transform"] = {"jsonPath": json_path[0]}
+ else:
+ source["transform"] = [{"jsonPath": path} for path in json_path]
@@ -82 +85 @@ def feature_to_croissant_field(
- json_path: Optional[str] = None,
+ json_path: Optional[list[str]] = None,
@@ -112,0 +116,14 @@ def feature_to_croissant_field(
+ sub_fields = []
+ if not json_path:
+ json_path = []
+ for subfeature_name, sub_feature in feature.items():
+ sub_json_path = json_path + [subfeature_name]
+ f = feature_to_croissant_field(
+ distribution_name,
+ f"{field_name}/{subfeature_name}",
+ column,
+ sub_feature,
+ add_transform=True,
+ json_path=sub_json_path,
+ )
+ sub_fields.append(f)
@@ -116,11 +133 @@ def feature_to_croissant_field(
- "subField": [
- feature_to_croissant_field(
- distribution_name,
- f"{field_name}/{subfeature_name}",
- column,
- sub_feature,
- add_transform=True,
- json_path=subfeature_name,
- )
- for subfeature_name, sub_feature in feature.items()
- ],
+ "subField": sub_fields,
diff --git a/libs/libcommon/tests/test_croissant_utils.py b/libs/libcommon/tests/test_croissant_utils.py
index 25d3f02c..d9dcd577 100644
--- a/libs/libcommon/tests/test_croissant_utils.py
+++ b/libs/libcommon/tests/test_croissant_utils.py
@@ -77,0 +78,27 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
+ (
+ [{"sub-field": {"sub-sub-field": Value(dtype="int32")}}],
+ {
+ "@type": "cr:Field",
+ "@id": "field_name",
+ "subField": [
+ {
+ "@type": "cr:Field",
+ "@id": "field_name/sub-field",
+ "subField": [
+ {
+ "@type": "cr:Field",
+ "@id": "field_name/sub-field/sub-sub-field",
+ "dataType": "cr:Int32",
+ "source": {
+ "fileSet": {"@id": "distribution_name"},
+ "extract": {"column": "column_name"},
+ "transform": [{"jsonPath": "sub-field"}, {"jsonPath": "sub-sub-field"}],
+ },
+ }
+ ],
+ }
+ ],
+ "isArray": True,
+ "arrayShape": "-1",
+ },
+ ),
|
|
c4d24f0a4aebc40af48e4b637d2731e977881f10
|
Quentin Lhoest
| 2025-03-17T22:14:30 |
Update `datasets` (#3149)
|
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index d3b9de6d..e5b73cfb 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -627 +627 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -632,2 +632,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -659 +659 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -666,2 +666,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1452 +1452 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index db95dfa1..d81fd7ed 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -565,2 +565,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -592 +592 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -599,2 +599,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1079 +1079 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index b6412718..7ea3a7e3 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -565,2 +565,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -592 +592 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -599,2 +599,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1079 +1079 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index a5427cbb..1aa3b6f2 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -567 +567 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -572,2 +572,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -599 +599 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -606,2 +606,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1147 +1147 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index 476a3da7..067aacc2 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -596 +596 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -601,2 +601,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -628 +628 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -635,2 +635,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -3941 +3941 @@ python-versions = "3.9.18"
-content-hash = "abb859c6c006a394ff4ef14a828ec5492f8d29bd4641a1850d3ece8352cd8441"
+content-hash = "7c844028b5f41c68dd2240277f007005d045d9bfab743a16d3ab7f1e27a82e4d"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index 49105783..a4c24250 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12 +12 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/libs/libcommon/src/libcommon/viewer_utils/features.py b/libs/libcommon/src/libcommon/viewer_utils/features.py
index 49a9ae70..3c86bf70 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/features.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/features.py
@@ -218,2 +218,2 @@ def video(
- if datasets.config.DECORD_AVAILABLE:
- from decord import VideoReader # type: ignore
+ if datasets.config.TORCHVISION_AVAILABLE:
+ from torchvision.io import VideoReader # type: ignore
@@ -232 +232 @@ def video(
- value = value._hf_encoded # `datasets` patches `decord` to store the encoded data here
+ value = value._hf_encoded # `datasets` patches `torchvision` to store the encoded data here
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index bb699d0c..a7412e96 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -606 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1170 +1170 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index 2af7a464..b9c34d79 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -606 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1189 +1189 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index 0deb5b37..b724499f 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -593 +593 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -598,2 +598,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -625 +625 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -632,2 +632,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1208 +1208 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index 1d218fbf..175cb61e 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -606 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1248 +1248 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index 696b042c..c8155958 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -606 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1218 +1218 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index 1770cb12..54168785 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -579,2 +579,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -606 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -613,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1189 +1189 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index ef9e71d3..098a03fd 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -882 +882 @@ name = "datasets"
-version = "3.3.2"
+version = "3.4.1"
@@ -887,2 +887,2 @@ files = [
- {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
- {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+ {file = "datasets-3.4.1-py3-none-any.whl", hash = "sha256:b91cf257bd64132fa9d953dd4768ab6d63205597301f132a74271cfcce8b5dd3"},
+ {file = "datasets-3.4.1.tar.gz", hash = "sha256:e23968da79bc014ef9f7540eeb7771c6180eae82c86ebcfcc10535a03caf08b5"},
@@ -914 +914 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -921,2 +921,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyav", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "torchvision", "transformers (>=4.42.0)", "zstandard"]
@@ -1649 +1649 @@ cryptography = "^43.0.1"
-datasets = {version = "3.3.2", extras = ["audio", "vision"]}
+datasets = {version = "3.4.1", extras = ["audio", "vision"]}
diff --git a/services/worker/src/worker/job_runners/dataset/compatible_libraries.py b/services/worker/src/worker/job_runners/dataset/compatible_libraries.py
index e86f4317..0635327a 100644
--- a/services/worker/src/worker/job_runners/dataset/compatible_libraries.py
+++ b/services/worker/src/worker/job_runners/dataset/compatible_libraries.py
@@ -118 +117,0 @@ def get_builder_configs_with_simplified_data_files(
- supports_metadata=False,
@@ -120,0 +120,2 @@ def get_builder_configs_with_simplified_data_files(
+ # No need for default_builder_kwargs since we just need the builder config for the data files
+ # default_builder_kwargs=default_builder_kwargs,
|
|
64a95d53c149b88ecaf31428266c00bd3cb9069c
|
ccl-core
| 2025-03-14T14:15:44 |
When given, use the sequence len for array_shape (#3144)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index 2c46cd32..ed9e50fb 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -128,0 +129 @@ def feature_to_croissant_field(
+ array_shape = []
@@ -132,0 +134 @@ def feature_to_croissant_field(
+ array_shape.append(-1)
@@ -133,0 +136 @@ def feature_to_croissant_field(
+ array_shape.append(feature.length)
@@ -135 +137,0 @@ def feature_to_croissant_field(
- array_shape = ["-1"]
@@ -136,0 +139 @@ def feature_to_croissant_field(
+ array_shape.append(sub_feature.length)
@@ -138 +140,0 @@ def feature_to_croissant_field(
- array_shape.append("-1")
@@ -142 +144 @@ def feature_to_croissant_field(
- field["arrayShape"] = ",".join(array_shape)
+ field["arrayShape"] = ",".join([str(shape) if shape else "-1" for shape in array_shape])
diff --git a/libs/libcommon/tests/test_croissant_utils.py b/libs/libcommon/tests/test_croissant_utils.py
index bbcdbe31..25d3f02c 100644
--- a/libs/libcommon/tests/test_croissant_utils.py
+++ b/libs/libcommon/tests/test_croissant_utils.py
@@ -55,0 +56,11 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
+ (
+ Sequence(Sequence(Value(dtype="int32"), length=3)),
+ {
+ "@type": "cr:Field",
+ "@id": "field_name",
+ "dataType": "cr:Int32",
+ "source": {"fileSet": {"@id": "distribution_name"}, "extract": {"column": "column_name"}},
+ "isArray": True,
+ "arrayShape": "-1,3",
+ },
+ ),
|
|
de8e69a8832b2d4974b08e4ed7aba1f3304dea52
|
Quentin Lhoest
| 2025-03-07T18:06:08 |
Update README.md (#3147)
|
diff --git a/README.md b/README.md
index b38b3772..724d4f5c 100644
--- a/README.md
+++ b/README.md
@@ -16 +16 @@ Documentation:
-If the dataset viewer is showing an error on your dataset page, please [open a discussion](https://huggingface.co/docs/hub/repositories-pull-requests-discussions) there, it's the most efficient way to fix it. Tag [`@lhoestq`](https://huggingface.co/lhoestq), [`@polinaeterna`](https://huggingface.co/polinaeterna) or [`@albertvillanova`](https://huggingface.co/albertvillanova) in the discussion to reach the team directly.
+If the dataset viewer is showing an error on your dataset page, please [open a discussion](https://huggingface.co/docs/hub/repositories-pull-requests-discussions) there, it's the most efficient way to fix it. Tag [`@lhoestq`](https://huggingface.co/lhoestq), [`@asoria`](https://huggingface.co/asoria) or [`@albertvillanova`](https://huggingface.co/albertvillanova) in the discussion to reach the team directly.
|
|
d4c4b85f058329e0c44bdc373726036d0905abca
|
Quentin Lhoest
| 2025-03-07T18:03:46 |
Less spawning calls / sec (#3146)
|
diff --git a/services/worker/src/worker/config.py b/services/worker/src/worker/config.py
index c179ab4f..edefcc3f 100644
--- a/services/worker/src/worker/config.py
+++ b/services/worker/src/worker/config.py
@@ -146,2 +146,2 @@ OPT_IN_OUT_URLS_SCAN_COLUMNS_MAX_NUMBER = 10
-OPT_IN_OUT_URLS_SCAN_MAX_CONCURRENT_REQUESTS_NUMBER = 100
-OPT_IN_OUT_URLS_SCAN_MAX_REQUESTS_PER_SECOND = 50
+OPT_IN_OUT_URLS_SCAN_MAX_CONCURRENT_REQUESTS_NUMBER = 50
+OPT_IN_OUT_URLS_SCAN_MAX_REQUESTS_PER_SECOND = 25
|
|
34a287968667ae2b56f574ae5ec580001bb38b32
|
ccl-core
| 2025-03-03T17:05:40 |
Include more precise field's data types. (#3143)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index 5c1026df..2c46cd32 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -47,7 +47,7 @@ HF_TO_CROISSANT_VALUE_TYPE = {
- "float16": "sc:Float",
- "float32": "sc:Float",
- "float64": "sc:Float",
- "int8": "sc:Integer",
- "int16": "sc:Integer",
- "int32": "sc:Integer",
- "int64": "sc:Integer",
+ "float16": "cr:Float16",
+ "float32": "cr:Float32",
+ "float64": "cr:Float64",
+ "int8": "cr:Int8",
+ "int16": "cr:Int16",
+ "int32": "cr:Int32",
+ "int64": "cr:Int64",
diff --git a/libs/libcommon/tests/test_croissant_utils.py b/libs/libcommon/tests/test_croissant_utils.py
index 13e2423a..bbcdbe31 100644
--- a/libs/libcommon/tests/test_croissant_utils.py
+++ b/libs/libcommon/tests/test_croissant_utils.py
@@ -41 +41 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
- "dataType": "sc:Integer",
+ "dataType": "cr:Int32",
@@ -50 +50 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
- "dataType": "sc:Integer",
+ "dataType": "cr:Int32",
@@ -61 +61 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
- "dataType": "sc:Integer",
+ "dataType": "cr:Int32",
|
|
60a1954dd4d2ff0c45124eda81eae16d11c9d62b
|
ccl-core
| 2025-03-03T15:13:24 |
Use 1.1 specs syntax "isArray" and "arrayShape". (#3141)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index ecb1640c..5c1026df 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -128,4 +128,2 @@ def feature_to_croissant_field(
- elif isinstance(feature, (Sequence, LargeList, list)):
- if isinstance(feature, (Sequence, LargeList)):
- sub_feature = feature.feature
- else:
+ elif isinstance(feature, (LargeList, list, Sequence)):
+ if isinstance(feature, list):
@@ -134,0 +133,6 @@ def feature_to_croissant_field(
+ else:
+ sub_feature = feature.feature
+ array_shape = ["-1"]
+ while isinstance(sub_feature, Sequence):
+ sub_feature = sub_feature.feature
+ array_shape.append("-1")
@@ -137 +141,2 @@ def feature_to_croissant_field(
- field["repeated"] = True
+ field["isArray"] = True
+ field["arrayShape"] = ",".join(array_shape)
diff --git a/libs/libcommon/tests/test_croissant_utils.py b/libs/libcommon/tests/test_croissant_utils.py
index cd9dc277..13e2423a 100644
--- a/libs/libcommon/tests/test_croissant_utils.py
+++ b/libs/libcommon/tests/test_croissant_utils.py
@@ -52 +52,2 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
- "repeated": True,
+ "isArray": True,
+ "arrayShape": "-1",
@@ -62 +63,2 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
- "repeated": True,
+ "isArray": True,
+ "arrayShape": "-1",
diff --git a/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py b/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
index 046bd8ae..7b8b2b1e 100644
--- a/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
+++ b/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
@@ -164,0 +165 @@ def get_croissant_crumbs_from_dataset_infos(
+ "arrayShape": "cr:arrayShape",
@@ -180,0 +182 @@ def get_croissant_crumbs_from_dataset_infos(
+ "isArray": "cr:isArray",
diff --git a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
index 8fbb2382..90bc1b07 100644
--- a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
+++ b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
@@ -60,0 +61 @@ v1_context = {
+ "arrayShape": "cr:arrayShape",
@@ -76,0 +78 @@ v1_context = {
+ "isArray": "cr:isArray",
|
|
bfb7fd806ad191869d16c57c77837ed9b573309e
|
ccl-core
| 2025-03-03T13:42:07 |
Croissant: Update conformsTo to use croissant 1.1 (#3142)
|
diff --git a/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py b/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
index 36fce6e3..046bd8ae 100644
--- a/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
+++ b/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
@@ -203 +203 @@ def get_croissant_crumbs_from_dataset_infos(
- "conformsTo": "http://mlcommons.org/croissant/1.0",
+ "conformsTo": "http://mlcommons.org/croissant/1.1",
diff --git a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
index 0e80c29a..8fbb2382 100644
--- a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
+++ b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
@@ -109,0 +110 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
+ assert croissant_crumbs["conformsTo"] == "http://mlcommons.org/croissant/1.1"
|
|
d3f685499ec0f49eebd29138aea9018d604d49e6
|
Quentin Lhoest
| 2025-02-24T14:44:18 |
Update openapi large_list (#3139)
|
diff --git a/docs/source/openapi.json b/docs/source/openapi.json
index 5844fda0..214b3204 100644
--- a/docs/source/openapi.json
+++ b/docs/source/openapi.json
@@ -377,0 +378,3 @@
+ {
+ "$ref": "#/components/schemas/LargeListFeature"
+ },
@@ -519,0 +523,13 @@
+ "LargeListFeature": {
+ "type": "object",
+ "required": ["_type", "feature"],
+ "properties": {
+ "_type": {
+ "type": "string",
+ "enum": ["LargeList"]
+ },
+ "feature": {
+ "$ref": "#/components/schemas/Feature"
+ }
+ }
+ },
|
|
ddacb3bb786e2a23e0112413f9e041d9c6f1bece
|
Quentin Lhoest
| 2025-02-24T13:56:06 |
Support large list (#3138)
|
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index e610e238..d3b9de6d 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -627 +627 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -630,3 +630,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -638,2 +640,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -657 +659 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -664,2 +666,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -669,6 +670,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1232 +1228 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.1"
@@ -1237,2 +1233,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.1-py3-none-any.whl", hash = "sha256:aa6b9a3ffdae939b72c464dbb0d7f99f56e649b55c3d52406f49e0a5a620c0a7"},
+ {file = "huggingface_hub-0.28.1.tar.gz", hash = "sha256:893471090c98e3b6efbdfdacafe4052b20b84d59866fb6f54c33d9af18c303ae"},
@@ -1252 +1248 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1254 +1250 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1257,2 +1253,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1261 +1257 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1456 +1452 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index 625f3afb..db95dfa1 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -563,3 +563,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -571,2 +573,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -590 +592 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -597,2 +599,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -602,6 +603,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1083 +1079 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -2780 +2775,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index b325b94c..b6412718 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -560 +560 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -563,3 +563,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -571,2 +573,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -590 +592 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -597,2 +599,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -602,6 +603,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1083 +1079 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -2780 +2775,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index e039dbd6..a5427cbb 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -567 +567 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -570,3 +570,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -578,2 +580,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -597 +599 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -604,2 +606,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -609,6 +610,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1151 +1147 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -1329,10 +1324,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2636 +2621,0 @@ files = [
- {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2644 +2628,0 @@ files = [
- {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2647,7 +2630,0 @@ files = [
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
- {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
- {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
- {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2670 +2646,0 @@ files = [
- {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2678 +2653,0 @@ files = [
- {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -2910 +2884,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index 6fb1d947..476a3da7 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -596 +596 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -599,3 +599,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -607,2 +609,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -626 +628 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -633,2 +635,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -638,6 +639,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1315,10 +1310,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2947 +2932,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3956 +3941 @@ python-versions = "3.9.18"
-content-hash = "62cac1600afd983106bb24e5398bcdfa5b14c88100c79d3a02cdb3073d870133"
+content-hash = "abb859c6c006a394ff4ef14a828ec5492f8d29bd4641a1850d3ece8352cd8441"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index da841872..49105783 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -12 +12 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index 28c7097e..ecb1640c 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -7 +7 @@ from typing import Any, Optional, Union
-from datasets import ClassLabel, Image, Sequence, Value
+from datasets import ClassLabel, Image, LargeList, Sequence, Value
@@ -128,2 +128,2 @@ def feature_to_croissant_field(
- elif isinstance(feature, (Sequence, list)):
- if isinstance(feature, Sequence):
+ elif isinstance(feature, (Sequence, LargeList, list)):
+ if isinstance(feature, (Sequence, LargeList)):
diff --git a/libs/libcommon/src/libcommon/url_preparator.py b/libs/libcommon/src/libcommon/url_preparator.py
index 777af908..3ea8e52f 100644
--- a/libs/libcommon/src/libcommon/url_preparator.py
+++ b/libs/libcommon/src/libcommon/url_preparator.py
@@ -10 +10 @@ from datasets import Audio, Features, Image, Video
-from datasets.features.features import FeatureType, Sequence
+from datasets.features.features import FeatureType, LargeList, Sequence
@@ -59,0 +60,2 @@ def _visit(
+ elif isinstance(feature, LargeList):
+ out = func(LargeList(_visit(feature.feature, func, visit_path + [0])), visit_path)
diff --git a/libs/libcommon/src/libcommon/viewer_utils/features.py b/libs/libcommon/src/libcommon/viewer_utils/features.py
index 7eeeadcf..49a9ae70 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/features.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/features.py
@@ -21,0 +22 @@ from datasets import (
+ LargeList,
@@ -338,0 +340,19 @@ def get_cell_value(
+ fieldType=subFieldType,
+ storage_client=storage_client,
+ json_path=json_path + [idx] if json_path else [idx],
+ )
+ for (idx, subCell) in enumerate(cell)
+ ]
+ elif isinstance(fieldType, LargeList):
+ if not isinstance(cell, list):
+ raise TypeError("list cell must be a list.")
+ subFieldType = fieldType.feature
+ return [
+ get_cell_value(
+ dataset=dataset,
+ revision=revision,
+ config=config,
+ split=split,
+ row_idx=row_idx,
+ cell=subCell,
+ featureName=featureName,
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index 421492dc..bb699d0c 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -577,3 +577,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -585,2 +587,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -604 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -611,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -616,6 +617,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1174 +1170 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -2909 +2904,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index 6f73b900..2af7a464 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -577,3 +577,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -585,2 +587,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -604 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -611,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -616,6 +617,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1193 +1189 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -2960 +2955,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index 730f168b..0deb5b37 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -593 +593 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -596,3 +596,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -604,2 +606,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -623 +625 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -630,2 +632,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -635,6 +636,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1212 +1208 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -1390,10 +1385,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -3064 +3049,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index 87812265..1d218fbf 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -577,3 +577,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -585,2 +587,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -604 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -611,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -616,6 +617,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1252 +1248 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -2729 +2724,0 @@ files = [
- {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2737 +2731,0 @@ files = [
- {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2740,7 +2733,0 @@ files = [
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
- {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
- {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
- {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2763 +2749,0 @@ files = [
- {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2771 +2756,0 @@ files = [
- {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3118 +3102,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index 72fa60b8..696b042c 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -577,3 +577,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -585,2 +587,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -604 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -611,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -616,6 +617,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1222 +1218 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -2774 +2769,0 @@ files = [
- {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2782 +2776,0 @@ files = [
- {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2785,7 +2778,0 @@ files = [
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
- {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"},
- {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
- {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
- {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
- {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2808 +2794,0 @@ files = [
- {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2816 +2801,0 @@ files = [
- {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3048 +3032,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index bd31b62d..1770cb12 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -577,3 +577,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -585,2 +587,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -604 +606 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -611,2 +613,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -616,6 +617,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1193 +1189 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -2960 +2955,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index b6d87988..ef9e71d3 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -882 +882 @@ name = "datasets"
-version = "3.0.3.dev0"
+version = "3.3.2"
@@ -885,3 +885,5 @@ optional = false
-python-versions = ">=3.8.0"
-files = []
-develop = false
+python-versions = ">=3.9.0"
+files = [
+ {file = "datasets-3.3.2-py3-none-any.whl", hash = "sha256:fdaf3d5d70242621210b044e9b9b15a56e908bfc3e9d077bcf5605ac390f70bd"},
+ {file = "datasets-3.3.2.tar.gz", hash = "sha256:20901a97da870fb80b407ccc45f034a7ac99accd07da897ed42f11641bdb8c6e"},
+]
@@ -893,2 +895,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
-huggingface-hub = ">=0.23.0"
+fsspec = {version = ">=2023.1.0,<=2024.12.0", extras = ["http"]}
+huggingface-hub = ">=0.24.0"
@@ -912 +914 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -919,2 +921,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
-tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (>=7.17.12,<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -924,6 +925,0 @@ vision = ["Pillow (>=9.4.0)"]
-[package.source]
-type = "git"
-url = "https://github.com/huggingface/datasets.git"
-reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-resolved_reference = "1946182ab6547e4fca4a2e3814d362b1776412cd"
-
@@ -1653 +1649 @@ cryptography = "^43.0.1"
-datasets = {git = "https://github.com/huggingface/datasets.git", rev = "1946182ab6547e4fca4a2e3814d362b1776412cd", extras = ["audio", "vision"]}
+datasets = {version = "3.3.2", extras = ["audio", "vision"]}
@@ -1915,10 +1910,0 @@ files = [
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
- {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -4433 +4418,0 @@ files = [
- {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/worker/src/worker/job_runners/dataset/modalities.py b/services/worker/src/worker/job_runners/dataset/modalities.py
index cbd853cf..06d89633 100644
--- a/services/worker/src/worker/job_runners/dataset/modalities.py
+++ b/services/worker/src/worker/job_runners/dataset/modalities.py
@@ -7 +7 @@ from http import HTTPStatus
-from datasets import Audio, Features, Image, Sequence, Translation, TranslationVariableLanguages, Value
+from datasets import Audio, Features, Image, LargeList, Sequence, Translation, TranslationVariableLanguages, Value
@@ -68 +68 @@ def detect_features_modalities(features: Features) -> set[DatasetModality]:
- (isinstance(feature, Sequence) and feature.feature == Value("float32"))
+ (isinstance(feature, (LargeList, Sequence)) and feature.feature == Value("float32"))
diff --git a/services/worker/src/worker/job_runners/split/descriptive_statistics.py b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
index d851fe15..95158225 100644
--- a/services/worker/src/worker/job_runners/split/descriptive_statistics.py
+++ b/services/worker/src/worker/job_runners/split/descriptive_statistics.py
@@ -10 +10 @@ import pyarrow.parquet as pq
-from datasets import Features, Sequence
+from datasets import Features, LargeList, Sequence
@@ -70 +70 @@ def is_extension_feature(feature: FeatureType) -> bool:
- elif isinstance(feature, Sequence):
+ elif isinstance(feature, (LargeList, Sequence)):
@@ -208 +208 @@ def compute_descriptive_statistics_response(
- isinstance(dataset_feature, dict) and dataset_feature.get("_type") == "Sequence"
+ isinstance(dataset_feature, dict) and dataset_feature.get("_type") in ("LargeList", "Sequence")
diff --git a/services/worker/src/worker/job_runners/split/duckdb_index.py b/services/worker/src/worker/job_runners/split/duckdb_index.py
index f4a05184..e9685d13 100644
--- a/services/worker/src/worker/job_runners/split/duckdb_index.py
+++ b/services/worker/src/worker/job_runners/split/duckdb_index.py
@@ -199 +199,3 @@ def compute_transformed_data(parquet_directory: Path, features: dict[str, Any])
- if isinstance(feature, list) or (isinstance(feature, dict) and feature.get("_type") == "Sequence"):
+ if isinstance(feature, list) or (
+ isinstance(feature, dict) and feature.get("_type") in ("LargeList", "Sequence")
+ ):
|
|
61a82797c2925253638aa3290d3a09c994452ba8
|
ccl-core
| 2025-02-14T17:44:08 |
Include more value types to the hf to crs mapping (#3136)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index a2eab5c9..28c7097e 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -43,0 +44,2 @@ HF_TO_CROISSANT_VALUE_TYPE = {
+ "date32": "sc:Date",
+ "date64": "sc:Date",
@@ -47,0 +50 @@ HF_TO_CROISSANT_VALUE_TYPE = {
+ "int8": "sc:Integer",
@@ -52,0 +56,7 @@ HF_TO_CROISSANT_VALUE_TYPE = {
+ "time32": "sc:Date",
+ "time64": "sc:Date",
+ "timestamp[ns]": "sc:Date",
+ "uint8": "sc:Integer",
+ "uint16": "sc:Integer",
+ "uint32": "sc:Integer",
+ "uint64": "sc:Integer",
|
|
c598858ef1f579e0c7f89a3333f10e15ba19dd18
|
Sylvain Lesage
| 2025-02-03T15:53:44 |
squash refs/convert/... branch history after each series of commits (#3131)
|
diff --git a/.github/workflows/_unit-tests-python.yml b/.github/workflows/_unit-tests-python.yml
index ef87e955..7bf907f4 100644
--- a/.github/workflows/_unit-tests-python.yml
+++ b/.github/workflows/_unit-tests-python.yml
@@ -62 +62 @@ jobs:
- run: poetry run python -m pytest -s
+ run: poetry run python -m pytest -s -m "not real_dataset and not integration"
diff --git a/.vscode/monorepo.code-workspace b/.vscode/monorepo.code-workspace
index 988d444c..783fee85 100644
--- a/.vscode/monorepo.code-workspace
+++ b/.vscode/monorepo.code-workspace
@@ -60,4 +59,0 @@
- {
- "name": "services/worker",
- "path": "../services/worker"
- },
@@ -66,0 +63,4 @@
+ },
+ {
+ "name": "services/worker",
+ "path": "../services/worker"
diff --git a/e2e/poetry.lock b/e2e/poetry.lock
index b6ed0968..35a109d0 100644
--- a/e2e/poetry.lock
+++ b/e2e/poetry.lock
@@ -387 +387 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -392,2 +392,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -407 +407 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -409 +409 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -412,2 +412,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -416 +416 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1322 +1322 @@ python-versions = "3.9.18"
-content-hash = "f13f5c8a0f9f0fc79f4ebf9dbc4361dcb334bf798f116623ce5a830938e4f083"
+content-hash = "c73c2cfae2459ecfa3635fc45d6ac3546d508855f7a66ef4c02eb5dacc196d82"
diff --git a/e2e/pyproject.toml b/e2e/pyproject.toml
index 2685f47d..80921e75 100644
--- a/e2e/pyproject.toml
+++ b/e2e/pyproject.toml
@@ -14 +14 @@ bandit = "^1.7.4"
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -37,2 +37 @@ module = [
-# ^ huggingface_hub is not typed since version 0.13.0
-ignore_missing_imports = true
+no_implicit_reexport = false
diff --git a/front/admin_ui/poetry.lock b/front/admin_ui/poetry.lock
index 298f3bf9..e610e238 100644
--- a/front/admin_ui/poetry.lock
+++ b/front/admin_ui/poetry.lock
@@ -1459 +1459 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
diff --git a/jobs/cache_maintenance/poetry.lock b/jobs/cache_maintenance/poetry.lock
index f60e5eaf..625f3afb 100644
--- a/jobs/cache_maintenance/poetry.lock
+++ b/jobs/cache_maintenance/poetry.lock
@@ -962 +962 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -967,2 +967,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -982 +982 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -984 +984 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -987,2 +987,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -991 +991 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1086 +1086 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -2779,0 +2780 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/jobs/cache_maintenance/pyproject.toml b/jobs/cache_maintenance/pyproject.toml
index cbda8728..20b52e23 100644
--- a/jobs/cache_maintenance/pyproject.toml
+++ b/jobs/cache_maintenance/pyproject.toml
@@ -36,2 +36 @@ module = [
-# ^ huggingface_hub is not typed since version 0.13.0
-ignore_missing_imports = true
+no_implicit_reexport = false
diff --git a/jobs/mongodb_migration/poetry.lock b/jobs/mongodb_migration/poetry.lock
index 1a2e66cd..b325b94c 100644
--- a/jobs/mongodb_migration/poetry.lock
+++ b/jobs/mongodb_migration/poetry.lock
@@ -962 +962 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -967,2 +967,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -982 +982 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -984 +984 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -987,2 +987,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -991 +991 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1086 +1086 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -2779,0 +2780 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/libs/libapi/poetry.lock b/libs/libapi/poetry.lock
index 695f659f..e039dbd6 100644
--- a/libs/libapi/poetry.lock
+++ b/libs/libapi/poetry.lock
@@ -1030 +1030 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1035,2 +1035,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1050 +1050 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1052 +1052 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1055,2 +1055,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1059 +1059 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1154 +1154 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -1328,0 +1329,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2625,0 +2636 @@ files = [
+ {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2632,0 +2644 @@ files = [
+ {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2634,0 +2647,7 @@ files = [
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
+ {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2650,0 +2670 @@ files = [
+ {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2657,0 +2678 @@ files = [
+ {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -2888,0 +2910 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/libs/libapi/pyproject.toml b/libs/libapi/pyproject.toml
index 750e8077..1e53121d 100644
--- a/libs/libapi/pyproject.toml
+++ b/libs/libapi/pyproject.toml
@@ -37,0 +38,2 @@ strict = true
+# allow calling untyped methods in huggingface_hub (eg: DatasetInfo(...))
+untyped_calls_exclude = "huggingface_hub"
@@ -43 +44,0 @@ module = [
- "huggingface_hub.*",
diff --git a/libs/libcommon/poetry.lock b/libs/libcommon/poetry.lock
index 9f633681..6fb1d947 100644
--- a/libs/libcommon/poetry.lock
+++ b/libs/libcommon/poetry.lock
@@ -1054 +1054 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1059,2 +1059,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1074 +1074 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1076 +1076 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1079,2 +1079,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1083 +1083 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1314,0 +1315,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -2936,0 +2947 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
@@ -3945 +3956 @@ python-versions = "3.9.18"
-content-hash = "4a0c9bceadc181c87fe193aafb9c8811bdb839176236773e84a632f5ece3d8b8"
+content-hash = "62cac1600afd983106bb24e5398bcdfa5b14c88100c79d3a02cdb3073d870133"
diff --git a/libs/libcommon/pyproject.toml b/libs/libcommon/pyproject.toml
index 964c2069..da841872 100644
--- a/libs/libcommon/pyproject.toml
+++ b/libs/libcommon/pyproject.toml
@@ -15 +15 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -63,0 +64,2 @@ strict = true
+# allow calling untyped methods in huggingface_hub (eg: DatasetInfo(...))
+untyped_calls_exclude = "huggingface_hub"
@@ -69 +70,0 @@ module = [
- "huggingface_hub.*",
@@ -80 +80,0 @@ module = [
-# ^ huggingface_hub is not typed since version 0.13.0
@@ -82,0 +83,10 @@ ignore_missing_imports = true
+[[tool.mypy.overrides]]
+module = [
+ "huggingface_hub.*",
+]
+# allow
+# from huggingface_hub.utils import build_hf_headers
+# even if the module does not explicitly exports the method
+# https://github.com/huggingface/huggingface_hub/blob/07896ee75b37da0d1744c9d03472485b985b3213/src/huggingface_hub/utils/__init__.py
+no_implicit_reexport = false
+
diff --git a/libs/libcommon/src/libcommon/operations.py b/libs/libcommon/src/libcommon/operations.py
index 4df7caeb..b44fc45f 100644
--- a/libs/libcommon/src/libcommon/operations.py
+++ b/libs/libcommon/src/libcommon/operations.py
@@ -8,8 +8,4 @@ from typing import Optional, Union
-from huggingface_hub.hf_api import DatasetInfo, HfApi
-from huggingface_hub.utils import (
- HfHubHTTPError,
- RepositoryNotFoundError,
- get_session,
- hf_raise_for_status,
- validate_hf_hub_args,
-)
+from huggingface_hub import DatasetInfo, HfApi, get_session
+from huggingface_hub.errors import HfHubHTTPError, RepositoryNotFoundError
+from huggingface_hub.utils._http import hf_raise_for_status
+from huggingface_hub.utils._validators import validate_hf_hub_args
@@ -66,2 +62,2 @@ class EntityInfo:
-class CustomHfApi(HfApi): # type: ignore
- @validate_hf_hub_args # type: ignore
+class CustomHfApi(HfApi):
+ @validate_hf_hub_args
@@ -123 +119 @@ def get_entity_info(
- return CustomHfApi(endpoint=hf_endpoint).whoisthis( # type: ignore
+ return CustomHfApi(endpoint=hf_endpoint).whoisthis(
diff --git a/libs/libcommon/src/libcommon/orchestrator.py b/libs/libcommon/src/libcommon/orchestrator.py
index b793025d..58f7bea2 100644
--- a/libs/libcommon/src/libcommon/orchestrator.py
+++ b/libs/libcommon/src/libcommon/orchestrator.py
@@ -13,2 +13,2 @@ import pandas as pd
-from huggingface_hub import DatasetCard, HfFileSystem
-from huggingface_hub.utils import build_hf_headers, get_session
+from huggingface_hub import DatasetCard, HfFileSystem, get_session
+from huggingface_hub.utils._headers import build_hf_headers
diff --git a/services/admin/poetry.lock b/services/admin/poetry.lock
index 37b75323..421492dc 100644
--- a/services/admin/poetry.lock
+++ b/services/admin/poetry.lock
@@ -1031 +1031 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1036,2 +1036,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1051 +1051 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1053 +1053 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1056,2 +1056,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1060 +1060 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1177 +1177 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -2908,0 +2909 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/admin/pyproject.toml b/services/admin/pyproject.toml
index 8069f5c5..25ed5fe3 100644
--- a/services/admin/pyproject.toml
+++ b/services/admin/pyproject.toml
@@ -44 +43,0 @@ module = [
- "huggingface_hub.*",
@@ -49,0 +49,6 @@ ignore_missing_imports = true
+[[tool.mypy.overrides]]
+module = [
+ "huggingface_hub.*",
+]
+no_implicit_reexport = false
+
diff --git a/services/api/poetry.lock b/services/api/poetry.lock
index bf532a26..6f73b900 100644
--- a/services/api/poetry.lock
+++ b/services/api/poetry.lock
@@ -1031 +1031 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1036,2 +1036,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1051 +1051 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1053 +1053 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1056,2 +1056,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1060 +1060 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1196 +1196 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -2959,0 +2960 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/api/pyproject.toml b/services/api/pyproject.toml
index a14b8ebd..9c15a548 100644
--- a/services/api/pyproject.toml
+++ b/services/api/pyproject.toml
@@ -46 +45,0 @@ module = [
- "huggingface_hub.*",
diff --git a/services/rows/poetry.lock b/services/rows/poetry.lock
index defad45d..730f168b 100644
--- a/services/rows/poetry.lock
+++ b/services/rows/poetry.lock
@@ -1050 +1050 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1055,2 +1055,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1070 +1070 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1072 +1072 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1075,2 +1075,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1079 +1079 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1215 +1215 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -1389,0 +1390,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -3053,0 +3064 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/rows/pyproject.toml b/services/rows/pyproject.toml
index 86f4c790..34d1e3b0 100644
--- a/services/rows/pyproject.toml
+++ b/services/rows/pyproject.toml
@@ -45 +44,0 @@ module = [
- "huggingface_hub.*",
diff --git a/services/search/poetry.lock b/services/search/poetry.lock
index c3e62c85..87812265 100644
--- a/services/search/poetry.lock
+++ b/services/search/poetry.lock
@@ -1074 +1074 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1079,2 +1079,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1094 +1094 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1096 +1096 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1099,2 +1099,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1103 +1103 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1255 +1255 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -2728,0 +2729 @@ files = [
+ {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2735,0 +2737 @@ files = [
+ {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2737,0 +2740,7 @@ files = [
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
+ {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2753,0 +2763 @@ files = [
+ {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2760,0 +2771 @@ files = [
+ {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3106,0 +3118 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/search/pyproject.toml b/services/search/pyproject.toml
index a619ba1f..8fed9c02 100644
--- a/services/search/pyproject.toml
+++ b/services/search/pyproject.toml
@@ -45 +44,0 @@ module = [
- "huggingface_hub.*",
diff --git a/services/sse-api/poetry.lock b/services/sse-api/poetry.lock
index e6bc23fa..72fa60b8 100644
--- a/services/sse-api/poetry.lock
+++ b/services/sse-api/poetry.lock
@@ -1079 +1079 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1084,2 +1084,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1099 +1099 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1101 +1101 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1104,2 +1104,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1108 +1108 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1225 +1225 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -2773,0 +2774 @@ files = [
+ {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},
@@ -2780,0 +2782 @@ files = [
+ {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},
@@ -2782,0 +2785,7 @@ files = [
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"},
+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
+ {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
+ {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},
@@ -2798,0 +2808 @@ files = [
+ {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},
@@ -2805,0 +2816 @@ files = [
+ {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},
@@ -3036,0 +3048 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/sse-api/pyproject.toml b/services/sse-api/pyproject.toml
index 2b3d1433..51287e89 100644
--- a/services/sse-api/pyproject.toml
+++ b/services/sse-api/pyproject.toml
@@ -49 +48,0 @@ module = [
- "huggingface_hub.*",
diff --git a/services/webhook/poetry.lock b/services/webhook/poetry.lock
index 4ee3707b..bd31b62d 100644
--- a/services/webhook/poetry.lock
+++ b/services/webhook/poetry.lock
@@ -574 +574 @@ name = "datasets"
-version = "2.19.1"
+version = "3.0.3.dev0"
@@ -585,2 +585,2 @@ filelock = "*"
-fsspec = {version = ">=2023.1.0,<=2024.3.1", extras = ["http"]}
-huggingface-hub = ">=0.21.2"
+fsspec = {version = ">=2023.1.0,<=2024.9.0", extras = ["http"]}
+huggingface-hub = ">=0.23.0"
@@ -588 +588 @@ librosa = {version = "*", optional = true, markers = "extra == \"audio\""}
-multiprocess = "*"
+multiprocess = "<0.70.17"
@@ -592,3 +592,2 @@ pandas = "*"
-Pillow = {version = ">=6.2.1", optional = true, markers = "extra == \"vision\""}
-pyarrow = ">=12.0.0"
-pyarrow-hotfix = "*"
+Pillow = {version = ">=9.4.0", optional = true, markers = "extra == \"vision\""}
+pyarrow = ">=15.0.0"
@@ -596 +595 @@ pyyaml = ">=5.1"
-requests = ">=2.19.0"
+requests = ">=2.32.2"
@@ -598 +597,2 @@ soundfile = {version = ">=0.12.1", optional = true, markers = "extra == \"audio\
-tqdm = ">=4.62.1"
+soxr = {version = ">=0.4.0", optional = true, markers = "python_version >= \"3.9\" and extra == \"audio\""}
+tqdm = ">=4.66.3"
@@ -602,2 +602 @@ xxhash = "*"
-apache-beam = ["apache-beam (>=2.26.0)"]
-audio = ["librosa", "soundfile (>=0.12.1)"]
+audio = ["librosa", "soundfile (>=0.12.1)", "soxr (>=0.4.0)"]
@@ -605 +604 @@ benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.
-dev = ["Pillow (>=6.2.1)", "absl-py", "apache-beam (>=2.26.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.6.4)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "transformers", "transformers", "typing-extensions (>=4.6.1)", "zstandard"]
+dev = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "ruff (>=0.3.0)", "s3fs", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch", "torch (>=2.0.0)", "torchdata", "transformers", "transformers (>=4.42.0)", "zstandard"]
@@ -608 +606,0 @@ jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
-metrics-tests = ["Werkzeug (>=1.0.1)", "accelerate", "bert_score (>=0.3.6)", "jiwer", "langdetect", "mauve-text", "nltk", "requests_file (>=1.5.1)", "rouge_score", "sacrebleu", "sacremoses", "scikit-learn", "scipy", "sentencepiece", "seqeval", "six (>=1.15.0,<1.16.0)", "spacy (>=3.0.0)", "texttable (>=1.6.3)", "tldextract", "tldextract (>=3.1.0)", "toml (>=0.10.1)", "typer (<0.5.0)"]
@@ -613 +611,2 @@ tensorflow-gpu = ["tensorflow (>=2.6.0)"]
-tests = ["Pillow (>=6.2.1)", "absl-py", "apache-beam (>=2.26.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.6.4)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "sqlalchemy", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "transformers", "typing-extensions (>=4.6.1)", "zstandard"]
+tests = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.8.0.post1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "librosa", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tensorflow (>=2.16.0)", "tensorflow (>=2.6.0)", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
+tests-numpy2 = ["Pillow (>=9.4.0)", "absl-py", "decorator", "decord (==0.6.0)", "elasticsearch (<8.0.0)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "joblib (<1.3.0)", "joblibspark", "lz4", "moto[server]", "polars[timezone] (>=0.20.0)", "protobuf (<4.0.0)", "py7zr", "pyspark (>=3.4)", "pytest", "pytest-datadir", "pytest-xdist", "rarfile (>=4.0)", "s3fs (>=2021.11.1)", "soundfile (>=0.12.1)", "soundfile (>=0.12.1)", "soxr (>=0.4.0)", "sqlalchemy", "tiktoken", "torch (>=2.0.0)", "torchdata", "transformers (>=4.42.0)", "zstandard"]
@@ -615 +614 @@ torch = ["torch"]
-vision = ["Pillow (>=6.2.1)"]
+vision = ["Pillow (>=9.4.0)"]
@@ -1032 +1031 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1037,2 +1036,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1052 +1051 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1054 +1053 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1057,2 +1056,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1061 +1060 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1197 +1196 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -2359,11 +2357,0 @@ numpy = ">=1.16.6,<2"
-[[package]]
-name = "pyarrow-hotfix"
-version = "0.6"
-description = ""
-optional = false
-python-versions = ">=3.5"
-files = [
- {file = "pyarrow_hotfix-0.6-py3-none-any.whl", hash = "sha256:dcc9ae2d220dff0083be6a9aa8e0cdee5182ad358d4931fce825c545e5c89178"},
- {file = "pyarrow_hotfix-0.6.tar.gz", hash = "sha256:79d3e030f7ff890d408a100ac16d6f00b14d44a502d7897cd9fc3e3a534e9945"},
-]
-
@@ -2971,0 +2960 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/webhook/pyproject.toml b/services/webhook/pyproject.toml
index d16aa23a..6f57bf6e 100644
--- a/services/webhook/pyproject.toml
+++ b/services/webhook/pyproject.toml
@@ -45 +44,0 @@ module = [
- "huggingface_hub.*",
diff --git a/services/worker/poetry.lock b/services/worker/poetry.lock
index ac1eb557..b6d87988 100644
--- a/services/worker/poetry.lock
+++ b/services/worker/poetry.lock
@@ -1399 +1399 @@ name = "huggingface-hub"
-version = "0.25.1"
+version = "0.28.0"
@@ -1404,2 +1404,2 @@ files = [
- {file = "huggingface_hub-0.25.1-py3-none-any.whl", hash = "sha256:a5158ded931b3188f54ea9028097312cb0acd50bffaaa2612014c3c526b44972"},
- {file = "huggingface_hub-0.25.1.tar.gz", hash = "sha256:9ff7cb327343211fbd06e2b149b8f362fd1e389454f3f14c6db75a4999ee20ff"},
+ {file = "huggingface_hub-0.28.0-py3-none-any.whl", hash = "sha256:71cff4e500efe68061d94b7f6d3114e183715088be7a90bf4dd84af83b5f5cdb"},
+ {file = "huggingface_hub-0.28.0.tar.gz", hash = "sha256:c2b18c02a47d4384763caddb4d0ab2a8fc6c16e0800d6de4d55d0a896244aba3"},
@@ -1419 +1419 @@ typing-extensions = ">=3.7.4.3"
-all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+all = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1421 +1421 @@ cli = ["InquirerPy (==0.3.4)"]
-dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.5.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
+dev = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "libcst (==1.4.0)", "mypy (==1.5.1)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "ruff (>=0.9.0)", "soundfile", "types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "typing-extensions (>=4.8.0)", "urllib3 (<2.0)"]
@@ -1424,2 +1424,2 @@ hf-transfer = ["hf-transfer (>=0.1.4)"]
-inference = ["aiohttp", "minijinja (>=1.0)"]
-quality = ["mypy (==1.5.1)", "ruff (>=0.5.0)"]
+inference = ["aiohttp"]
+quality = ["libcst (==1.4.0)", "mypy (==1.5.1)", "ruff (>=0.9.0)"]
@@ -1428 +1428 @@ tensorflow-testing = ["keras (<3.0)", "tensorflow"]
-testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio", "jedi", "minijinja (>=1.0)", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
+testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "aiohttp", "fastapi", "gradio (>=4.0.0)", "jedi", "numpy", "pytest (>=8.1.1,<8.2.2)", "pytest-asyncio", "pytest-cov", "pytest-env", "pytest-mock", "pytest-rerunfailures", "pytest-vcr", "pytest-xdist", "soundfile", "urllib3 (<2.0)"]
@@ -1656 +1656 @@ fsspec = {version = "2024.3.1", extras = ["s3"]}
-huggingface-hub = {version = "^0.25.1", extras = ["hf-transfer"]}
+huggingface-hub = {version = "^0.28.0", extras = ["hf-transfer"]}
@@ -1914,0 +1915,10 @@ files = [
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:f698de3fd0c4e6972b92290a45bd9b1536bffe8c6759c62471efaa8acb4c37bc"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aa57bd9cf8ae831a362185ee444e15a93ecb2e344c8e52e4d721ea3ab6ef1823"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffcc3f7c66b5f5b7931a5aa68fc9cecc51e685ef90282f4a82f0f5e9b704ad11"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47d4f1c5f80fc62fdd7777d0d40a2e9dda0a05883ab11374334f6c4de38adffd"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1f67c7038d560d92149c060157d623c542173016c4babc0c1913cca0564b9939"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:9aad3c1755095ce347e26488214ef77e0485a3c34a50c5a5e2471dff60b9dd9c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:14ff806850827afd6b07a5f32bd917fb7f45b046ba40c57abdb636674a8b559c"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8f9293864fe09b8149f0cc42ce56e3f0e54de883a9de90cd427f191c346eb2e1"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win32.whl", hash = "sha256:715d3562f79d540f251b99ebd6d8baa547118974341db04f5ad06d5ea3eb8007"},
+ {file = "MarkupSafe-2.1.3-cp312-cp312-win_amd64.whl", hash = "sha256:1b8dd8c3fd14349433c79fa8abeb573a55fc0fdd769133baac1f5e07abf54aeb"},
@@ -4422,0 +4433 @@ files = [
+ {file = "soundfile-0.12.1-py2.py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:2dc3685bed7187c072a46ab4ffddd38cef7de9ae5eb05c03df2ad569cf4dacbc"},
diff --git a/services/worker/pyproject.toml b/services/worker/pyproject.toml
index e5c32077..7055b2af 100644
--- a/services/worker/pyproject.toml
+++ b/services/worker/pyproject.toml
@@ -54,0 +55 @@ markers = [
+ "integration: tests that require external services",
@@ -59,0 +61,2 @@ strict = true
+# allow calling untyped methods in huggingface_hub (eg: DatasetInfo(...))
+untyped_calls_exclude = "huggingface_hub"
@@ -65 +67,0 @@ module = [
- "huggingface_hub.*",
@@ -75,0 +78,6 @@ ignore_missing_imports = true
+[[tool.mypy.overrides]]
+module = [
+ "huggingface_hub.*",
+]
+no_implicit_reexport = false
+
diff --git a/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py b/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
index d6f3e0e8..2e020640 100644
--- a/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
+++ b/services/worker/src/worker/job_runners/_job_runner_with_datasets_cache.py
@@ -42 +42 @@ class JobRunnerWithDatasetsCache(JobRunnerWithCache):
- huggingface_hub.constants.HF_HUB_CACHE = cache_subdirectory / "hub"
+ huggingface_hub.constants.HF_HUB_CACHE = str(cache_subdirectory / "hub")
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index 58ad5438..2dbeeec0 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -54 +54 @@ from huggingface_hub.errors import HfHubHTTPError, RepositoryNotFoundError
-from huggingface_hub.hf_api import CommitInfo, DatasetInfo, HfApi, RepoFile
+from huggingface_hub.hf_api import CommitInfo, DatasetInfo, HfApi, RepoFile, RepoSibling
@@ -108,3 +108 @@ def http_backoff_with_timeout(method: HTTP_METHOD_T, url: str, **kwargs: Any) ->
-def repo_file_rfilename_sort_key(repo_file: RepoFile) -> str:
- if not isinstance(repo_file.rfilename, str): # check type for mypy
- raise ValueError(f"Expected a string for repo_file.rfilename, but got a '{type(repo_file.rfilename)}'.")
+def repo_file_rfilename_sort_key(repo_file: RepoSibling) -> str:
@@ -181 +179 @@ def create_parquet_file_item(
- repo_file: RepoFile,
+ repo_file: RepoSibling,
@@ -238 +236 @@ def _is_too_big_from_hub(
- dataset_size: int = sum(sibling.size for sibling in dataset_info.siblings if sibling.size is not None)
+ dataset_size: int = sum(sibling.size for sibling in (dataset_info.siblings or []) if sibling.size is not None)
@@ -1150 +1148,4 @@ def get_delete_operations(
- parquet_operations: list[CommitOperationAdd], all_repo_files: set[str], config_names: set[str], config: str
+ parquet_operations: Union[list[CommitOperationAdd], list[CommitOperationCopy]],
+ all_repo_files: set[str],
+ config_names: set[str],
+ config: str,
@@ -1182 +1183 @@ def commit_parquet_conversion(
- parquet_operations: list[CommitOperation],
+ parquet_operations: Union[list[CommitOperationAdd], list[CommitOperationCopy]],
@@ -1185 +1186 @@ def commit_parquet_conversion(
-) -> list[CommitInfo]:
+) -> None:
@@ -1187 +1188 @@ def commit_parquet_conversion(
- Creates one or several commits in the given dataset repo, deleting & uploading files as needed.
+ Creates one or several commits in the given dataset repo, deleting & uploading files as needed, and finally squashing the history to save space.
@@ -1202 +1203 @@ def commit_parquet_conversion(
- parquet_operations (`list[huggingface_hub.hf_api.CommitOperation]`):
+ parquet_operations (`Union[list[CommitOperationAdd], list[CommitOperationCopy]]`):
@@ -1220,5 +1220,0 @@ def commit_parquet_conversion(
-
- Returns:
- `list[huggingface_hub.CommitInfo]`:
- List of [`CommitInfo`] containing information about the newly created commit (commit hash, commit
- url, pr url, commit message,...).
@@ -1227 +1223 @@ def commit_parquet_conversion(
- all_repo_files: set[str] = {f.rfilename for f in target_dataset_info.siblings}
+ all_repo_files: set[str] = {f.rfilename for f in (target_dataset_info.siblings or [])}
@@ -1231 +1227 @@ def commit_parquet_conversion(
- operations = delete_operations + parquet_operations
+ operations: list[CommitOperation] = list(delete_operations + parquet_operations)
@@ -1233 +1229 @@ def commit_parquet_conversion(
- return create_commits(
+ create_commits(
@@ -1240,0 +1237,21 @@ def commit_parquet_conversion(
+ # squash the history to save space
+ retry_super_squash_history = retry(on=[HfHubHTTPError], sleeps=HF_HUB_HTTP_ERROR_RETRY_SLEEPS)(
+ committer_hf_api.super_squash_history
+ )
+ try:
+ retry_super_squash_history(
+ repo_id=dataset,
+ repo_type=DATASET_TYPE,
+ commit_message=commit_message,
+ branch=target_revision,
+ )
+ except RuntimeError as e:
+ if e.__cause__ and isinstance(e.__cause__, HfHubHTTPError):
+ raise CreateCommitError(
+ message=(
+ f"Could not squash the history of the commits (after {len(HF_HUB_HTTP_ERROR_RETRY_SLEEPS)}"
+ f" attempts)."
+ ),
+ cause=e.__cause__,
+ ) from e.__cause__
+ raise e
@@ -1358,0 +1376 @@ def compute_config_parquet_and_info_response(
+ parquet_operations: Union[list[CommitOperationAdd], list[CommitOperationCopy]] = []
@@ -1468 +1486 @@ def compute_config_parquet_and_info_response(
- for repo_file in target_dataset_info.siblings
+ for repo_file in (target_dataset_info.siblings or [])
diff --git a/services/worker/src/worker/job_runners/dataset/filetypes.py b/services/worker/src/worker/job_runners/dataset/filetypes.py
index 0edd9d85..f3c4a353 100644
--- a/services/worker/src/worker/job_runners/dataset/filetypes.py
+++ b/services/worker/src/worker/job_runners/dataset/filetypes.py
@@ -97 +97 @@ def compute_filetypes_response(
- filetypes = get_filetypes(info.siblings)
+ filetypes = get_filetypes(info.siblings or [])
@@ -103 +103 @@ def compute_filetypes_response(
- for sibling in info.siblings
+ for sibling in (info.siblings or [])
diff --git a/services/worker/src/worker/job_runners/split/duckdb_index.py b/services/worker/src/worker/job_runners/split/duckdb_index.py
index d09af424..f4a05184 100644
--- a/services/worker/src/worker/job_runners/split/duckdb_index.py
+++ b/services/worker/src/worker/job_runners/split/duckdb_index.py
@@ -133 +133 @@ def get_indexable_columns(features: Features) -> list[str]:
-def get_monolingual_stemmer(card_data: DatasetCardData) -> str:
+def get_monolingual_stemmer(card_data: Optional[DatasetCardData]) -> str:
@@ -391 +391 @@ def compute_split_duckdb_index_response(
- all_repo_files: set[str] = {f.rfilename for f in target_dataset_info.siblings}
+ all_repo_files: set[str] = {f.rfilename for f in (target_dataset_info.siblings or [])}
@@ -427,0 +428,22 @@ def compute_split_duckdb_index_response(
+ # squash the history to save space
+ retry_super_squash_history = retry(on=[HfHubHTTPError], sleeps=HF_HUB_HTTP_ERROR_RETRY_SLEEPS)(
+ committer_hf_api.super_squash_history
+ )
+ try:
+ retry_super_squash_history(
+ repo_id=dataset,
+ repo_type=DATASET_TYPE,
+ commit_message=commit_message,
+ branch=target_revision,
+ )
+ except RuntimeError as e:
+ if e.__cause__ and isinstance(e.__cause__, HfHubHTTPError):
+ raise CreateCommitError(
+ message=(
+ f"Could not squash the history of the commits (after {len(HF_HUB_HTTP_ERROR_RETRY_SLEEPS)}"
+ f" attempts)."
+ ),
+ cause=e.__cause__,
+ ) from e.__cause__
+ raise e
+
@@ -439 +461 @@ def compute_split_duckdb_index_response(
- repo_file for repo_file in target_dataset_info.siblings if repo_file.rfilename == index_file_location
+ repo_file for repo_file in (target_dataset_info.siblings or []) if repo_file.rfilename == index_file_location
diff --git a/services/worker/src/worker/utils.py b/services/worker/src/worker/utils.py
index 3ca0a5b3..0e528ea2 100644
--- a/services/worker/src/worker/utils.py
+++ b/services/worker/src/worker/utils.py
@@ -159 +159,2 @@ def hf_hub_open_file(
- return fs.open(file_url, revision=revision)
+ file: HfFileSystemFile = fs.open(file_url, revision=revision)
+ return file
@@ -218 +219 @@ def check_split_exists(dataset: str, config: str, split: str) -> None:
- "Previous step 'config-split-names' did not return" " the expected content.",
+ "Previous step 'config-split-names' did not return the expected content.",
diff --git a/services/worker/tests/job_runners/config/test_parquet_and_info.py b/services/worker/tests/job_runners/config/test_parquet_and_info.py
index 6c348f17..98a40fa0 100644
--- a/services/worker/tests/job_runners/config/test_parquet_and_info.py
+++ b/services/worker/tests/job_runners/config/test_parquet_and_info.py
@@ -26 +26 @@ from datasets.utils.py_utils import asdict
-from huggingface_hub.hf_api import CommitOperationAdd, HfApi
+from huggingface_hub.hf_api import CommitOperation, CommitOperationAdd, HfApi
@@ -403 +403 @@ def test_create_commits(
- operations: list[CommitOperationAdd] = [
+ operations: list[CommitOperation] = [
diff --git a/services/worker/tests/job_runners/dataset/test_compatible_libraries.py b/services/worker/tests/job_runners/dataset/test_compatible_libraries.py
index b8ab18f5..49028536 100644
--- a/services/worker/tests/job_runners/dataset/test_compatible_libraries.py
+++ b/services/worker/tests/job_runners/dataset/test_compatible_libraries.py
@@ -513,0 +514 @@ def test_simplify_data_files_patterns(
[email protected]_dataset
@@ -555,0 +557 @@ def test_get_builder_configs_with_simplified_data_files(
[email protected]_dataset
diff --git a/services/worker/tests/job_runners/test__job_runner_with_datasets_cache.py b/services/worker/tests/job_runners/test__job_runner_with_datasets_cache.py
index f660e32d..2c3d6cf8 100644
--- a/services/worker/tests/job_runners/test__job_runner_with_datasets_cache.py
+++ b/services/worker/tests/job_runners/test__job_runner_with_datasets_cache.py
@@ -79 +79 @@ def test_set_datasets_cache(app_config: AppConfig, get_job_runner: GetJobRunner)
- assert huggingface_hub.constants.HF_HUB_CACHE.is_relative_to(dummy_path)
+ assert Path(huggingface_hub.constants.HF_HUB_CACHE).is_relative_to(dummy_path)
@@ -108 +108 @@ def assert_datasets_cache_path(path: Optional[Path], exists: bool) -> None:
- assert huggingface_hub.constants.HF_HUB_CACHE == hub_cache_path
+ assert huggingface_hub.constants.HF_HUB_CACHE == str(hub_cache_path)
|
|
b175525e69dbffd267a94483e7e127ee4aad2604
|
Sylvain Lesage
| 2025-01-23T21:56:20 |
remove old doc, since we don't install beam anymore (#3130)
|
diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md
index 561c0d9e..c5aacd8c 100644
--- a/DEVELOPER_GUIDE.md
+++ b/DEVELOPER_GUIDE.md
@@ -145,10 +144,0 @@ [email protected] env use 3.9.18
-Avoid an issue with Apache beam (https://github.com/python-poetry/poetry/issues/4888#issuecomment-1208408509):
-
-```bash
-poetry config experimental.new-installer false
-```
-or
-```bash
[email protected] config experimental.new-installer false
-```
-
|
|
23efc549369fe09f3360a6732dee323cc65a40fd
|
Sylvain Lesage
| 2025-01-17T11:52:46 |
Remove outdated comment (#3129)
|
diff --git a/libs/libcommon/src/libcommon/orchestrator.py b/libs/libcommon/src/libcommon/orchestrator.py
index b5fef81d..b793025d 100644
--- a/libs/libcommon/src/libcommon/orchestrator.py
+++ b/libs/libcommon/src/libcommon/orchestrator.py
@@ -1050,2 +1049,0 @@ def smart_set_revision(
- /!\ This logic is WIP and should only be used on a subset of datasets for now.
-
|
|
0f134615843a1d2a70d1badd066be2f2e22f5fe5
|
Quentin Lhoest
| 2025-01-16T18:25:33 |
ignore h5 files (#3127)
|
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index f33f2379..58ad5438 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -29,0 +30 @@ from datasets.download import StreamingDownloadManager
+from datasets.packaged_modules.imagefolder.imagefolder import ImageFolder as ImageFolderBuilder
@@ -98,0 +100,2 @@ T = TypeVar("T")
+ImageFolderBuilder.EXTENSIONS = list(set(ImageFolderBuilder.EXTENSIONS) - {".h5", ".hdf"}) # fix for datasets <= 3.2.0
+
|
|
e8ff010f2d10d470ef402a5d8f0ae0a57026066c
|
Rui Duarte
| 2025-01-16T16:27:45 |
chore: update markdown formatting inside <Tip> (#3126)
|
diff --git a/docs/source/postgresql.md b/docs/source/postgresql.md
index b79fe287..bbb36cdf 100644
--- a/docs/source/postgresql.md
+++ b/docs/source/postgresql.md
@@ -48 +47,0 @@ select * from squad limit 10;
-<Tip>
@@ -50 +48,0 @@ Full documentation for the `ai.load_dataset` function can be found [here](https:
-</Tip>
|
|
e50cb895c7e1eda443b8b402f93b065096e8d1b3
|
Parag Ekbote
| 2025-01-16T13:55:27 |
Fix Warnings in Docker Compose (#3120)
|
diff --git a/Makefile b/Makefile
index bfa50dec..39325fd7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,0 +11,2 @@ export PORT_REVERSE_PROXY := 8100
+export API_HF_JWT_PUBLIC_KEY_URL := https://hub-ci.huggingface.co/api/keys/jwt
+export API_HF_JWT_ADDITIONAL_PUBLIC_KEYS :=
diff --git a/e2e/Makefile b/e2e/Makefile
index 655ec0b7..a4f2c0a3 100644
--- a/e2e/Makefile
+++ b/e2e/Makefile
@@ -5,0 +6 @@ export API_HF_JWT_PUBLIC_KEY_URL := https://hub-ci.huggingface.co/api/keys/jwt
+export API_HF_JWT_ADDITIONAL_PUBLIC_KEYS :=
|
|
57112049e029f156a87e7b3e40882ed6c57f7701
|
Quentin Lhoest
| 2025-01-06T17:41:27 |
fix rows schema mismatch (#3125)
|
diff --git a/libs/libcommon/src/libcommon/parquet_utils.py b/libs/libcommon/src/libcommon/parquet_utils.py
index 03a47b25..be32482b 100644
--- a/libs/libcommon/src/libcommon/parquet_utils.py
+++ b/libs/libcommon/src/libcommon/parquet_utils.py
@@ -150 +150 @@ class RowGroupReader:
- if not set(columns) <= set(self.parquet_file.schema_arrow.names):
+ if not set(self.parquet_file.schema_arrow.names) <= set(columns):
|
|
30ae84d4682f87e1dc1e0a4e7bad6126aa7d6241
|
Quentin Lhoest
| 2025-01-06T17:22:27 |
Fix missing parquet columns (#3124)
|
diff --git a/libs/libcommon/src/libcommon/parquet_utils.py b/libs/libcommon/src/libcommon/parquet_utils.py
index 6236b7a8..03a47b25 100644
--- a/libs/libcommon/src/libcommon/parquet_utils.py
+++ b/libs/libcommon/src/libcommon/parquet_utils.py
@@ -15,0 +16 @@ from datasets.features.features import FeatureType
+from datasets.table import cast_table_to_schema
@@ -149 +150,7 @@ class RowGroupReader:
- return self.parquet_file.read_row_group(i=self.group_id, columns=columns)
+ if not set(columns) <= set(self.parquet_file.schema_arrow.names):
+ raise SchemaMismatchError(
+ f"Parquet files have different columns: {sorted(columns)} and {sorted(self.parquet_file.schema_arrow.names)}"
+ )
+ pa_table = self.parquet_file.read_row_group(i=self.group_id, columns=columns)
+ # cast_table_to_schema adds null values to missing columns
+ return cast_table_to_schema(pa_table, self.features.arrow_schema)
@@ -160 +167 @@ class RowGroupReader:
- return pa_table, truncated_columns
+ return cast_table_to_schema(pa_table, self.features.arrow_schema), truncated_columns
@@ -281 +288 @@ class ParquetIndexWithMetadata:
- return parquet_files[0].read(), []
+ return cast_table_to_schema(parquet_files[0].read(), self.features.arrow_schema), []
@@ -413 +420 @@ class ParquetIndexWithMetadata:
- return parquet_files[0].read()
+ return cast_table_to_schema(parquet_files[0].read(), self.features.arrow_schema)
diff --git a/services/rows/src/rows/routes/rows.py b/services/rows/src/rows/routes/rows.py
index f1e6768c..cf73f8fa 100644
--- a/services/rows/src/rows/routes/rows.py
+++ b/services/rows/src/rows/routes/rows.py
@@ -7,2 +6,0 @@ from typing import Literal, Optional, Union
-from datasets import Features
-from datasets.table import cast_table_to_features
@@ -106,4 +103,0 @@ def create_rows_endpoint(
- features = Features(
- {col: rows_index.parquet_index.features[col] for col in pa_table.column_names}
- )
- pa_table = cast_table_to_features(pa_table, features)
diff --git a/services/worker/src/worker/job_runners/split/first_rows.py b/services/worker/src/worker/job_runners/split/first_rows.py
index d6bf430d..c15a7a84 100644
--- a/services/worker/src/worker/job_runners/split/first_rows.py
+++ b/services/worker/src/worker/job_runners/split/first_rows.py
@@ -10 +9,0 @@ from datasets import IterableDataset, get_dataset_config_info, load_dataset
-from datasets.table import cast_table_to_features
@@ -107 +105,0 @@ def compute_first_rows_from_parquet_response(
- pa_table = cast_table_to_features(pa_table, rows_index.parquet_index.features)
|
|
0d342b861c2a98f68839b8d70aaad70bff1a0c59
|
Andrea Francis Soria Jimenez
| 2024-12-19T21:04:04 |
doc: Update inaccessible datasets (#3123)
|
diff --git a/docs/source/analyze_data.md b/docs/source/analyze_data.md
index aed1b866..8d26f807 100644
--- a/docs/source/analyze_data.md
+++ b/docs/source/analyze_data.md
@@ -11 +11 @@ To demonstrate, this guide will show you an end-to-end example of how to retriev
-The [Hub](https://huggingface.co/datasets) is home to more than 100,000 datasets across a wide variety of tasks, sizes, and languages. For this example, you'll use the [`codeparrot/codecomplex`](https://huggingface.co/datasets/codeparrot/codecomplex) dataset, but feel free to explore and find another dataset that interests you! The dataset contains Java code from programming competitions, and the time complexity of the code is labeled by a group of algorithm experts.
+The [Hub](https://huggingface.co/datasets) is home to more than 200,000 datasets across a wide variety of tasks, sizes, and languages. For this example, you'll use the [`codeparrot/codecomplex`](https://huggingface.co/datasets/codeparrot/codecomplex) dataset, but feel free to explore and find another dataset that interests you! The dataset contains Java code from programming competitions, and the time complexity of the code is labeled by a group of algorithm experts.
@@ -17 +17,3 @@ Use the `/parquet` endpoint to convert the dataset to a Parquet file and return
-```py
+<inferencesnippet>
+<python>
+```python
@@ -24,2 +26,30 @@ data = query()
-print(data)
-{'parquet_files':
+```
+</python>
+<js>
+```js
+import fetch from "node-fetch";
+async function query(data) {
+ const response = await fetch(
+ "https://datasets-server.huggingface.co/parquet?dataset=codeparrot/codecomplex",
+ {
+ method: "GET"
+ }
+ );
+ const result = await response.json();
+ return result;
+}
+query().then((response) => {
+ console.log(JSON.stringify(response));
+});
+```
+</js>
+<curl>
+```curl
+curl https://datasets-server.huggingface.co/parquet?dataset=codeparrot/codecomplex \
+ -X GET
+```
+</curl>
+</inferencesnippet>
+
+```json
+{"parquet_files":
@@ -27 +57 @@ print(data)
- {'dataset': 'codeparrot/codecomplex', 'config': 'default', 'split': 'train', 'url': 'https://huggingface.co/datasets/codeparrot/codecomplex/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet', 'filename': '0000.parquet', 'size': 4115908}
+ {"dataset": "codeparrot/codecomplex", "config": "default", "split": "train", "url": "https://huggingface.co/datasets/codeparrot/codecomplex/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet", "filename": "0000.parquet", "size": 4115908}
@@ -29 +59 @@ print(data)
- 'pending': [], 'failed': [], 'partial: false
+ "pending": [], "failed": [], "partial": false
diff --git a/docs/source/clickhouse.md b/docs/source/clickhouse.md
index c1320ebe..90cd86fb 100644
--- a/docs/source/clickhouse.md
+++ b/docs/source/clickhouse.md
@@ -100 +100 @@ SET max_http_get_redirects = 1, enable_url_encoding = 0
-Let's create a function to return a list of Parquet files from the [`barilan/blog_authorship_corpus`](https://huggingface.co/datasets/barilan/blog_authorship_corpus):
+Let's create a function to return a list of Parquet files from the [`tasksource/blog_authorship_corpus`](https://huggingface.co/datasets/tasksource/blog_authorship_corpus):
@@ -108 +108 @@ CREATE OR REPLACE FUNCTION hugging_paths AS dataset -> (
-SELECT hugging_paths('barilan/blog_authorship_corpus') AS paths
+SELECT hugging_paths('tasksource/blog_authorship_corpus') AS paths
@@ -110 +110 @@ SELECT hugging_paths('barilan/blog_authorship_corpus') AS paths
-['https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0000.parquet','https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0001.parquet','https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/validation/0000.parquet']
+['https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet','https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0001.parquet']
@@ -121 +121 @@ CREATE OR REPLACE FUNCTION hf AS dataset -> (
-SELECT hf('barilan/blog_authorship_corpus') AS pattern
+SELECT hf('tasksource/blog_authorship_corpus') AS pattern
@@ -123 +123 @@ SELECT hf('barilan/blog_authorship_corpus') AS pattern
-['https://huggingface.co/datasets/{blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/barilan/blog_authorship_corpus/blog_authorship_corpus-train-00000-of-00002,barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/blog_authorship_corpus-train-00001-of-00002,barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/blog_authorship_corpus-validation}.parquet']
+https://huggingface.co/datasets/{tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000,tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0001}.parquet
@@ -129,3 +129,3 @@ Now use the `hf` function to query any dataset by passing the dataset name:
-SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length
-FROM url(hf('barilan/blog_authorship_corpus'))
-GROUP BY horoscope
+SELECT sign, count(*), AVG(LENGTH(text)) AS avg_blog_length
+FROM url(hf('tasksource/blog_authorship_corpus'))
+GROUP BY sign
@@ -135,8 +135,9 @@ DESC LIMIT(5)
-┌─────────────┬───────┬────────────────────┐
-│ Aquarius │ 51747 │ 1132.487873693161 │
-├─────────────┼───────┼────────────────────┤
-│ Cancer │ 66944 │ 1111.613109464627 │
-│ Libra │ 63994 │ 1060.3968184517298 │
-│ Sagittarius │ 52753 │ 1055.7120732470191 │
-│ Capricorn │ 52207 │ 1055.4147719654452 │
-└─────────────┴───────┴────────────────────┘
+┌───────────┬────────┬────────────────────┐
+│ sign │ count │ avg_blog_length │
+├───────────┼────────┼────────────────────┤
+│ Aquarius │ 49687 │ 1193.9523819107615 │
+│ Leo │ 53811 │ 1186.0665291483153 │
+│ Cancer │ 65048 │ 1160.8010392325666 │
+│ Gemini │ 51985 │ 1158.4132922958545 │
+│ Vurgi │ 60399 │ 1142.9977648636566 │
+└───────────┴────────┴────────────────────┘
diff --git a/docs/source/cudf.md b/docs/source/cudf.md
index 20f56f8f..1adcdb77 100644
--- a/docs/source/cudf.md
+++ b/docs/source/cudf.md
@@ -11,2 +11,2 @@ df = (
- cudf.read_parquet("https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0000.parquet")
- .groupby('horoscope')['text']
+ cudf.read_parquet("https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet")
+ .groupby('sign')['text']
@@ -28 +28 @@ df = (
- dd.read_parquet("https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/*.parquet")
+ dd.read_parquet("https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/*.parquet")
diff --git a/docs/source/duckdb.md b/docs/source/duckdb.md
index 858d35cf..880a1499 100644
--- a/docs/source/duckdb.md
+++ b/docs/source/duckdb.md
@@ -10 +10 @@ import duckdb
-url = "https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0000.parquet"
+url = "https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet"
@@ -25 +25 @@ con.exec('LOAD httpfs');
-const url = "https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0000.parquet"
+const url = "https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet"
@@ -35 +35 @@ Now you can write and execute your SQL query on the Parquet file:
-con.sql(f"SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM '{url}' GROUP BY horoscope ORDER BY avg_blog_length DESC LIMIT(5)")
+con.sql(f"SELECT sign, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM '{url}' GROUP BY sign ORDER BY avg_blog_length DESC LIMIT(5)")
@@ -37 +37 @@ con.sql(f"SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM
-│ horoscope │ count_star() │ avg_blog_length │
+│ sign │ count_star() │ avg_blog_length │
@@ -40,5 +40,5 @@ con.sql(f"SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM
-│ Aquarius │ 34062 │ 1129.218836239798 │
-│ Cancer │ 41509 │ 1098.366812016671 │
-│ Capricorn │ 33961 │ 1073.2002002296751 │
-│ Libra │ 40302 │ 1072.0718326633914 │
-│ Leo │ 40587 │ 1064.0536871412028 │
+│ Cancer │ 38956 │ 1206.5212034089743 │
+│ Leo │ 35487 │ 1180.0673767858652 │
+│ Aquarius │ 32723 │ 1152.1136815084192 │
+│ Virgo │ 36189 │ 1117.1982094006466 │
+│ Capricorn │ 31825 │ 1102.397360565593 │
@@ -50 +50 @@ con.sql(f"SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM
-con.all(`SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM '${url}' GROUP BY horoscope ORDER BY avg_blog_length DESC LIMIT(5)`, function(err, res) {
+con.all(`SELECT sign, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM '${url}' GROUP BY sign ORDER BY avg_blog_length DESC LIMIT(5)`, function(err, res) {
@@ -65,11 +65,13 @@ To query multiple files - for example, if the dataset is sharded:
-con.sql(f"SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM read_parquet({urls[:2]}) GROUP BY horoscope ORDER BY avg_blog_length DESC LIMIT(5)")
-┌─────────────┬──────────────┬────────────────────┐
-│ horoscope │ count_star() │ avg_blog_length │
-│ varchar │ int64 │ double │
-├─────────────┼──────────────┼────────────────────┤
-│ Aquarius │ 49568 │ 1125.8306770497095 │
-│ Cancer │ 63512 │ 1097.95608703867 │
-│ Libra │ 60304 │ 1060.6110539931017 │
-│ Capricorn │ 49402 │ 1059.5552609206104 │
-│ Sagittarius │ 50431 │ 1057.4589835616982 │
-└─────────────┴──────────────┴────────────────────┘
+urls = ["https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet", "https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0001.parquet"]
+
+con.sql(f"SELECT sign, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM read_parquet({urls}) GROUP BY sign ORDER BY avg_blog_length DESC LIMIT(5)")
+┌──────────┬──────────────┬────────────────────┐
+│ sign │ count_star() │ avg_blog_length │
+│ varchar │ int64 │ double │
+├──────────┼──────────────┼────────────────────┤
+│ Aquarius │ 49687 │ 1191.417211745527 │
+│ Leo │ 53811 │ 1183.8782219248853 │
+│ Cancer │ 65048 │ 1158.9691612347804 │
+│ Gemini │ 51985 │ 1156.0693084543618 │
+│ Virgo │ 60399 │ 1140.9584430205798 │
+└──────────┴──────────────┴────────────────────┘
@@ -80 +82,3 @@ con.sql(f"SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM
-con.all(`SELECT horoscope, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM read_parquet(${JSON.stringify(urls)}) GROUP BY horoscope ORDER BY avg_blog_length DESC LIMIT(5)`, function(err, res) {
+const urls = ["https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet", "https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0001.parquet"];
+
+con.all(`SELECT sign, count(*), AVG(LENGTH(text)) AS avg_blog_length FROM read_parquet(${JSON.stringify(urls)}) GROUP BY sign ORDER BY avg_blog_length DESC LIMIT(5)`, function(err, res) {
diff --git a/docs/source/first_rows.md b/docs/source/first_rows.md
index ffb54aa3..d3381521 100644
--- a/docs/source/first_rows.md
+++ b/docs/source/first_rows.md
@@ -5,2 +4,0 @@ The dataset viewer provides a `/first-rows` endpoint for visualizing the first 1
-
-
@@ -148 +146 @@ In some cases, if even the first few rows generate a response that exceeds 1MB,
-For example, the [`ETDataset/ett`](https://datasets-server.huggingface.co/first-rows?dataset=ETDataset/ett&config=m2&split=test) dataset only returns 10 rows, and the `target` and `feat_dynamic_real` columns are truncated:
+For example, the [`GEM/SciDuet`](https://datasets-server.huggingface.co/first-rows?dataset=GEM/SciDuet&config=default&split=train) dataset only returns 10 rows, and the `paper_abstract`, `paper_content`, `paper_headers`, `slide_content_text` and `target` columns are truncated:
@@ -154,18 +152,22 @@ For example, the [`ETDataset/ett`](https://datasets-server.huggingface.co/first-
- "row_idx": 0,
- "row": {
- "start": "2016-07-01T00:00:00",
- "target": "[38.6619987487793,38.222999572753906,37.34400177001953,37.124000549316406,37.124000549316406,36.9039",
- "feat_static_cat": [0],
- "feat_dynamic_real": "[[41.130001068115234,39.62200164794922,38.86800003051758,35.518001556396484,37.52799987792969,37.611",
- "item_id": "OT"
- },
- "truncated_cells": ["target", "feat_dynamic_real"]
- },
- {
- "row_idx": 1,
- "row": {
- "start": "2016-07-01T00:00:00",
- "target": "[38.6619987487793,38.222999572753906,37.34400177001953,37.124000549316406,37.124000549316406,36.9039",
- "feat_static_cat": [0],
- "feat_dynamic_real": "[[41.130001068115234,39.62200164794922,38.86800003051758,35.518001556396484,37.52799987792969,37.611",
- "item_id": "OT"
+ {
+ "row_idx":8,
+ "row":{
+ "gem_id":"GEM-SciDuet-train-1#paper-954#slide-8",
+ "paper_id":"954",
+ "paper_title":"Incremental Syntactic Language Models for Phrase-based Translation",
+ "paper_abstract":"\"This paper describes a novel technique for incorporating syntactic knowledge into phrasebased machi",
+ "paper_content":"{\"paper_content_id\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29",
+ "paper_headers":"{\"paper_header_number\":[\"1\",\"2\",\"3\",\"3.1\",\"3.3\",\"4\",\"4.1\",\"6\",\"7\"],\"paper_header_content\":[\"Introduc",
+ "slide_id":"GEM-SciDuet-train-1#paper-954#slide-8",
+ "slide_title":"Does an Incremental Syntactic LM Help Translation",
+ "slide_content_text":"\"but will it make my BLEU score go up?\\nMotivation Syntactic LM Decoder Integration Questions?\\nMose",
+ "target":"\"but will it make my BLEU score go up?\\nMotivation Syntactic LM Decoder Integration Questions?\\nMose",
+ "references":[]
+ },
+ "truncated_cells":[
+ "paper_abstract",
+ "paper_content",
+ "paper_headers",
+ "slide_content_text",
+ "target"
+ ]
@@ -172,0 +175,25 @@ For example, the [`ETDataset/ett`](https://datasets-server.huggingface.co/first-
+ {
+ "row_idx":9,
+ "row":{
+ "gem_id":"GEM-SciDuet-train-1#paper-954#slide-9",
+ "paper_id":"954",
+ "paper_title":"Incremental Syntactic Language Models for Phrase-based Translation",
+ "paper_abstract":"\"This paper describes a novel technique for incorporating syntactic knowledge into phrasebased machi",
+ "paper_content":"{\"paper_content_id\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29",
+ "paper_headers":"{\"paper_header_number\":[\"1\",\"2\",\"3\",\"3.1\",\"3.3\",\"4\",\"4.1\",\"6\",\"7\"],\"paper_header_content\":[\"Introduc",
+ "slide_id":"GEM-SciDuet-train-1#paper-954#slide-9",
+ "slide_title":"Perplexity Results",
+ "slide_content_text":"\"Language models trained on WSJ Treebank corpus\\nMotivation Syntactic LM Decoder Integration Questio",
+ "target":"\"Language models trained on WSJ Treebank corpus\\nMotivation Syntactic LM Decoder Integration Questio",
+ "references":[
+
+ ]
+ },
+ "truncated_cells":[
+ "paper_abstract",
+ "paper_content",
+ "paper_headers",
+ "slide_content_text",
+ "target"
+ ]
+ }
diff --git a/docs/source/mlcroissant.md b/docs/source/mlcroissant.md
index fea1bb1b..e4951e6a 100644
--- a/docs/source/mlcroissant.md
+++ b/docs/source/mlcroissant.md
@@ -11 +11 @@
-Let's start by parsing the Croissant metadata for the [`barilan/blog_authorship_corpus`](https://huggingface.co/datasets/barilan/blog_authorship_corpus) dataset. Be sure to first install `mlcroissant[parquet]` and `GitPython` to be able to load Parquet files over the git+https protocol.
+Let's start by parsing the Croissant metadata for the [`tasksource/blog_authorship_corpus`](https://huggingface.co/datasets/tasksource/blog_authorship_corpus) dataset. Be sure to first install `mlcroissant[parquet]` and `GitPython` to be able to load Parquet files over the git+https protocol.
@@ -15 +15 @@ from mlcroissant import Dataset
-ds = Dataset(jsonld="https://huggingface.co/api/datasets/barilan/blog_authorship_corpus/croissant")
+ds = Dataset(jsonld="https://huggingface.co/api/datasets/tasksource/blog_authorship_corpus/croissant")
@@ -21 +21 @@ To read from the first subset (called RecordSet in Croissant's vocabulary), use
-records = ds.records(ds.metadata.record_sets[0].uid)
+records = ds.records("default")
@@ -32,2 +32,2 @@ df = (
- pd.DataFrame(list(itertools.islice(records, 1000)))
- .groupby("horoscope")["text"]
+ pd.DataFrame(list(itertools.islice(records, 100)))
+ .groupby("default/sign")["default/text"]
@@ -39,6 +39,7 @@ print(df)
-horoscope
-b'Sagittarius' 1216.000000
-b'Libra' 862.615581
-b'Capricorn' 381.269231
-b'Cancer' 272.776471
-Name: text, dtype: float64
+default/sign
+b'Leo' 6463.500000
+b'Capricorn' 2374.500000
+b'Aquarius' 2303.757143
+b'Gemini' 1420.333333
+b'Aries' 918.666667
+Name: default/text, dtype: float64
diff --git a/docs/source/pandas.md b/docs/source/pandas.md
index 790e0d7e..d2ed5330 100644
--- a/docs/source/pandas.md
+++ b/docs/source/pandas.md
@@ -11,2 +11,2 @@ df = (
- pd.read_parquet("https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0000.parquet")
- .groupby('horoscope')['text']
+ pd.read_parquet("https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet")
+ .groupby('sign')['text']
@@ -21,0 +22,2 @@ To read multiple Parquet files - for example, if the dataset is sharded - you'll
+urls = ["https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet", "https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0001.parquet"]
+
@@ -24 +26 @@ df = (
- .groupby('horoscope')['text']
+ .groupby('sign')['text']
diff --git a/docs/source/polars.md b/docs/source/polars.md
index 03d82fac..3fd5d98b 100644
--- a/docs/source/polars.md
+++ b/docs/source/polars.md
@@ -11 +11 @@
-Let's start by grabbing the URLs to the `train` split of the [`barilan/blog_authorship_corpus`](https://huggingface.co/datasets/barilan/blog_authorship_corpus) dataset from the dataset viewer API:
+Let's start by grabbing the URLs to the `train` split of the [`tasksource/blog_authorship_corpus`](https://huggingface.co/datasets/tasksource/blog_authorship_corpus) dataset from the dataset viewer API:
@@ -14 +14,3 @@ Let's start by grabbing the URLs to the `train` split of the [`barilan/blog_auth
-r = requests.get("https://datasets-server.huggingface.co/parquet?dataset=barilan/blog_authorship_corpus")
+import requests
+
+r = requests.get("https://datasets-server.huggingface.co/parquet?dataset=tasksource/blog_authorship_corpus")
@@ -18,2 +20 @@ urls
-['https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0000.parquet',
- 'https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0001.parquet']
+['https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet', 'https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0001.parquet']
@@ -28,2 +29,2 @@ df = (
- pl.read_parquet("https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0000.parquet")
- .groupby("horoscope")
+ pl.read_parquet("https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet")
+ .group_by("sign")
@@ -33 +34 @@ df = (
- pl.col("text").str.n_chars().mean().alias("avg_blog_length")
+ pl.col("text").str.len_chars().mean().alias("avg_blog_length")
@@ -42 +43 @@ shape: (5, 3)
-│ horoscope ┆ count ┆ avg_blog_length │
+│ sign ┆ count ┆ avg_blog_length │
@@ -46,5 +47,5 @@ shape: (5, 3)
-│ Aquarius ┆ 34062 ┆ 1129.218836 │
-│ Cancer ┆ 41509 ┆ 1098.366812 │
-│ Capricorn ┆ 33961 ┆ 1073.2002 │
-│ Libra ┆ 40302 ┆ 1072.071833 │
-│ Leo ┆ 40587 ┆ 1064.053687 │
+│ Cancer ┆ 38956 ┆ 1206.521203 │
+│ Leo ┆ 35487 ┆ 1180.067377 │
+│ Aquarius ┆ 32723 ┆ 1152.113682 │
+│ Virgo ┆ 36189 ┆ 1117.198209 │
+│ Capricorn ┆ 31825 ┆ 1102.397361 │
@@ -57,0 +59 @@ import polars as pl
+
@@ -60 +62 @@ df = (
- .groupby("horoscope")
+ .group_by("sign")
@@ -64 +66 @@ df = (
- pl.col("text").str.n_chars().mean().alias("avg_blog_length")
+ pl.col("text").str.len_chars().mean().alias("avg_blog_length")
@@ -72,11 +74,11 @@ shape: (5, 3)
-┌─────────────┬───────┬─────────────────┐
-│ horoscope ┆ count ┆ avg_blog_length │
-│ --- ┆ --- ┆ --- │
-│ str ┆ u32 ┆ f64 │
-╞═════════════╪═══════╪═════════════════╡
-│ Aquarius ┆ 49568 ┆ 1125.830677 │
-│ Cancer ┆ 63512 ┆ 1097.956087 │
-│ Libra ┆ 60304 ┆ 1060.611054 │
-│ Capricorn ┆ 49402 ┆ 1059.555261 │
-│ Sagittarius ┆ 50431 ┆ 1057.458984 │
-└─────────────┴───────┴─────────────────┘
+┌──────────┬───────┬─────────────────┐
+│ sign ┆ count ┆ avg_blog_length │
+│ --- ┆ --- ┆ --- │
+│ str ┆ u32 ┆ f64 │
+╞══════════╪═══════╪═════════════════╡
+│ Aquarius ┆ 49687 ┆ 1191.417212 │
+│ Leo ┆ 53811 ┆ 1183.878222 │
+│ Cancer ┆ 65048 ┆ 1158.969161 │
+│ Gemini ┆ 51985 ┆ 1156.069308 │
+│ Virgo ┆ 60399 ┆ 1140.958443 │
+└──────────┴───────┴─────────────────┘
@@ -95,2 +97,2 @@ q = (
- pl.scan_parquet("https://huggingface.co/datasets/barilan/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/blog_authorship_corpus/train/0000.parquet")
- .groupby("horoscope")
+ pl.scan_parquet("https://huggingface.co/datasets/tasksource/blog_authorship_corpus/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet")
+ .group_by("sign")
@@ -100 +102 @@ q = (
- pl.col("text").str.n_chars().mean().alias("avg_blog_length")
+ pl.col("text").str.len_chars().mean().alias("avg_blog_length")
|
|
5e9371a4afd10fc60d9233c678e1ebc93853836d
|
Matvey Arye
| 2024-12-18T21:50:29 |
Add PostgreSQL as a possible viewer (#3121)
|
diff --git a/docs/source/_toctree.yml b/docs/source/_toctree.yml
index 64b7ab6a..eaaaa170 100644
--- a/docs/source/_toctree.yml
+++ b/docs/source/_toctree.yml
@@ -46,0 +47,2 @@
+ - local: postgresql
+ title: PostgreSQL
diff --git a/docs/source/parquet_process.md b/docs/source/parquet_process.md
index 9a7c5602..9ce9ccca 100644
--- a/docs/source/parquet_process.md
+++ b/docs/source/parquet_process.md
@@ -13,0 +14 @@ There are several different libraries you can use to work with the published Par
+- [PostgreSQL via pgai](https://github.com/timescale/pgai/blob/main/docs/load_dataset_from_huggingface.md), a powerful, open source object-relational database system
diff --git a/docs/source/postgresql.md b/docs/source/postgresql.md
new file mode 100644
index 00000000..b79fe287
--- /dev/null
+++ b/docs/source/postgresql.md
@@ -0,0 +1,68 @@
+# PostgreSQL
+
+[PostgreSQL](https://www.postgresql.org/docs/) is a powerful, open source object-relational database system. It is the most [popular](https://survey.stackoverflow.co/2024/technology#most-popular-technologies-database) database by application developers for a few years running. [pgai](https://github.com/timescale/pgai) is a PostgreSQL extension that allows you to easily ingest huggingface datasets into your PostgreSQL database.
+
+
+## Run PostgreSQL with pgai installed
+
+You can easily run a docker container containing PostgreSQL with pgai.
+
+```bash
+docker run -d --name pgai -p 5432:5432 \
+-v pg-data:/home/postgres/pgdata/data \
+-e POSTGRES_PASSWORD=password timescale/timescaledb-ha:pg17
+```
+
+Then run the following command to install pgai into the database.
+
+```bash
+docker exec -it pgai psql -c "CREATE EXTENSION ai CASCADE;"
+```
+
+You can then connect to the database using the `psql` command line tool in the container.
+
+```bash
+docker exec -it pgai psql
+```
+
+or using your favorite PostgreSQL client using the following connection string: `postgresql://postgres:password@localhost:5432/postgres
+`
+
+Alternatively, you can install pgai into an existing PostgreSQL database. For instructions on how to install pgai into an existing PostgreSQL database, follow the instructions in the [github repo](https://github.com/timescale/pgai).
+
+## Create a table from a dataset
+
+To load a dataset into PostgreSQL, you can use the `ai.load_dataset` function. This function will create a PostgreSQL table, and load the dataset from the Hugging Face Hub
+in a streaming fashion.
+
+```sql
+select ai.load_dataset('rajpurkar/squad', table_name => 'squad');
+```
+
+You can now query the table using standard SQL.
+
+```sql
+select * from squad limit 10;
+```
+
+<Tip>
+Full documentation for the `ai.load_dataset` function can be found [here](https://github.com/timescale/pgai/blob/main/docs/load_dataset_from_huggingface.md).
+</Tip>
+
+## Import only a subset of the dataset
+
+You can also import a subset of the dataset by specifying the `max_batches` parameter.
+This is useful if the dataset is large and you want to experiment with a smaller subset.
+
+```sql
+SELECT ai.load_dataset('rajpurkar/squad', table_name => 'squad', batch_size => 100, max_batches => 1);
+```
+
+## Load a dataset into an existing table
+
+You can also load a dataset into an existing table.
+This is useful if you want more control over the data schema or want to predefine indexes and constraints on the data.
+
+```sql
+select ai.load_dataset('rajpurkar/squad', table_name => 'squad', if_table_exists => 'append');
+```
diff --git a/jobs/cache_maintenance/src/cache_maintenance/discussions.py b/jobs/cache_maintenance/src/cache_maintenance/discussions.py
index 58493c1f..c4e459fe 100644
--- a/jobs/cache_maintenance/src/cache_maintenance/discussions.py
+++ b/jobs/cache_maintenance/src/cache_maintenance/discussions.py
@@ -27 +27 @@ Apache Parquet is a popular columnar storage format known for:
-**This is what powers the dataset viewer** on each dataset page and every dataset on the Hub can be accessed with the same code (you can use HF Datasets, ClickHouse, DuckDB, Pandas or Polars, [up to you](https://huggingface.co/docs/dataset-viewer/parquet_process)).
+**This is what powers the dataset viewer** on each dataset page and every dataset on the Hub can be accessed with the same code (you can use HF Datasets, ClickHouse, DuckDB, Pandas, PostgreSQL, or Polars, [up to you](https://huggingface.co/docs/dataset-viewer/parquet_process)).
|
|
04f9b1efee148593271bbcc200a0db6252d22a9b
|
Quentin Lhoest
| 2024-12-18T15:55:25 |
Minor: explain why we recommend a certain size for row groups (#3122)
|
diff --git a/docs/source/parquet.md b/docs/source/parquet.md
index 12ef6bd5..bd4741bb 100644
--- a/docs/source/parquet.md
+++ b/docs/source/parquet.md
@@ -203 +203 @@ The Parquet version can be partial in two cases:
-- if the dataset is already in Parquet format but it contains row groups bigger than the recommended size (100-300MB uncompressed)
+- if the dataset is already in Parquet format but it contains row groups bigger than the recommended size (100-300MB uncompressed). This size is better for memory usage since Parquet is streamed row group per row group in most data libraries.
|
|
096abc26d1373d65affa027ff8e491563009ebea
|
Quentin Lhoest
| 2024-12-13T16:34:10 |
Fix backfill deleting cache when split names not ready (#3119)
|
diff --git a/libs/libcommon/src/libcommon/state.py b/libs/libcommon/src/libcommon/state.py
index 3daa16b8..5d15445a 100644
--- a/libs/libcommon/src/libcommon/state.py
+++ b/libs/libcommon/src/libcommon/state.py
@@ -235,6 +235,3 @@ class ConfigState:
- unexpected_split_names = set(cache_entries_df["split"].unique()).difference(
- set(self.split_names).union({None})
- )
- if unexpected_split_names:
- raise UnexceptedSplitNamesError(
- f"Unexpected split names for dataset={self.dataset} config={self.config} ({len(unexpected_split_names)}): {list(islice(unexpected_split_names, 10))}{'' if len(unexpected_split_names) <= 10 else '...'}"
+ if self.split_names: # empty if the config-split-names cache is missing
+ unexpected_split_names = set(cache_entries_df["split"].unique()).difference(
+ set(self.split_names).union({None})
@@ -241,0 +239,4 @@ class ConfigState:
+ if unexpected_split_names:
+ raise UnexceptedSplitNamesError(
+ f"Unexpected split names for dataset={self.dataset} config={self.config} ({len(unexpected_split_names)}): {list(islice(unexpected_split_names, 10))}{'' if len(unexpected_split_names) <= 10 else '...'}"
+ )
|
|
7540b3284a0e105e8ef9b484d72be1d06185b461
|
Quentin Lhoest
| 2024-12-10T15:28:56 |
Log incoherent state error (#3118)
|
diff --git a/libs/libcommon/src/libcommon/operations.py b/libs/libcommon/src/libcommon/operations.py
index 50e4316f..4df7caeb 100644
--- a/libs/libcommon/src/libcommon/operations.py
+++ b/libs/libcommon/src/libcommon/operations.py
@@ -320 +320 @@ def backfill_dataset(
- except IncoherentCacheError:
+ except IncoherentCacheError as e:
@@ -322 +322,2 @@ def backfill_dataset(
- f"Dataset {dataset} has incoherent entries in the cache. Let's first delete the dataset, then backfill again."
+ f"Dataset {dataset} has incoherent entries in the cache. Let's first delete the dataset, then backfill again. "
+ f"{type(e).__name__}: {e}"
|
|
6f5aecb15d799aa981f13301ce97e9a4c6a517e7
|
Quentin Lhoest
| 2024-12-09T14:27:05 |
More compute for fw2 (#3117)
|
diff --git a/libs/libcommon/src/libcommon/queue/past_jobs.py b/libs/libcommon/src/libcommon/queue/past_jobs.py
index 62e9533c..08667fec 100644
--- a/libs/libcommon/src/libcommon/queue/past_jobs.py
+++ b/libs/libcommon/src/libcommon/queue/past_jobs.py
@@ -49,0 +50,4 @@ JOB_DURATION_MIN_SECONDS = 30
+# hardcoded list of datasets for which we allocated more compute
+# (typically impactful datasets with tons of subsets)
+ALLOWED_COMPUTE_MULTIPLIER = {"HuggingFaceFW/fineweb-2": 100}
+
@@ -99 +103,2 @@ def create_past_job(dataset: str, started_at: datetime, finished_at: datetime) -
- if PastJobDocument.objects(dataset=dataset).sum("duration") > DATASET_BLOCKAGE_THRESHOLD_SECONDS:
+ max_duration = DATASET_BLOCKAGE_THRESHOLD_SECONDS * ALLOWED_COMPUTE_MULTIPLIER.get(dataset, 1)
+ if PastJobDocument.objects(dataset=dataset).sum("duration") > max_duration:
|
|
06415f8bcb14d1e329cdcd27a93c1b246eebb449
|
Quentin Lhoest
| 2024-12-08T11:40:14 |
Higher timeout again for smart update (#3116)
|
diff --git a/chart/env/prod.yaml b/chart/env/prod.yaml
index 801b6c0e..993505ba 100644
--- a/chart/env/prod.yaml
+++ b/chart/env/prod.yaml
@@ -309 +309 @@ hf:
- timeoutSeconds: "1.5"
+ timeoutSeconds: "10"
|
|
1e0e8f9c3613f19c88a29e8e579699327217aef2
|
Quentin Lhoest
| 2024-12-08T00:38:49 |
don't stop when afterjobplan is running (#3115)
|
diff --git a/services/worker/src/worker/executor.py b/services/worker/src/worker/executor.py
index 47f351b6..ae798233 100644
--- a/services/worker/src/worker/executor.py
+++ b/services/worker/src/worker/executor.py
@@ -152,2 +152,3 @@ class WorkerExecutor:
- logging.warning(f"Heartbeat failed for job {job_id}: {error}")
- self.stop()
+ logging.warning(f"Heartbeat failed for job {job_id} (AfterJobPlan might be running): {error}")
+ # Don't stop since the AfterJobPlan may be running
+ # self.stop()
|
|
1f8262624e21846c6b059d612688e2d5a9ae77a8
|
Quentin Lhoest
| 2024-12-08T00:06:21 |
fix webhook on parquet conversion (#3114)
|
diff --git a/services/webhook/src/webhook/routes/webhook.py b/services/webhook/src/webhook/routes/webhook.py
index a3591def..fc88b88f 100644
--- a/services/webhook/src/webhook/routes/webhook.py
+++ b/services/webhook/src/webhook/routes/webhook.py
@@ -93 +93,5 @@ def process_payload(
- if event == "update" and get_current_revision(dataset) == payload["repo"]["headSha"] and not private:
+ if (
+ event == "update"
+ and get_current_revision(dataset) == payload["repo"]["headSha"]
+ and (not payload["scope"] == "repo.config" or not private)
+ ):
|
|
da2750d64c447d0a007d0d0626eae41052b8b56a
|
Quentin Lhoest
| 2024-12-07T23:54:12 |
higher timeout (#3113)
|
diff --git a/chart/env/prod.yaml b/chart/env/prod.yaml
index 7eb9ac6b..801b6c0e 100644
--- a/chart/env/prod.yaml
+++ b/chart/env/prod.yaml
@@ -280 +280 @@ admin:
- hfTimeoutSeconds: "1.5"
+ hfTimeoutSeconds: "10"
|
|
43272b9872759a0402256f9afb82b5f7b9521c0e
|
Quentin Lhoest
| 2024-12-07T23:29:10 |
more configs we said (#3112)
|
diff --git a/chart/values.yaml b/chart/values.yaml
index b1897305..b63664c5 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -231 +231 @@ configNames:
- maxNumber: 3_000
+ maxNumber: 4_000
|
|
f00ed10a38cf0661a6ddb0e7eccaee54fa6de548
|
Quentin Lhoest
| 2024-12-07T23:18:49 |
Don't recompute on private->public for pro/enterprise (#3111)
|
diff --git a/services/webhook/src/webhook/routes/webhook.py b/services/webhook/src/webhook/routes/webhook.py
index 0df82369..a3591def 100644
--- a/services/webhook/src/webhook/routes/webhook.py
+++ b/services/webhook/src/webhook/routes/webhook.py
@@ -42,0 +43 @@ class _MoonWebhookV2PayloadRepo(TypedDict):
+ private: bool
@@ -84,0 +86 @@ def process_payload(
+ private = payload["repo"]["private"]
@@ -91,5 +93 @@ def process_payload(
- if (
- event == "update"
- and get_current_revision(dataset) == payload["repo"]["headSha"]
- and not payload["scope"] == "repo.config"
- ):
+ if event == "update" and get_current_revision(dataset) == payload["repo"]["headSha"] and not private:
@@ -96,0 +95 @@ def process_payload(
+ # ^ it also filters switching from private to public if the headSha is in the cache (i.e. if the user is PRO/Enterprise)
diff --git a/services/webhook/tests/routes/test_webhook.py b/services/webhook/tests/routes/test_webhook.py
index 74f7470a..26253202 100644
--- a/services/webhook/tests/routes/test_webhook.py
+++ b/services/webhook/tests/routes/test_webhook.py
@@ -85 +85,5 @@ def test_parse_payload(
- {"event": "add", "repo": {"type": "dataset", "name": "webhook-test", "gitalyUid": "123"}, "scope": "repo"},
+ {
+ "event": "add",
+ "repo": {"type": "dataset", "name": "webhook-test", "gitalyUid": "123", "private": False},
+ "scope": "repo",
+ },
@@ -92 +96 @@ def test_parse_payload(
- "repo": {"type": "dataset", "name": "previous-name", "gitalyUid": "123"},
+ "repo": {"type": "dataset", "name": "previous-name", "gitalyUid": "123", "private": False},
@@ -97 +101,4 @@ def test_parse_payload(
- ({"event": "add", "repo": {"type": "dataset", "name": "webhook-test"}, "scope": "repo"}, True),
+ (
+ {"event": "add", "repo": {"type": "dataset", "name": "webhook-test", "private": False}, "scope": "repo"},
+ True,
+ ),
@@ -101 +108 @@ def test_parse_payload(
- "repo": {"type": "dataset", "name": "webhook-test", "gitalyUid": "123"},
+ "repo": {"type": "dataset", "name": "webhook-test", "gitalyUid": "123", "private": False},
@@ -131 +138,6 @@ def test_parse_payload(
- "repo": {"type": "dataset", "name": "AresEkb/prof_standards_sbert_large_mt_nlu_ru", "headSha": "abc"},
+ "repo": {
+ "type": "dataset",
+ "name": "AresEkb/prof_standards_sbert_large_mt_nlu_ru",
+ "headSha": "abc",
+ "private": False,
+ },
diff --git a/services/webhook/tests/test_app_real.py b/services/webhook/tests/test_app_real.py
index 288df0d5..bf756b3a 100644
--- a/services/webhook/tests/test_app_real.py
+++ b/services/webhook/tests/test_app_real.py
@@ -49 +49,7 @@ def test_webhook_untrusted(
- "repo": {"type": "dataset", "name": "nyu-mll/glue", "gitalyUid": "123", "headSha": "revision"},
+ "repo": {
+ "type": "dataset",
+ "name": "nyu-mll/glue",
+ "gitalyUid": "123",
+ "headSha": "revision",
+ "private": False,
+ },
@@ -60 +66,7 @@ def test_webhook_trusted(real_client: TestClient) -> None:
- "repo": {"type": "dataset", "name": "nyu-mll/glue", "gitalyUid": "123", "headSha": "revision"},
+ "repo": {
+ "type": "dataset",
+ "name": "nyu-mll/glue",
+ "gitalyUid": "123",
+ "headSha": "revision",
+ "private": False,
+ },
|
|
05cf9f4656303c544b11b501cdddadc1e9074ceb
|
Quentin Lhoest
| 2024-12-07T22:48:00 |
allow more configs (#3110)
|
diff --git a/services/worker/src/worker/config.py b/services/worker/src/worker/config.py
index 08477cf9..c179ab4f 100644
--- a/services/worker/src/worker/config.py
+++ b/services/worker/src/worker/config.py
@@ -261 +261 @@ class NumbaConfig:
-CONFIG_NAMES_MAX_NUMBER = 3_000
+CONFIG_NAMES_MAX_NUMBER = 4_000
|
|
eef00c2d3d1b35e6ab7365a015a20a65107cd8e7
|
Caleb Fahlgren
| 2024-12-06T15:26:30 |
AudioCell - set audio type to string (#3109)
|
diff --git a/docs/source/openapi.json b/docs/source/openapi.json
index 2e90a0ca..5844fda0 100644
--- a/docs/source/openapi.json
+++ b/docs/source/openapi.json
@@ -757,2 +757 @@
- "type": "string",
- "enum": ["audio/wav", "audio/mpeg", "audio/ogg"]
+ "type": "string"
@@ -777 +776 @@
- "required": ["src", "height", "width"]
+ "required": ["src"]
|
|
539b43775760f68f48d6df252ebef6e14c94edb6
|
ccl-core
| 2024-12-03T17:38:40 |
Avoid redundant names/descriptions (#3106)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index d22cd12d..a2eab5c9 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -79,2 +78,0 @@ def feature_to_croissant_field(
- "name": field_name,
- "description": f"Column '{column}' from the Hugging Face parquet file.",
@@ -93,2 +90,0 @@ def feature_to_croissant_field(
- "name": field_name,
- "description": f"Image column '{column}' from the Hugging Face parquet file.",
@@ -102,3 +97,0 @@ def feature_to_croissant_field(
- "name": field_name,
- "description": f"ClassLabel column '{column}' from the Hugging Face parquet file.\nLabels:\n"
- + ", ".join(f"{name} ({i})" for i, name in enumerate(feature.names)),
@@ -113,2 +105,0 @@ def feature_to_croissant_field(
- "name": field_name,
- "description": f"Column '{column}' from the Hugging Face parquet file.",
diff --git a/libs/libcommon/tests/test_croissant_utils.py b/libs/libcommon/tests/test_croissant_utils.py
index 970e8d75..cd9dc277 100644
--- a/libs/libcommon/tests/test_croissant_utils.py
+++ b/libs/libcommon/tests/test_croissant_utils.py
@@ -41,2 +40,0 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
- "name": "field_name",
- "description": "Column 'column_name' from the Hugging Face parquet file.",
@@ -52,2 +49,0 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
- "name": "field_name",
- "description": "Column 'column_name' from the Hugging Face parquet file.",
@@ -64,2 +59,0 @@ def test_truncate_features_from_croissant_crumbs_response(num_columns: int) -> N
- "name": "field_name",
- "description": "Column 'column_name' from the Hugging Face parquet file.",
diff --git a/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py b/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
index 935fa22d..36fce6e3 100644
--- a/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
+++ b/services/worker/src/worker/job_runners/dataset/croissant_crumbs.py
@@ -85,2 +84,0 @@ def get_croissant_crumbs_from_dataset_infos(
- "name": distribution_name,
- "description": "The underlying Parquet files as converted by Hugging Face (see: https://huggingface.co/docs/dataset-viewer/parquet).",
@@ -102,2 +99,0 @@ def get_croissant_crumbs_from_dataset_infos(
- "name": "split_name",
- "description": "The name of the split.",
@@ -127,2 +122,0 @@ def get_croissant_crumbs_from_dataset_infos(
- "name": f"{record_set_name}/split",
- "description": "Split to which the example belongs to.",
@@ -163 +156,0 @@ def get_croissant_crumbs_from_dataset_infos(
- "name": record_set_name,
diff --git a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
index aa139d90..0e80c29a 100644
--- a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
+++ b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
@@ -127,2 +126,0 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
- assert croissant_crumbs["recordSet"][1]["name"] == "record_set_user_squad_with_space"
- assert croissant_crumbs["recordSet"][3]["name"] == "record_set_user_squad_with_space_0"
@@ -150 +148 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
- if field["description"] == "Split to which the example belongs to.":
+ if field["@id"].endswith("split"):
|
|
282364e426b3c07e1a3e79b1b40a281fdf102f89
|
Quentin Lhoest
| 2024-12-03T17:23:30 |
Fix excluded binary column in rows (#3108)
|
diff --git a/services/rows/src/rows/routes/rows.py b/services/rows/src/rows/routes/rows.py
index 14187118..f1e6768c 100644
--- a/services/rows/src/rows/routes/rows.py
+++ b/services/rows/src/rows/routes/rows.py
@@ -6,0 +7 @@ from typing import Literal, Optional, Union
+from datasets import Features
@@ -99 +100 @@ def create_rows_endpoint(
- if dataset == "Major-TOM/Core-S2L2A":
+ if dataset == "Major-TOM/Core-S2L2A" or dataset == "foursquare/fsq-os-places":
@@ -105 +106,4 @@ def create_rows_endpoint(
- pa_table = cast_table_to_features(pa_table, rows_index.parquet_index.features)
+ features = Features(
+ {col: rows_index.parquet_index.features[col] for col in pa_table.column_names}
+ )
+ pa_table = cast_table_to_features(pa_table, features)
|
|
1886a85a89840536b9e6eca4a97b1ce7488450a9
|
Quentin Lhoest
| 2024-11-19T14:14:07 |
bump croissant job version (#3105)
|
diff --git a/libs/libcommon/src/libcommon/processing_graph.py b/libs/libcommon/src/libcommon/processing_graph.py
index 2a6810f8..10805df0 100644
--- a/libs/libcommon/src/libcommon/processing_graph.py
+++ b/libs/libcommon/src/libcommon/processing_graph.py
@@ -718 +718 @@ specification: ProcessingGraphSpecification = {
- "job_runner_version": 2,
+ "job_runner_version": 3,
|
|
238922012633f52f100bfaa218751796d5842acc
|
ccl-core
| 2024-11-18T15:45:16 |
Include dictionary features to croissant dataset definitions. (#3102)
|
diff --git a/libs/libcommon/src/libcommon/croissant_utils.py b/libs/libcommon/src/libcommon/croissant_utils.py
index d9e40353..d22cd12d 100644
--- a/libs/libcommon/src/libcommon/croissant_utils.py
+++ b/libs/libcommon/src/libcommon/croissant_utils.py
@@ -5 +5 @@ from collections.abc import Mapping
-from typing import Any, Union
+from typing import Any, Optional, Union
@@ -55,0 +56,10 @@ HF_TO_CROISSANT_VALUE_TYPE = {
+def get_source(
+ distribution_name: str, column: str, add_transform: bool, json_path: Optional[str] = None
+) -> dict[str, Any]:
+ """Returns a Source dictionary for a Field."""
+ source = {"fileSet": {"@id": distribution_name}, "extract": {"column": column}}
+ if add_transform and json_path:
+ source["transform"] = {"jsonPath": json_path}
+ return source
+
+
@@ -57 +67,6 @@ def feature_to_croissant_field(
- distribution_name: str, field_name: str, column: str, feature: Any
+ distribution_name: str,
+ field_name: str,
+ column: str,
+ feature: Any,
+ add_transform: bool = False,
+ json_path: Optional[str] = None,
@@ -67 +82 @@ def feature_to_croissant_field(
- "source": {"fileSet": {"@id": distribution_name}, "extract": {"column": column}},
+ "source": get_source(distribution_name, column, add_transform, json_path),
@@ -69,0 +85,5 @@ def feature_to_croissant_field(
+ source = get_source(distribution_name, column, add_transform, json_path)
+ if transform := source.get("transform"):
+ source["transform"] = [transform, {"jsonPath": "bytes"}]
+ else:
+ source["transform"] = {"jsonPath": "bytes"}
@@ -76,5 +96 @@ def feature_to_croissant_field(
- "source": {
- "fileSet": {"@id": distribution_name},
- "extract": {"column": column},
- "transform": {"jsonPath": "bytes"},
- },
+ "source": source,
@@ -90 +106,20 @@ def feature_to_croissant_field(
- "source": {"fileSet": {"@id": distribution_name}, "extract": {"column": column}},
+ "source": get_source(distribution_name, column, add_transform, json_path),
+ }
+ # Field with sub-fields.
+ elif isinstance(feature, dict):
+ return {
+ "@type": "cr:Field",
+ "@id": field_name,
+ "name": field_name,
+ "description": f"Column '{column}' from the Hugging Face parquet file.",
+ "subField": [
+ feature_to_croissant_field(
+ distribution_name,
+ f"{field_name}/{subfeature_name}",
+ column,
+ sub_feature,
+ add_transform=True,
+ json_path=subfeature_name,
+ )
+ for subfeature_name, sub_feature in feature.items()
+ ],
diff --git a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
index 6355cbd3..aa139d90 100644
--- a/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
+++ b/services/worker/tests/job_runners/dataset/test_croissant_crumbs.py
@@ -131 +131 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
- assert "1 skipped column: answers" in croissant_crumbs["recordSet"][1]["description"]
+ assert "skipped column" not in croissant_crumbs["recordSet"][1]["description"]
@@ -136,5 +136,14 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
- assert "source" in field
- assert "fileSet" in field["source"]
- assert "@id" in field["source"]["fileSet"]
- assert field["source"]["fileSet"]["@id"]
- assert "extract" in field["source"]
+ if "subField" not in field:
+ assert "source" in field
+ assert "fileSet" in field["source"]
+ assert "@id" in field["source"]["fileSet"]
+ assert field["source"]["fileSet"]["@id"]
+ assert "extract" in field["source"]
+ else:
+ for sub_field in field["subField"]:
+ assert "source" in sub_field
+ assert "fileSet" in sub_field["source"]
+ assert "@id" in sub_field["source"]["fileSet"]
+ assert sub_field["source"]["fileSet"]["@id"]
+ assert "extract" in sub_field["source"]
+ assert "transform" in sub_field["source"]
@@ -146 +155,5 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
- assert field["source"]["extract"]["column"] == field["@id"].split("/")[-1]
+ if "subField" not in field:
+ assert field["source"]["extract"]["column"] == field["@id"].split("/")[-1]
+ else:
+ for sub_field in field["subField"]:
+ assert sub_field["source"]["extract"]["column"] == field["@id"].split("/")[-1]
@@ -149,2 +162,2 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
- assert len(croissant_crumbs["recordSet"][1]["field"]) == 5
- assert len(croissant_crumbs["recordSet"][3]["field"]) == 5
+ assert len(croissant_crumbs["recordSet"][1]["field"]) == 6
+ assert len(croissant_crumbs["recordSet"][3]["field"]) == 6
@@ -153,2 +166,3 @@ def test_get_croissant_crumbs_from_dataset_infos() -> None:
- assert field["dataType"] == "sc:Text"
- assert len(croissant_crumbs["recordSet"][1]["field"]) == len(squad_info["features"])
+ if "subField" not in field:
+ assert field["dataType"] == "sc:Text"
+ assert len(croissant_crumbs["recordSet"][1]["field"]) == len(squad_info["features"]) + 1
|
|
a7f42bba268f208764d9420f90745de193ca67f2
|
Quentin Lhoest
| 2024-10-30T14:28:04 |
fix typo in pandas example code (#3099)
|
diff --git a/services/worker/src/worker/job_runners/dataset/compatible_libraries.py b/services/worker/src/worker/job_runners/dataset/compatible_libraries.py
index a9af8dd2..e86f4317 100644
--- a/services/worker/src/worker/job_runners/dataset/compatible_libraries.py
+++ b/services/worker/src/worker/job_runners/dataset/compatible_libraries.py
@@ -349 +349 @@ splits = {splits}
-df = {function}("hf://datasets/{dataset}/" + splits["{first_split}"{args}])"""
+df = {function}("hf://datasets/{dataset}/" + splits["{first_split}"]{args})"""
|
|
b0955cc8350a98b13b979977a8c66fa2d4877a58
|
Quentin Lhoest
| 2024-10-30T12:12:30 |
Store video urls in parquet (#3098)
|
diff --git a/libs/libcommon/src/libcommon/viewer_utils/asset.py b/libs/libcommon/src/libcommon/viewer_utils/asset.py
index 402f287d..fd54657c 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/asset.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/asset.py
@@ -155 +155 @@ def create_video_file(
- else:
+ elif "bytes" in encoded_video and isinstance(encoded_video["bytes"], bytes):
@@ -169,0 +170,2 @@ def create_video_file(
+ else:
+ raise ValueError("The video cell doesn't contain a valid path or bytes")
diff --git a/services/worker/src/worker/job_runners/config/parquet_and_info.py b/services/worker/src/worker/job_runners/config/parquet_and_info.py
index 734da86d..f33f2379 100644
--- a/services/worker/src/worker/job_runners/config/parquet_and_info.py
+++ b/services/worker/src/worker/job_runners/config/parquet_and_info.py
@@ -30,0 +31 @@ from datasets.packaged_modules.parquet.parquet import Parquet as ParquetBuilder
+from datasets.packaged_modules.videofolder.videofolder import VideoFolder as VideoFolderBuilder
@@ -212,0 +214,4 @@ def is_parquet_builder_with_hub_files(builder: DatasetBuilder) -> bool:
+def is_video_builder(builder: DatasetBuilder) -> bool:
+ return isinstance(builder, VideoFolderBuilder) or "Video(" in str(builder.info.features)
+
+
@@ -1388,0 +1394,7 @@ def compute_config_parquet_and_info_response(
+ elif is_video_builder(builder): # videos should be saved from their URLs, not from locally downloaded files
+ logging.info(
+ f"{dataset=} {config=} is a video dataset, converting it by streaming to store the video URLs"
+ )
+ parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
+ builder, max_dataset_size_bytes=max_dataset_size_bytes
+ )
|
|
6115b888f7cf2803742376e4bc0ecd7e2a674493
|
Quentin Lhoest
| 2024-10-30T10:56:42 |
Add video to openapi (#3097)
|
diff --git a/docs/source/openapi.json b/docs/source/openapi.json
index b4a618ed..2e90a0ca 100644
--- a/docs/source/openapi.json
+++ b/docs/source/openapi.json
@@ -388,0 +389,3 @@
+ },
+ {
+ "$ref": "#/components/schemas/VideoFeature"
@@ -560,0 +564,13 @@
+ "VideoFeature": {
+ "type": "object",
+ "required": ["_type"],
+ "properties": {
+ "_type": {
+ "type": "string",
+ "enum": ["Video"]
+ },
+ "decode": {
+ "type": "boolean"
+ }
+ }
+ },
@@ -624,0 +641,3 @@
+ },
+ {
+ "$ref": "#/components/schemas/VideoCell"
@@ -772,0 +792,10 @@
+ "VideoCell": {
+ "type": "object",
+ "properties": {
+ "src": {
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": ["src"]
+ },
|
|
9569e2a428eac4618e87bbcae592b2e4a8ed479d
|
Quentin Lhoest
| 2024-10-29T18:43:02 |
fix missing slash (#3096)
|
diff --git a/libs/libcommon/src/libcommon/url_preparator.py b/libs/libcommon/src/libcommon/url_preparator.py
index c4a1d1c9..777af908 100644
--- a/libs/libcommon/src/libcommon/url_preparator.py
+++ b/libs/libcommon/src/libcommon/url_preparator.py
@@ -102 +102 @@ class URLPreparator(ABC):
- url = url.replace("hf://", self.hf_endpoint).replace("@", "/resolve/")
+ url = url.replace("hf://", self.hf_endpoint + "/").replace("@", "/resolve/")
|
|
1262fdf3339a002b591e097baa0dc2078df3a817
|
Quentin Lhoest
| 2024-10-29T18:26:47 |
Render first rows video urls (#3095)
|
diff --git a/libs/libapi/src/libapi/rows_utils.py b/libs/libapi/src/libapi/rows_utils.py
index 90a0bee4..9741b9c8 100644
--- a/libs/libapi/src/libapi/rows_utils.py
+++ b/libs/libapi/src/libapi/rows_utils.py
@@ -69 +69 @@ async def transform_rows(
- if "Audio(" in str(features) or "Image(" in str(features) or "Video(" in str(features):
+ if "Audio(" in str(features) or "Image(" in str(features):
diff --git a/libs/libcommon/src/libcommon/url_preparator.py b/libs/libcommon/src/libcommon/url_preparator.py
index 902199d1..c4a1d1c9 100644
--- a/libs/libcommon/src/libcommon/url_preparator.py
+++ b/libs/libcommon/src/libcommon/url_preparator.py
@@ -9 +9 @@ from typing import Any, Callable, Literal, Optional, Union
-from datasets import Audio, Features, Image
+from datasets import Audio, Features, Image, Video
@@ -26 +26 @@ class AssetUrlPath:
- feature_type: Literal["Audio", "Image"]
+ feature_type: Literal["Audio", "Image", "Video"]
@@ -72,0 +73 @@ def get_asset_url_paths(features: Features) -> list[AssetUrlPath]:
+ # for audio we give a list in case there are multiple formats available
@@ -73,0 +75,2 @@ def get_asset_url_paths(features: Features) -> list[AssetUrlPath]:
+ elif isinstance(feature, Video):
+ asset_url_paths.append(AssetUrlPath(feature_type="Video", path=visit_path))
|
|
b0906baef73a3bc0670e006f0605787f2ad712b8
|
Quentin Lhoest
| 2024-10-29T17:46:47 |
Fix decord import (#3094)
|
diff --git a/libs/libcommon/src/libcommon/viewer_utils/features.py b/libs/libcommon/src/libcommon/viewer_utils/features.py
index f60d7a50..7eeeadcf 100644
--- a/libs/libcommon/src/libcommon/viewer_utils/features.py
+++ b/libs/libcommon/src/libcommon/viewer_utils/features.py
@@ -9,0 +10 @@ from zlib import adler32
+import datasets.config
@@ -216 +217,5 @@ def video(
- from decord import VideoReader # type: ignore
+ if datasets.config.DECORD_AVAILABLE:
+ from decord import VideoReader # type: ignore
+
+ else:
+ VideoReader = None
@@ -220 +225,6 @@ def video(
- if isinstance(value, VideoReader) and hasattr(value, "_hf_encoded") and isinstance(value._hf_encoded, dict):
+ if (
+ VideoReader
+ and isinstance(value, VideoReader)
+ and hasattr(value, "_hf_encoded")
+ and isinstance(value._hf_encoded, dict)
+ ):
|
|
d126cde90f1ecc31ebec24774e03302079618de4
|
Quentin Lhoest
| 2024-10-29T17:44:31 |
Increase executor time out for staging (#3093)
|
diff --git a/services/worker/src/worker/executor.py b/services/worker/src/worker/executor.py
index c19d2998..47f351b6 100644
--- a/services/worker/src/worker/executor.py
+++ b/services/worker/src/worker/executor.py
@@ -76 +76 @@ class WorkerExecutor:
- return OutputExecutor(start_worker_loop_command, banner, timeout=10)
+ return OutputExecutor(start_worker_loop_command, banner, timeout=20)
@@ -90 +90 @@ class WorkerExecutor:
- web_app_executor.start() # blocking until the banner is printed
+ web_app_executor.start() # blocking until socket connection is established
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.