dataio-rs 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dataio_rs-0.2.1/.cargo/config.toml +2 -0
- dataio_rs-0.2.1/.github/workflows/ci.yml +106 -0
- dataio_rs-0.2.1/.gitignore +12 -0
- dataio_rs-0.2.1/Cargo.lock +4886 -0
- dataio_rs-0.2.1/Cargo.toml +103 -0
- dataio_rs-0.2.1/PKG-INFO +158 -0
- dataio_rs-0.2.1/README.md +141 -0
- dataio_rs-0.2.1/benches/_image_pipeline.py +63 -0
- dataio_rs-0.2.1/benches/bench_collate_paths.py +183 -0
- dataio_rs-0.2.1/benches/bench_loader_matrix.py +418 -0
- dataio_rs-0.2.1/benches/bench_pinned_h2d.py +156 -0
- dataio_rs-0.2.1/benches/transforms.rs +239 -0
- dataio_rs-0.2.1/examples/load_archive.py +116 -0
- dataio_rs-0.2.1/examples/load_image_batch.py +49 -0
- dataio_rs-0.2.1/examples/load_npy_dataset.py +48 -0
- dataio_rs-0.2.1/examples/load_safetensors_latents.py +55 -0
- dataio_rs-0.2.1/pyproject.toml +32 -0
- dataio_rs-0.2.1/python/dataio/__init__.py +106 -0
- dataio_rs-0.2.1/python/dataio/__init__.pyi +166 -0
- dataio_rs-0.2.1/python/dataio/_batch.py +115 -0
- dataio_rs-0.2.1/python/dataio/_batches.py +138 -0
- dataio_rs-0.2.1/python/dataio/_dataloader.py +84 -0
- dataio_rs-0.2.1/python/dataio/_dataset.py +547 -0
- dataio_rs-0.2.1/python/dataio/_samples.py +37 -0
- dataio_rs-0.2.1/python/dataio/_types.py +16 -0
- dataio_rs-0.2.1/python/dataio/lib.pyi +767 -0
- dataio_rs-0.2.1/python/dataio/ops.py +32 -0
- dataio_rs-0.2.1/python/dataio/py.typed +1 -0
- dataio_rs-0.2.1/python/tests/__init__.py +1 -0
- dataio_rs-0.2.1/python/tests/test_public_api.py +587 -0
- dataio_rs-0.2.1/src/archive.rs +392 -0
- dataio_rs-0.2.1/src/auth.rs +391 -0
- dataio_rs-0.2.1/src/batch.rs +292 -0
- dataio_rs-0.2.1/src/bytes_op.rs +282 -0
- dataio_rs-0.2.1/src/collate.rs +708 -0
- dataio_rs-0.2.1/src/cuda.rs +324 -0
- dataio_rs-0.2.1/src/decoder/bytes_passthrough.rs +26 -0
- dataio_rs-0.2.1/src/decoder/image.rs +294 -0
- dataio_rs-0.2.1/src/decoder/mod.rs +325 -0
- dataio_rs-0.2.1/src/decoder/npy.rs +501 -0
- dataio_rs-0.2.1/src/decoder/pt.rs +921 -0
- dataio_rs-0.2.1/src/decoder/safetensors.rs +423 -0
- dataio_rs-0.2.1/src/dlpack.rs +555 -0
- dataio_rs-0.2.1/src/error.rs +64 -0
- dataio_rs-0.2.1/src/executor.rs +386 -0
- dataio_rs-0.2.1/src/lib.rs +86 -0
- dataio_rs-0.2.1/src/loader.rs +805 -0
- dataio_rs-0.2.1/src/optimizer.rs +210 -0
- dataio_rs-0.2.1/src/plan.rs +1004 -0
- dataio_rs-0.2.1/src/process.rs +55 -0
- dataio_rs-0.2.1/src/request.rs +175 -0
- dataio_rs-0.2.1/src/rng.rs +94 -0
- dataio_rs-0.2.1/src/runtime.rs +38 -0
- dataio_rs-0.2.1/src/scheduler.rs +601 -0
- dataio_rs-0.2.1/src/schema.rs +75 -0
- dataio_rs-0.2.1/src/source.rs +950 -0
- dataio_rs-0.2.1/src/stats.rs +118 -0
- dataio_rs-0.2.1/src/storage.rs +382 -0
- dataio_rs-0.2.1/src/transform/affine.rs +224 -0
- dataio_rs-0.2.1/src/transform/augment.rs +210 -0
- dataio_rs-0.2.1/src/transform/geometric.rs +787 -0
- dataio_rs-0.2.1/src/transform/mod.rs +1547 -0
- dataio_rs-0.2.1/src/transform/pixel.rs +798 -0
- dataio_rs-0.2.1/src/transform/simd_blur.rs +383 -0
- dataio_rs-0.2.1/src/transform/simd_u8.rs +177 -0
- dataio_rs-0.2.1/src/transform/tests.rs +762 -0
- dataio_rs-0.2.1/src/transform/validation.rs +104 -0
- dataio_rs-0.2.1/src/transport/file.rs +173 -0
- dataio_rs-0.2.1/src/transport/http.rs +176 -0
- dataio_rs-0.2.1/src/transport/mod.rs +259 -0
- dataio_rs-0.2.1/src/transport/object_storage.rs +501 -0
- dataio_rs-0.2.1/uv.lock +8 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, master]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
env:
|
|
9
|
+
CARGO_TERM_COLOR: always
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
linter:
|
|
13
|
+
name: Linter
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
19
|
+
with:
|
|
20
|
+
components: clippy, rustfmt
|
|
21
|
+
|
|
22
|
+
- name: Install native linkers
|
|
23
|
+
run: |
|
|
24
|
+
sudo apt-get update
|
|
25
|
+
sudo apt-get install -y build-essential binutils lld mold
|
|
26
|
+
|
|
27
|
+
- uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.12"
|
|
30
|
+
|
|
31
|
+
- uses: astral-sh/setup-uv@v5
|
|
32
|
+
with:
|
|
33
|
+
enable-cache: true
|
|
34
|
+
cache-dependency-glob: |
|
|
35
|
+
pyproject.toml
|
|
36
|
+
uv.lock
|
|
37
|
+
|
|
38
|
+
- name: Cache cargo
|
|
39
|
+
uses: Swatinem/rust-cache@v2
|
|
40
|
+
with:
|
|
41
|
+
shared-key: linux-linter
|
|
42
|
+
cache-on-failure: true
|
|
43
|
+
|
|
44
|
+
- name: Rust format
|
|
45
|
+
run: cargo fmt --all -- --check
|
|
46
|
+
|
|
47
|
+
- name: Rust lint
|
|
48
|
+
run: cargo clippy --locked --all-targets -- -D warnings
|
|
49
|
+
|
|
50
|
+
- name: Python lint
|
|
51
|
+
run: uvx ruff check python examples benches
|
|
52
|
+
|
|
53
|
+
builder:
|
|
54
|
+
name: Builder
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
strategy:
|
|
57
|
+
fail-fast: false
|
|
58
|
+
matrix:
|
|
59
|
+
python-version: ["3.9", "3.12"]
|
|
60
|
+
steps:
|
|
61
|
+
- uses: actions/checkout@v4
|
|
62
|
+
|
|
63
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
64
|
+
|
|
65
|
+
- name: Install native linkers
|
|
66
|
+
run: |
|
|
67
|
+
sudo apt-get update
|
|
68
|
+
sudo apt-get install -y build-essential binutils lld mold
|
|
69
|
+
|
|
70
|
+
- uses: actions/setup-python@v5
|
|
71
|
+
with:
|
|
72
|
+
python-version: ${{ matrix.python-version }}
|
|
73
|
+
|
|
74
|
+
- uses: astral-sh/setup-uv@v5
|
|
75
|
+
with:
|
|
76
|
+
enable-cache: true
|
|
77
|
+
cache-dependency-glob: |
|
|
78
|
+
pyproject.toml
|
|
79
|
+
uv.lock
|
|
80
|
+
|
|
81
|
+
- name: Cache cargo
|
|
82
|
+
uses: Swatinem/rust-cache@v2
|
|
83
|
+
with:
|
|
84
|
+
shared-key: linux-builder-py${{ matrix.python-version }}
|
|
85
|
+
cache-on-failure: true
|
|
86
|
+
|
|
87
|
+
- name: Rust tests
|
|
88
|
+
run: cargo test --locked
|
|
89
|
+
|
|
90
|
+
- name: Build wheel
|
|
91
|
+
run: uvx maturin build --release --locked --out dist
|
|
92
|
+
|
|
93
|
+
- name: Install wheel
|
|
94
|
+
run: uv pip install --system dist/*.whl
|
|
95
|
+
|
|
96
|
+
- name: Install test dependencies
|
|
97
|
+
run: uv pip install --system numpy
|
|
98
|
+
|
|
99
|
+
- name: Python tests
|
|
100
|
+
run: python -m unittest discover -s python/tests -p 'test_*.py'
|
|
101
|
+
|
|
102
|
+
- name: Upload wheel artifact
|
|
103
|
+
uses: actions/upload-artifact@v4
|
|
104
|
+
with:
|
|
105
|
+
name: dataio-rs-wheel-py${{ matrix.python-version }}
|
|
106
|
+
path: dist/*.whl
|