datachain 0.1.0__tar.gz → 0.1.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of datachain might be problematic. Click here for more details.
- datachain-0.1.10/.cruft.json +23 -0
- datachain-0.1.10/.gitattributes +1 -0
- datachain-0.1.10/.github/ISSUE_TEMPLATE/bug_report.yml +27 -0
- datachain-0.1.10/.github/ISSUE_TEMPLATE/empty_issue.md +4 -0
- datachain-0.1.10/.github/ISSUE_TEMPLATE/feature_request.yml +12 -0
- datachain-0.1.10/.github/codecov.yaml +16 -0
- datachain-0.1.10/.github/dependabot.yml +16 -0
- datachain-0.1.10/.github/workflows/benchmarks.yml +34 -0
- datachain-0.1.10/.github/workflows/release.yml +40 -0
- datachain-0.1.10/.github/workflows/tests.yml +124 -0
- datachain-0.1.10/.github/workflows/update-template.yaml +19 -0
- datachain-0.1.10/.gitignore +145 -0
- datachain-0.1.10/.pre-commit-config.yaml +49 -0
- datachain-0.1.10/.reuse/dep5 +8 -0
- datachain-0.1.10/CODE_OF_CONDUCT.rst +105 -0
- datachain-0.1.10/CONTRIBUTING.rst +109 -0
- datachain-0.1.10/LICENSE +201 -0
- datachain-0.1.10/LICENSES/Apache-2.0.txt +73 -0
- datachain-0.1.10/LICENSES/BSD-3-Clause.txt +11 -0
- datachain-0.1.10/LICENSES/Python-2.0.txt +72 -0
- datachain-0.1.10/PKG-INFO +361 -0
- datachain-0.1.10/README.rst +287 -0
- datachain-0.1.10/docs/cv_intro.md +217 -0
- datachain-0.1.10/docs/udfs.md +94 -0
- datachain-0.1.10/examples/blip2_image_desc_lib.py +35 -0
- datachain-0.1.10/examples/clip.py +54 -0
- datachain-0.1.10/examples/common_sql_functions.py +78 -0
- datachain-0.1.10/examples/dir_expansion.py +69 -0
- datachain-0.1.10/examples/hf_pipeline.py +98 -0
- datachain-0.1.10/examples/iptc_exif_xmp_lib.py +15 -0
- datachain-0.1.10/examples/llava2_image_desc_lib.py +43 -0
- datachain-0.1.10/examples/llm-claude-aggregate-query.py +40 -0
- datachain-0.1.10/examples/llm-claude-simple-query.py +46 -0
- datachain-0.1.10/examples/llm-claude.py +21 -0
- datachain-0.1.10/examples/loader.py +31 -0
- datachain-0.1.10/examples/neurips/README +18 -0
- datachain-0.1.10/examples/neurips/distance_to_query.py +29 -0
- datachain-0.1.10/examples/neurips/llm_chat.py +46 -0
- datachain-0.1.10/examples/neurips/requirements.txt +9 -0
- datachain-0.1.10/examples/neurips/single_query.py +119 -0
- datachain-0.1.10/examples/neurips/text_loaders.py +80 -0
- datachain-0.1.10/examples/notebooks/clip_fine_tuning.ipynb +1214 -0
- datachain-0.1.10/examples/openai_image_desc_lib.py +29 -0
- datachain-0.1.10/examples/openimage-detect.py +72 -0
- datachain-0.1.10/examples/pose_detection.py +220 -0
- datachain-0.1.10/examples/torch-loader.py +84 -0
- datachain-0.1.10/examples/udfs/batching.py +34 -0
- datachain-0.1.10/examples/udfs/image_transformation.py +45 -0
- datachain-0.1.10/examples/udfs/parallel.py +55 -0
- datachain-0.1.10/examples/udfs/simple.py +42 -0
- datachain-0.1.10/examples/udfs/stateful.py +44 -0
- datachain-0.1.10/examples/udfs/stateful_similarity.py +73 -0
- datachain-0.1.10/examples/unstructured-text.py +54 -0
- datachain-0.1.10/examples/wds.py +35 -0
- datachain-0.1.10/examples/wds_filtered.py +55 -0
- datachain-0.1.10/examples/zalando/zalando_clip.py +44 -0
- datachain-0.1.10/examples/zalando/zalando_dir_as_class.py +31 -0
- datachain-0.1.10/examples/zalando/zalando_splits_and_classes_ds.py +9 -0
- datachain-0.1.10/examples/zalando/zalando_splits_and_classes_output.py +17 -0
- datachain-0.1.10/noxfile.py +70 -0
- datachain-0.1.10/pyproject.toml +233 -0
- datachain-0.1.10/setup.cfg +4 -0
- datachain-0.1.10/src/datachain/__init__.py +4 -0
- datachain-0.1.10/src/datachain/__main__.py +6 -0
- datachain-0.1.10/src/datachain/_version.py +16 -0
- datachain-0.1.10/src/datachain/asyn.py +226 -0
- datachain-0.1.10/src/datachain/cache.py +146 -0
- datachain-0.1.10/src/datachain/catalog/__init__.py +17 -0
- datachain-0.1.10/src/datachain/catalog/catalog.py +2278 -0
- datachain-0.1.10/src/datachain/catalog/datasource.py +45 -0
- datachain-0.1.10/src/datachain/catalog/loader.py +173 -0
- datachain-0.1.10/src/datachain/catalog/subclass.py +60 -0
- datachain-0.1.10/src/datachain/cli.py +1104 -0
- datachain-0.1.10/src/datachain/cli_utils.py +72 -0
- datachain-0.1.10/src/datachain/client/__init__.py +4 -0
- datachain-0.1.10/src/datachain/client/azure.py +30 -0
- datachain-0.1.10/src/datachain/client/fileslice.py +106 -0
- datachain-0.1.10/src/datachain/client/fsspec.py +407 -0
- datachain-0.1.10/src/datachain/client/gcs.py +132 -0
- datachain-0.1.10/src/datachain/client/local.py +166 -0
- datachain-0.1.10/src/datachain/client/s3.py +173 -0
- datachain-0.1.10/src/datachain/config.py +62 -0
- datachain-0.1.10/src/datachain/data_storage/__init__.py +14 -0
- datachain-0.1.10/src/datachain/data_storage/db_engine.py +110 -0
- datachain-0.1.10/src/datachain/data_storage/id_generator.py +122 -0
- datachain-0.1.10/src/datachain/data_storage/job.py +22 -0
- datachain-0.1.10/src/datachain/data_storage/metastore.py +1568 -0
- datachain-0.1.10/src/datachain/data_storage/schema.py +278 -0
- datachain-0.1.10/src/datachain/data_storage/serializer.py +29 -0
- datachain-0.1.10/src/datachain/data_storage/sqlite.py +707 -0
- datachain-0.1.10/src/datachain/data_storage/warehouse.py +965 -0
- datachain-0.1.10/src/datachain/dataset.py +491 -0
- datachain-0.1.10/src/datachain/error.py +61 -0
- datachain-0.1.10/src/datachain/lib/cached_stream.py +120 -0
- datachain-0.1.10/src/datachain/lib/claude.py +69 -0
- datachain-0.1.10/src/datachain/lib/dc.py +609 -0
- datachain-0.1.10/src/datachain/lib/feature.py +462 -0
- datachain-0.1.10/src/datachain/lib/feature_registry.py +48 -0
- datachain-0.1.10/src/datachain/lib/feature_utils.py +140 -0
- datachain-0.1.10/src/datachain/lib/file.py +298 -0
- datachain-0.1.10/src/datachain/lib/gpt4_vision.py +105 -0
- datachain-0.1.10/src/datachain/lib/hf_image_to_text.py +105 -0
- datachain-0.1.10/src/datachain/lib/hf_pipeline.py +98 -0
- datachain-0.1.10/src/datachain/lib/image.py +124 -0
- datachain-0.1.10/src/datachain/lib/image_transform.py +104 -0
- datachain-0.1.10/src/datachain/lib/iptc_exif_xmp.py +83 -0
- datachain-0.1.10/src/datachain/lib/parquet.py +32 -0
- datachain-0.1.10/src/datachain/lib/pytorch.py +114 -0
- datachain-0.1.10/src/datachain/lib/reader.py +49 -0
- datachain-0.1.10/src/datachain/lib/settings.py +84 -0
- datachain-0.1.10/src/datachain/lib/signal_schema.py +281 -0
- datachain-0.1.10/src/datachain/lib/text.py +80 -0
- datachain-0.1.10/src/datachain/lib/udf.py +215 -0
- datachain-0.1.10/src/datachain/lib/udf_signature.py +190 -0
- datachain-0.1.10/src/datachain/lib/unstructured.py +41 -0
- datachain-0.1.10/src/datachain/lib/utils.py +8 -0
- datachain-0.1.10/src/datachain/lib/vfile.py +0 -0
- datachain-0.1.10/src/datachain/lib/webdataset.py +264 -0
- datachain-0.1.10/src/datachain/lib/webdataset_laion.py +82 -0
- datachain-0.1.10/src/datachain/listing.py +251 -0
- datachain-0.1.10/src/datachain/node.py +210 -0
- datachain-0.1.10/src/datachain/nodes_fetcher.py +30 -0
- datachain-0.1.10/src/datachain/nodes_thread_pool.py +115 -0
- datachain-0.1.10/src/datachain/progress.py +149 -0
- datachain-0.1.10/src/datachain/py.typed +0 -0
- datachain-0.1.10/src/datachain/query/__init__.py +17 -0
- datachain-0.1.10/src/datachain/query/batch.py +121 -0
- datachain-0.1.10/src/datachain/query/builtins.py +117 -0
- datachain-0.1.10/src/datachain/query/dataset.py +1957 -0
- datachain-0.1.10/src/datachain/query/dispatch.py +394 -0
- datachain-0.1.10/src/datachain/query/params.py +27 -0
- datachain-0.1.10/src/datachain/query/schema.py +286 -0
- datachain-0.1.10/src/datachain/query/session.py +107 -0
- datachain-0.1.10/src/datachain/query/udf.py +239 -0
- datachain-0.1.10/src/datachain/remote/__init__.py +0 -0
- datachain-0.1.10/src/datachain/remote/studio.py +227 -0
- datachain-0.1.10/src/datachain/sql/__init__.py +16 -0
- datachain-0.1.10/src/datachain/sql/default/__init__.py +3 -0
- datachain-0.1.10/src/datachain/sql/default/base.py +22 -0
- datachain-0.1.10/src/datachain/sql/functions/__init__.py +25 -0
- datachain-0.1.10/src/datachain/sql/functions/array.py +38 -0
- datachain-0.1.10/src/datachain/sql/functions/conditional.py +9 -0
- datachain-0.1.10/src/datachain/sql/functions/path.py +61 -0
- datachain-0.1.10/src/datachain/sql/functions/random.py +12 -0
- datachain-0.1.10/src/datachain/sql/functions/string.py +22 -0
- datachain-0.1.10/src/datachain/sql/selectable.py +50 -0
- datachain-0.1.10/src/datachain/sql/sqlite/__init__.py +7 -0
- datachain-0.1.10/src/datachain/sql/sqlite/base.py +332 -0
- datachain-0.1.10/src/datachain/sql/sqlite/types.py +74 -0
- datachain-0.1.10/src/datachain/sql/sqlite/vector.py +15 -0
- datachain-0.1.10/src/datachain/sql/types.py +454 -0
- datachain-0.1.10/src/datachain/sql/utils.py +23 -0
- datachain-0.1.10/src/datachain/storage.py +136 -0
- datachain-0.1.10/src/datachain/utils.py +483 -0
- datachain-0.1.10/src/datachain.egg-info/PKG-INFO +361 -0
- datachain-0.1.10/src/datachain.egg-info/SOURCES.txt +229 -0
- datachain-0.1.10/src/datachain.egg-info/dependency_links.txt +1 -0
- datachain-0.1.10/src/datachain.egg-info/entry_points.txt +2 -0
- datachain-0.1.10/src/datachain.egg-info/requires.txt +63 -0
- datachain-0.1.10/src/datachain.egg-info/top_level.txt +1 -0
- datachain-0.1.10/tests/__init__.py +1 -0
- datachain-0.1.10/tests/benchmarks/__init__.py +0 -0
- datachain-0.1.10/tests/benchmarks/conftest.py +131 -0
- datachain-0.1.10/tests/benchmarks/test_ls.py +2 -0
- datachain-0.1.10/tests/benchmarks/test_version.py +2 -0
- datachain-0.1.10/tests/conftest.py +552 -0
- datachain-0.1.10/tests/data.py +126 -0
- datachain-0.1.10/tests/func/__init__.py +0 -0
- datachain-0.1.10/tests/func/test_catalog.py +1077 -0
- datachain-0.1.10/tests/func/test_client.py +93 -0
- datachain-0.1.10/tests/func/test_dataset_query.py +3756 -0
- datachain-0.1.10/tests/func/test_datasets.py +951 -0
- datachain-0.1.10/tests/func/test_ls.py +384 -0
- datachain-0.1.10/tests/func/test_pull.py +339 -0
- datachain-0.1.10/tests/func/test_pytorch.py +67 -0
- datachain-0.1.10/tests/func/test_query.py +359 -0
- datachain-0.1.10/tests/scripts/feature_class.py +17 -0
- datachain-0.1.10/tests/scripts/feature_class_parallel.py +20 -0
- datachain-0.1.10/tests/scripts/name_len_normal.py +27 -0
- datachain-0.1.10/tests/scripts/name_len_slow.py +46 -0
- datachain-0.1.10/tests/test_cli_e2e.py +219 -0
- datachain-0.1.10/tests/test_query_e2e.py +222 -0
- datachain-0.1.10/tests/unit/__init__.py +0 -0
- datachain-0.1.10/tests/unit/lib/__init__.py +0 -0
- datachain-0.1.10/tests/unit/lib/test_cached_stream.py +82 -0
- datachain-0.1.10/tests/unit/lib/test_datachain.py +550 -0
- datachain-0.1.10/tests/unit/lib/test_datachain_merge.py +170 -0
- datachain-0.1.10/tests/unit/lib/test_feature.py +672 -0
- datachain-0.1.10/tests/unit/lib/test_feature_utils.py +95 -0
- datachain-0.1.10/tests/unit/lib/test_file.py +156 -0
- datachain-0.1.10/tests/unit/lib/test_image.py +82 -0
- datachain-0.1.10/tests/unit/lib/test_parquet.py +33 -0
- datachain-0.1.10/tests/unit/lib/test_reader.py +65 -0
- datachain-0.1.10/tests/unit/lib/test_signal_schema.py +205 -0
- datachain-0.1.10/tests/unit/lib/test_text.py +92 -0
- datachain-0.1.10/tests/unit/lib/test_udf_signature.py +130 -0
- datachain-0.1.10/tests/unit/lib/test_utils.py +58 -0
- datachain-0.1.10/tests/unit/lib/test_webdataset.py +152 -0
- datachain-0.1.10/tests/unit/sql/__init__.py +0 -0
- datachain-0.1.10/tests/unit/sql/sqlite/__init__.py +0 -0
- datachain-0.1.10/tests/unit/sql/sqlite/test_utils.py +15 -0
- datachain-0.1.10/tests/unit/sql/test_array.py +20 -0
- datachain-0.1.10/tests/unit/sql/test_conditional.py +51 -0
- datachain-0.1.10/tests/unit/sql/test_path.py +74 -0
- datachain-0.1.10/tests/unit/sql/test_random.py +8 -0
- datachain-0.1.10/tests/unit/sql/test_selectable.py +27 -0
- datachain-0.1.10/tests/unit/sql/test_string.py +23 -0
- datachain-0.1.10/tests/unit/test_asyn.py +163 -0
- datachain-0.1.10/tests/unit/test_cache.py +56 -0
- datachain-0.1.10/tests/unit/test_catalog.py +170 -0
- datachain-0.1.10/tests/unit/test_catalog_loader.py +187 -0
- datachain-0.1.10/tests/unit/test_cli_parsing.py +125 -0
- datachain-0.1.10/tests/unit/test_client.py +136 -0
- datachain-0.1.10/tests/unit/test_client_s3.py +81 -0
- datachain-0.1.10/tests/unit/test_data_storage.py +171 -0
- datachain-0.1.10/tests/unit/test_database_engine.py +80 -0
- datachain-0.1.10/tests/unit/test_dataset.py +65 -0
- datachain-0.1.10/tests/unit/test_dispatch.py +53 -0
- datachain-0.1.10/tests/unit/test_fileslice.py +64 -0
- datachain-0.1.10/tests/unit/test_id_generator.py +185 -0
- datachain-0.1.10/tests/unit/test_listing.py +140 -0
- datachain-0.1.10/tests/unit/test_metastore.py +55 -0
- datachain-0.1.10/tests/unit/test_query_params.py +39 -0
- datachain-0.1.10/tests/unit/test_serializer.py +92 -0
- datachain-0.1.10/tests/unit/test_session.py +62 -0
- datachain-0.1.10/tests/unit/test_storage.py +222 -0
- datachain-0.1.10/tests/unit/test_udf.py +148 -0
- datachain-0.1.10/tests/unit/test_utils.py +237 -0
- datachain-0.1.10/tests/unit/test_warehouse.py +63 -0
- datachain-0.1.10/tests/utils.py +284 -0
- datachain-0.1.0/LICENSE +0 -674
- datachain-0.1.0/PKG-INFO +0 -19
- datachain-0.1.0/datachain/__init__.py +0 -8
- datachain-0.1.0/datachain/core/__init__.py +0 -2
- datachain-0.1.0/datachain/core/common.py +0 -393
- datachain-0.1.0/datachain/core/lazy.py +0 -103
- datachain-0.1.0/datachain/core/logging.py +0 -4
- datachain-0.1.0/datachain/core/sync.py +0 -97
- datachain-0.1.0/datachain/core/utils.py +0 -23
- datachain-0.1.0/datachain/sources/__init__.py +0 -2
- datachain-0.1.0/pyproject.toml +0 -29
- /datachain-0.1.0/README.md → /datachain-0.1.10/src/datachain/lib/__init__.py +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "https://github.com/iterative/py-template",
|
|
3
|
+
"commit": "867297aa15a0deaf5302edd01a2bc7ab87039627",
|
|
4
|
+
"checkout": null,
|
|
5
|
+
"context": {
|
|
6
|
+
"cookiecutter": {
|
|
7
|
+
"project_name": "datachain",
|
|
8
|
+
"package_name": "datachain",
|
|
9
|
+
"friendly_name": "DataChain",
|
|
10
|
+
"author": "Dmitry Petrov",
|
|
11
|
+
"email": "support@dvc.org",
|
|
12
|
+
"github_user": "iterative",
|
|
13
|
+
"version": "0.0.0",
|
|
14
|
+
"copyright_year": "2022",
|
|
15
|
+
"license": "Apache-2.0",
|
|
16
|
+
"docs": "False",
|
|
17
|
+
"short_description": "Wrangle unstructured AI data at scale",
|
|
18
|
+
"development_status": "Development Status :: 2 - Pre-Alpha",
|
|
19
|
+
"_template": "https://github.com/iterative/py-template"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"directory": null
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: 🐛 Bug Report
|
|
2
|
+
description: Report a bug to help us improve
|
|
3
|
+
labels: bug
|
|
4
|
+
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: description
|
|
8
|
+
attributes:
|
|
9
|
+
label: Description
|
|
10
|
+
description:
|
|
11
|
+
validations:
|
|
12
|
+
required: true
|
|
13
|
+
|
|
14
|
+
- type: textarea
|
|
15
|
+
id: version
|
|
16
|
+
attributes:
|
|
17
|
+
label: Version Info
|
|
18
|
+
description: |
|
|
19
|
+
Please run the following command and copy the output below:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
datachain -V; python -V
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
render: Text
|
|
26
|
+
validations:
|
|
27
|
+
required: false
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
coverage:
|
|
2
|
+
status:
|
|
3
|
+
project:
|
|
4
|
+
default:
|
|
5
|
+
# auto compares coverage to the previous base commit
|
|
6
|
+
target: auto
|
|
7
|
+
# adjust accordingly based on how flaky your tests are
|
|
8
|
+
# this allows a 10% drop from the previous base commit coverage
|
|
9
|
+
threshold: 10%
|
|
10
|
+
# non-blocking status checks
|
|
11
|
+
informational: true
|
|
12
|
+
|
|
13
|
+
flags:
|
|
14
|
+
datachain:
|
|
15
|
+
paths:
|
|
16
|
+
- src/datachain
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
|
|
3
|
+
updates:
|
|
4
|
+
- directory: "/"
|
|
5
|
+
package-ecosystem: "pip"
|
|
6
|
+
schedule:
|
|
7
|
+
interval: "weekly"
|
|
8
|
+
labels:
|
|
9
|
+
- "maintenance"
|
|
10
|
+
|
|
11
|
+
- directory: "/"
|
|
12
|
+
package-ecosystem: "github-actions"
|
|
13
|
+
schedule:
|
|
14
|
+
interval: "weekly"
|
|
15
|
+
labels:
|
|
16
|
+
- "maintenance"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Benchmarks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 0 * * *'
|
|
6
|
+
pull_request:
|
|
7
|
+
types: [opened, reopened, labeled, synchronize]
|
|
8
|
+
workflow_dispatch: {}
|
|
9
|
+
|
|
10
|
+
env:
|
|
11
|
+
FORCE_COLOR: "1"
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-benchmarks') }}
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Set up Python 3.10
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: '3.10'
|
|
25
|
+
cache: 'pip'
|
|
26
|
+
|
|
27
|
+
- name: Upgrade nox and uv
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install --upgrade 'nox[uv]'
|
|
30
|
+
nox --version
|
|
31
|
+
uv --version
|
|
32
|
+
|
|
33
|
+
- name: Run benchmarks
|
|
34
|
+
run: nox -s bench
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
env:
|
|
9
|
+
FORCE_COLOR: "1"
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
release:
|
|
13
|
+
environment: pypi
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
id-token: write
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check out the repository
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
|
|
24
|
+
- name: Set up Python 3.10
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: '3.10'
|
|
28
|
+
|
|
29
|
+
- name: Upgrade nox and uv
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade 'nox[uv]'
|
|
32
|
+
nox --version
|
|
33
|
+
uv --version
|
|
34
|
+
|
|
35
|
+
- name: Build package
|
|
36
|
+
run: nox -s build
|
|
37
|
+
|
|
38
|
+
- name: Upload package
|
|
39
|
+
if: github.event_name == 'release'
|
|
40
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
FORCE_COLOR: "1"
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
lint:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
|
|
21
|
+
- name: Check out the repository
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
|
|
26
|
+
- name: Set up Python 3.9
|
|
27
|
+
uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: '3.9'
|
|
30
|
+
cache: 'pip'
|
|
31
|
+
|
|
32
|
+
- name: Upgrade nox and uv
|
|
33
|
+
run: |
|
|
34
|
+
python -m pip install --upgrade 'nox[uv]'
|
|
35
|
+
nox --version
|
|
36
|
+
uv --version
|
|
37
|
+
|
|
38
|
+
- name: Cache mypy
|
|
39
|
+
uses: actions/cache@v4
|
|
40
|
+
with:
|
|
41
|
+
path: .mypy_cache
|
|
42
|
+
key: mypy-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
|
|
43
|
+
|
|
44
|
+
- name: Cache pre-commit hooks
|
|
45
|
+
uses: actions/cache@v4
|
|
46
|
+
with:
|
|
47
|
+
path: ~/.cache/pre-commit
|
|
48
|
+
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
|
49
|
+
|
|
50
|
+
- name: Lint code
|
|
51
|
+
run: nox -s lint
|
|
52
|
+
|
|
53
|
+
tests:
|
|
54
|
+
timeout-minutes: 25
|
|
55
|
+
runs-on: ${{ matrix.os }}
|
|
56
|
+
strategy:
|
|
57
|
+
fail-fast: false
|
|
58
|
+
matrix:
|
|
59
|
+
os: [ubuntu-latest-8-cores]
|
|
60
|
+
pyv: ['3.9', '3.10', '3.11', '3.12']
|
|
61
|
+
include:
|
|
62
|
+
- os: macos-latest
|
|
63
|
+
pyv: '3.9'
|
|
64
|
+
- os: macos-latest
|
|
65
|
+
pyv: '3.12'
|
|
66
|
+
- os: windows-latest-8-cores
|
|
67
|
+
pyv: '3.9'
|
|
68
|
+
- os: windows-latest-8-cores
|
|
69
|
+
pyv: '3.12'
|
|
70
|
+
|
|
71
|
+
steps:
|
|
72
|
+
|
|
73
|
+
# https://github.com/iterative/pytest-servers/pull/122
|
|
74
|
+
# https://github.com/abiosoft/colima/issues/468
|
|
75
|
+
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
|
|
76
|
+
# colima v0.5.6 seems to run more stable than the latest - that has occasional network failures (ports are not open)
|
|
77
|
+
# see: https://github.com/abiosoft/colima/issues/962
|
|
78
|
+
- name: Use colima as default docker host on MacOS
|
|
79
|
+
if: runner.os == 'macOS'
|
|
80
|
+
run: |
|
|
81
|
+
brew install docker lima || true # avoid non-zero exit code if brew link fails
|
|
82
|
+
sudo curl -L -o /usr/local/bin/colima https://github.com/abiosoft/colima/releases/download/v0.5.6/colima-Darwin-x86_64
|
|
83
|
+
sudo chmod +x /usr/local/bin/colima
|
|
84
|
+
colima start
|
|
85
|
+
sudo ln -vsf "${HOME}"/.colima/default/docker.sock /var/run/docker.sock
|
|
86
|
+
env:
|
|
87
|
+
HOMEBREW_NO_AUTO_UPDATE: true
|
|
88
|
+
HOMEBREW_NO_INSTALL_CLEANUP: true
|
|
89
|
+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: true
|
|
90
|
+
HOMEBREW_NO_INSTALL_UPGRADE: true
|
|
91
|
+
|
|
92
|
+
- name: Check out the repository
|
|
93
|
+
uses: actions/checkout@v4
|
|
94
|
+
with:
|
|
95
|
+
fetch-depth: 0
|
|
96
|
+
|
|
97
|
+
- name: Set up Python ${{ matrix.pyv }}
|
|
98
|
+
uses: actions/setup-python@v5
|
|
99
|
+
with:
|
|
100
|
+
python-version: ${{ matrix.pyv }}
|
|
101
|
+
cache: 'pip'
|
|
102
|
+
|
|
103
|
+
- name: Upgrade nox and uv
|
|
104
|
+
run: |
|
|
105
|
+
python -m pip install --upgrade 'nox[uv]'
|
|
106
|
+
nox --version
|
|
107
|
+
uv --version
|
|
108
|
+
|
|
109
|
+
- name: Skip flaky azure, gs remotes if unavailable on macos
|
|
110
|
+
if: runner.os == 'macOS'
|
|
111
|
+
run: echo 'DATACHAIN_TEST_SKIP_MISSING_REMOTES=azure,gs' >> "$GITHUB_ENV"
|
|
112
|
+
|
|
113
|
+
- name: Run tests
|
|
114
|
+
run: nox -s tests-${{ matrix.pyv }}
|
|
115
|
+
|
|
116
|
+
- name: Upload coverage report
|
|
117
|
+
uses: codecov/codecov-action@v4
|
|
118
|
+
with:
|
|
119
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
120
|
+
files: coverage.xml
|
|
121
|
+
flags: datachain
|
|
122
|
+
|
|
123
|
+
- name: Build package
|
|
124
|
+
run: nox -s build
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Update template
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '5 1 * * *' # every day at 01:05
|
|
6
|
+
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
update:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Check out the repository
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Update template
|
|
17
|
+
uses: iterative/py-template@main
|
|
18
|
+
with:
|
|
19
|
+
token: ${{ secrets.UPDATE_TEMPLATE_TOKEN || secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib64/
|
|
18
|
+
parts/
|
|
19
|
+
sdist/
|
|
20
|
+
var/
|
|
21
|
+
wheels/
|
|
22
|
+
share/python-wheels/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
.installed.cfg
|
|
25
|
+
*.egg
|
|
26
|
+
MANIFEST
|
|
27
|
+
|
|
28
|
+
# PyInstaller
|
|
29
|
+
# Usually these files are written by a python script from a template
|
|
30
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Installer logs
|
|
35
|
+
pip-log.txt
|
|
36
|
+
pip-delete-this-directory.txt
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.nox/
|
|
42
|
+
.coverage
|
|
43
|
+
.coverage.*
|
|
44
|
+
.cache
|
|
45
|
+
nosetests.xml
|
|
46
|
+
coverage.xml
|
|
47
|
+
*.cover
|
|
48
|
+
*.py,cover
|
|
49
|
+
.hypothesis/
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
cover/
|
|
52
|
+
|
|
53
|
+
# Translations
|
|
54
|
+
*.mo
|
|
55
|
+
*.pot
|
|
56
|
+
|
|
57
|
+
# Django stuff:
|
|
58
|
+
*.log
|
|
59
|
+
local_settings.py
|
|
60
|
+
db.sqlite3
|
|
61
|
+
db.sqlite3-journal
|
|
62
|
+
|
|
63
|
+
# Flask stuff:
|
|
64
|
+
instance/
|
|
65
|
+
.webassets-cache
|
|
66
|
+
|
|
67
|
+
# Scrapy stuff:
|
|
68
|
+
.scrapy
|
|
69
|
+
|
|
70
|
+
# Sphinx documentation
|
|
71
|
+
docs/_build/
|
|
72
|
+
|
|
73
|
+
# PyBuilder
|
|
74
|
+
.pybuilder/
|
|
75
|
+
target/
|
|
76
|
+
|
|
77
|
+
# Jupyter Notebook
|
|
78
|
+
.ipynb_checkpoints
|
|
79
|
+
|
|
80
|
+
# IPython
|
|
81
|
+
profile_default/
|
|
82
|
+
ipython_config.py
|
|
83
|
+
|
|
84
|
+
# pyenv
|
|
85
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
86
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
87
|
+
# .python-version
|
|
88
|
+
|
|
89
|
+
# pipenv
|
|
90
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
91
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
92
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
93
|
+
# install all needed dependencies.
|
|
94
|
+
#Pipfile.lock
|
|
95
|
+
|
|
96
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
97
|
+
__pypackages__/
|
|
98
|
+
|
|
99
|
+
# Celery stuff
|
|
100
|
+
celerybeat-schedule
|
|
101
|
+
celerybeat.pid
|
|
102
|
+
|
|
103
|
+
# SageMath parsed files
|
|
104
|
+
*.sage.py
|
|
105
|
+
|
|
106
|
+
# Environments
|
|
107
|
+
.env
|
|
108
|
+
.venv
|
|
109
|
+
env/
|
|
110
|
+
venv/
|
|
111
|
+
ENV/
|
|
112
|
+
env.bak/
|
|
113
|
+
venv.bak/
|
|
114
|
+
|
|
115
|
+
# Spyder project settings
|
|
116
|
+
.spyderproject
|
|
117
|
+
.spyproject
|
|
118
|
+
|
|
119
|
+
# Rope project settings
|
|
120
|
+
.ropeproject
|
|
121
|
+
|
|
122
|
+
# mkdocs documentation
|
|
123
|
+
/site
|
|
124
|
+
|
|
125
|
+
# mypy
|
|
126
|
+
.mypy_cache/
|
|
127
|
+
.dmypy.json
|
|
128
|
+
dmypy.json
|
|
129
|
+
|
|
130
|
+
# Pyre type checker
|
|
131
|
+
.pyre/
|
|
132
|
+
|
|
133
|
+
# pytype static type analyzer
|
|
134
|
+
.pytype/
|
|
135
|
+
|
|
136
|
+
# Cython debug symbols
|
|
137
|
+
cython_debug/
|
|
138
|
+
|
|
139
|
+
# setuptools-scm
|
|
140
|
+
/src/datachain/_version.py
|
|
141
|
+
|
|
142
|
+
.idea/
|
|
143
|
+
.vscode/
|
|
144
|
+
.datachain/
|
|
145
|
+
.dvcx/
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
default_language_version:
|
|
2
|
+
python: python3
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v4.6.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: check-added-large-files
|
|
8
|
+
- id: check-case-conflict
|
|
9
|
+
- id: check-docstring-first
|
|
10
|
+
exclude: '^examples/'
|
|
11
|
+
- id: check-executables-have-shebangs
|
|
12
|
+
- id: check-json
|
|
13
|
+
- id: check-merge-conflict
|
|
14
|
+
args: ['--assume-in-merge']
|
|
15
|
+
- id: check-toml
|
|
16
|
+
- id: check-yaml
|
|
17
|
+
- id: end-of-file-fixer
|
|
18
|
+
- id: mixed-line-ending
|
|
19
|
+
args: ['--fix=lf']
|
|
20
|
+
- id: sort-simple-yaml
|
|
21
|
+
- id: trailing-whitespace
|
|
22
|
+
exclude: '^LICENSES/'
|
|
23
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
24
|
+
rev: 'v0.4.9'
|
|
25
|
+
hooks:
|
|
26
|
+
- id: ruff
|
|
27
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
28
|
+
- id: ruff-format
|
|
29
|
+
- repo: https://github.com/codespell-project/codespell
|
|
30
|
+
rev: v2.3.0
|
|
31
|
+
hooks:
|
|
32
|
+
- id: codespell
|
|
33
|
+
additional_dependencies: ["tomli"]
|
|
34
|
+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
35
|
+
rev: v2.13.0
|
|
36
|
+
hooks:
|
|
37
|
+
- id: pretty-format-toml
|
|
38
|
+
args: [--autofix, --no-sort]
|
|
39
|
+
- id: pretty-format-yaml
|
|
40
|
+
args: [--autofix, --indent, '2', '--offset', '2', --preserve-quotes]
|
|
41
|
+
- repo: local
|
|
42
|
+
hooks:
|
|
43
|
+
- id: mypy
|
|
44
|
+
name: mypy
|
|
45
|
+
entry: mypy
|
|
46
|
+
files: '^src/|^tests/'
|
|
47
|
+
language: system
|
|
48
|
+
types: [python]
|
|
49
|
+
require_serial: true
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
2
|
+
Upstream-Name: dvcx
|
|
3
|
+
Upstream-Contact: Iterative, Inc. <support@iterative.ai>
|
|
4
|
+
Source: https://github.com/iterative/dvcx
|
|
5
|
+
|
|
6
|
+
Files: *
|
|
7
|
+
Copyright: 2017-2021 Iterative, Inc.
|
|
8
|
+
License: Apache-2.0
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
Contributor Covenant Code of Conduct
|
|
2
|
+
====================================
|
|
3
|
+
|
|
4
|
+
Our Pledge
|
|
5
|
+
----------
|
|
6
|
+
|
|
7
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
8
|
+
|
|
9
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Our Standards
|
|
13
|
+
-------------
|
|
14
|
+
|
|
15
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
16
|
+
|
|
17
|
+
- Demonstrating empathy and kindness toward other people
|
|
18
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
19
|
+
- Giving and gracefully accepting constructive feedback
|
|
20
|
+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
21
|
+
- Focusing on what is best not just for us as individuals, but for the overall community
|
|
22
|
+
|
|
23
|
+
Examples of unacceptable behavior include:
|
|
24
|
+
|
|
25
|
+
- The use of sexualized language or imagery, and sexual attention or
|
|
26
|
+
advances of any kind
|
|
27
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
28
|
+
- Public or private harassment
|
|
29
|
+
- Publishing others' private information, such as a physical or email
|
|
30
|
+
address, without their explicit permission
|
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
Enforcement Responsibilities
|
|
35
|
+
----------------------------
|
|
36
|
+
|
|
37
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
38
|
+
|
|
39
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
Scope
|
|
43
|
+
-----
|
|
44
|
+
|
|
45
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Enforcement
|
|
49
|
+
-----------
|
|
50
|
+
|
|
51
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at support@dvc.org. All complaints will be reviewed and investigated promptly and fairly.
|
|
52
|
+
|
|
53
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
Enforcement Guidelines
|
|
57
|
+
----------------------
|
|
58
|
+
|
|
59
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
1. Correction
|
|
63
|
+
~~~~~~~~~~~~~
|
|
64
|
+
|
|
65
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
66
|
+
|
|
67
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
2. Warning
|
|
71
|
+
~~~~~~~~~~
|
|
72
|
+
|
|
73
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
|
74
|
+
|
|
75
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
3. Temporary Ban
|
|
79
|
+
~~~~~~~~~~~~~~~~
|
|
80
|
+
|
|
81
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
82
|
+
|
|
83
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
4. Permanent Ban
|
|
87
|
+
~~~~~~~~~~~~~~~~
|
|
88
|
+
|
|
89
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
90
|
+
|
|
91
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
Attribution
|
|
95
|
+
-----------
|
|
96
|
+
|
|
97
|
+
This Code of Conduct is adapted from the `Contributor Covenant <homepage_>`__, version 2.0,
|
|
98
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct/.
|
|
99
|
+
|
|
100
|
+
Community Impact Guidelines were inspired by `Mozilla’s code of conduct enforcement ladder <https://github.com/mozilla/inclusion>`__.
|
|
101
|
+
|
|
102
|
+
.. _homepage: https://www.contributor-covenant.org
|
|
103
|
+
|
|
104
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
105
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|