Skip to main content

Speed up file transfers with the baseten.co + baseten_fs.

Project description

Truss-Transfer

Python-optional download utility

pip install truss-transfer
# pip install /workspace/model-performance/michaelfeil/truss/truss-transfer/target/wheels/truss_transfer-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl
import truss_transfer

def lazy_data_loader(download_dir: str):
    print(f"download using {truss_transfer.__version__}")
    try:
        truss_transfer.lazy_data_resolve(str(download_dir))
    except Exception as e:
        print(f"Lazy data resolution failed: {e}")
        raise

Environment variables:

BASETEN_FS_ENABLED=0
TRUSS_TRANSFER_DOWNLOAD_DIR="/tmp/bptr-resolved"

Running the CLI as binary

Compiling the libary as musl-linux target for cross-platform usage.

# Add one-time installations
# apt-get install -y musl-tools libssl-dev libatomic-ops-dev
# rustup target add x86_64-unknown-linux-musl

# To build with cargo:
cargo build --release --target x86_64-unknown-linux-musl --features cli --bin truss_transfer_cli
# To run the binary
./target/x86_64-unknown-linux-musl/release/truss_transfer_cli /tmp/ptr

Building a wheel from source

Prerequisites:

# apt-get install patchelf
# Install rust via Rustup https://www.rust-lang.org/tools/install
pip install maturin==1.8.1

This will build you the wheels for your current python3 --version. The output should look like this:

maturin build --release
🔗 Found pyo3 bindings
🐍 Found CPython 3.9 at /workspace/model-performance/michaelfeil/.asdf/installs/python/3.9.21/bin/python3
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.75s
🖨  Copied external shared libraries to package truss_transfer.libs directory:
    /usr/lib/x86_64-linux-gnu/libssl.so.3
    /usr/lib/x86_64-linux-gnu/libcrypto.so.3
📦 Built wheel for CPython 3.9 to /workspace/model-performance/michaelfeil/truss/truss-transfer/target/wheels/truss_transfer-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

truss_transfer-0.0.5.tar.gz (20.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_i686.whl (3.8 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_armv7l.whl (3.5 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.5 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl (3.7 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ i686

truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.2 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARMv7l

truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

truss_transfer-0.0.5-cp313-cp313t-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

truss_transfer-0.0.5-cp313-cp313t-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

truss_transfer-0.0.5-cp38-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.8+Windows x86-64

truss_transfer-0.0.5-cp38-abi3-win32.whl (1.2 MB view details)

Uploaded CPython 3.8+Windows x86

truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_i686.whl (3.8 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ i686

truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_armv7l.whl (3.5 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARMv7l

truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ ARM64

truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ppc64le

truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (3.7 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARMv7l

truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

truss_transfer-0.0.5-cp38-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

truss_transfer-0.0.5-cp38-abi3-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file truss_transfer-0.0.5.tar.gz.

File metadata

  • Download URL: truss_transfer-0.0.5.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.8.3

File hashes

Hashes for truss_transfer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c1dce65f094129ffa1d2fd9ceaa93e1bf43188da3fd6c0c8c43d56708727b3df
MD5 6f07644aca930eee629c472deb63ad2d
BLAKE2b-256 c91a4c0be285ce69d925ca854bc274d9690af7c6f1f599ce984405a0a9710694

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c09068f5b0fa9087954da949413866215e46955248e6018f82460a2dc69ebbc0
MD5 6fbb1c72073be7a3419e6593972f49d8
BLAKE2b-256 93effb53e20fe956734f12ee53b2dd264fc3d23480ea8b7c7e20410ef223e359

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 39baa80decaa3502e25a79f07680c40cf98795151d317c7e5792ae4f8befa972
MD5 a41814995eb5c367f923dab928a22847
BLAKE2b-256 21aa5f26af84e844e2b198b7f4a8fa3b92e9d43f53e10b7554dc8e21c1771a84

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 61910a2d597e390d7de5d8608912c5e8a6edf195b55865baba2dbfcfc9b83bb6
MD5 060663b481ac69d190ec3120690b6ad3
BLAKE2b-256 d10cdfccb53084cc36cc32f39bcdfb790670627b36615cabaa6e36abc0aab4a7

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 23a25cdf99dad162cf64afda5c205a5be329c346d1dd01ba9482886907978d61
MD5 b01f7dc3baaac52eaa7235e5021856cd
BLAKE2b-256 39c6454aec183e4d67b611b425640e1c356a3382df2a809dca8bfedb1e9225e6

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5f927f6505a0827ea6bd5145abe4ee7a72e1c879905341126ecfac40921d8e8
MD5 2e4cffed57f8bd7e1968c4df3b29a504
BLAKE2b-256 0e8fbbfa6e7a85982353bbcf217e320590d0c533a6a8b716b29701f4f25dda4e

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 364e17905d5a13d5fb6b98a6c0da50196726054020ef0f74dad61b3d1a0149e9
MD5 89ab5e7f6f4b35b073cab03d73704afb
BLAKE2b-256 ceff8f06ccd6868c4d74167036d82f1e961f5b3db77551bb6f75fbd5908c782f

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 21add4a4a55cb0d85b9c0db6bfa3ba7a7aedd655600c9ec2339f4d922beec758
MD5 9c362c068f566a4a2fd67a90c19493ac
BLAKE2b-256 49aaeb1b531bda0da5dcc9db875415e2c16e49d2d112f69bda2e0b231c99bd44

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 a094aff415139f43538dce8baa30fe85ab1ab8638ae5e7ca4707ef1b514171cf
MD5 635f2bd76cf4037974f7ea93360ca800
BLAKE2b-256 4590128a585ec338801ce3c8d212980348738a1d51011b2fbfff89e393195d3c

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b466ce5946eeb25d82345765fc2014617a84d909a8ae5ec17b49979cb21333ae
MD5 317ebea86bf381086683884877041ca4
BLAKE2b-256 39e258cdc6b13adc4497615a9ec66d64cafca1c487112a6be30b84fb287780c9

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df16209149273ea93df384f7eccac26a27ad1fcd674eea20cdb4635b4c089982
MD5 c0b08073a60d174036de994734ce453d
BLAKE2b-256 e30cd94ea4d3e2ad27cc1ca25e77ed56927586644fb50b0b95cf8a379f47452f

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 33e02103a1d53955f3db386e97005a7fa08ef9c0b211067445546a9e731a0b3b
MD5 210b7d7543f1140f5561b5a2c702d613
BLAKE2b-256 5a0445dbc6c6c1a6959ccb76430630d94a3663b5ecdd77720107eda5eb215e13

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 988e69380011464b720430231b064f3876d79ec9601c4d93b6e6615fa30fea55
MD5 103cc41d596d0bf69928a3db6e1674c9
BLAKE2b-256 c17cf1acba27f8a8284c6c7c5373bcd6c14672543ada129dc532dea9362cbdf5

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-win32.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 ed441f36c98551ce769472ca6c42625499db2c7eeb7bce0fa8971ae2e362a2b0
MD5 05eed3e2cec62801a4e5d661435df9a3
BLAKE2b-256 a95c2d6710e853c1951b88386c88db4a71b30b02426c9efbc91e799a8fd06a13

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aaa4b5732a7cf74cc9ab79d64fcacca361955810209a6cd67e14572e71af90e4
MD5 a572a4972dcc17e955c6f97fabe4b838
BLAKE2b-256 87bc77af750e3985d43c8cd9005d2b56f242d85250743fbd0e114114f6fc7992

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 10d3723c8df924c18b218d7a7ee5715721fc7ce42c00a1190d669b52ac89ba90
MD5 9e0bb1b0db08538a9c8b6e7e8ca32b88
BLAKE2b-256 a2987721f4d558f19d2b01f5cb9fc163ac039d2ffafd0a8d54e9515548d55e60

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 dde8e732b3101c4a96cd0da71776a126bc3921bfc4422fcdd6d111daf3eaf79b
MD5 6e4e811ddf2eb01400ae1437fa6653f2
BLAKE2b-256 9298691bb442717434cdc0839dba7d1c354b4e40d1f67fc11cd55cb439dc714a

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 07314af27082ad8d125b5c1adfe0d1a4ffaf870f8ef362c85e96eabe3068f031
MD5 54ed00c7db964f00826048480c047cec
BLAKE2b-256 20dc358c3863afd5fb097532ce481d083f04411caa50336e7b8f2e4105060acc

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 435c73f05b2214f12852e689a16f1049592c038751ea9a8fd78b9ca63ea5de3e
MD5 9bd3ccf1ffd93bdd12e8e62cb9e2b912
BLAKE2b-256 5a7777f4bcf2371a8cbc406600193c2c2397a9fb715f19d2a7af09108e74818d

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 87a45dad1c345b8f5a3608033f6726e2ee763676530eed57952da2a05e8d41e7
MD5 bb058f180c2241ccc53a5e4766a4a418
BLAKE2b-256 47299ed0b2b9068b74bdf9c45d79b22e20d7c0095a0e5298c5bad87c8e6a36e9

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 bd36dfe9230ae7121e85ea9ee12fb385f5b4f9afd430e81f54faeb20cd31bba5
MD5 1265a920350aa8b853f6f39261de1cb4
BLAKE2b-256 6caaf0c21ea0c130feee32bc293a67366c7de5a8f34e9f93bb7664146d9af9cd

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 322eee9611b2af77649a935b2f57ec7e75b908e0a215a13c474aa984f99f81b8
MD5 54a9f13a529f6a7af3559a77a8da0aea
BLAKE2b-256 fb644d4a21b5bcdb01589aa5a9ea1871aa361a5518c6dfc835ef4bcdc6c42882

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e44428d93716f5d5ff9652fed2ba961049b948c3308569f453a15a3c1bafa8e9
MD5 3934f2edc167d50b936551c678e96a1b
BLAKE2b-256 339000b9ccee7496b15fb3f388f2f6f1a35bfe7ee7ab824a5789ad9dc6b38ed8

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ef95388219e59611b64d98fa407b99dbfe43c7301e87e646767e7d3dcf3ba1b
MD5 25315a95e1e632ce44ed3e36078214e0
BLAKE2b-256 eb8caa518037f6ca331a4a60ccfd41e15936513ff9afbdc2174d5391e022cbd5

See more details on using hashes here.

File details

Details for the file truss_transfer-0.0.5-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for truss_transfer-0.0.5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b46ebcffcf9b69d19af049c485e2576aa5aab9cb00b98e093191e9b9bfd98ba8
MD5 3b35fd328aa6835560f9a248e38c8a93
BLAKE2b-256 ada2c9d443280dec0f075cbf591bd5fd7a2ae513a934e1738a7dd65d9fb286cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page