Skip to main content

unibox provides unified interface for common file operations

Reason this release was yanked:

breaks on mac

Project description

unibox

ci documentation pypi version gitter

A unified interface for seamless file operations across local, S3, and Hugging Face ecosystems.

unibox simplifies loading, saving, and exploring data—whether it's a local CSV, an S3-hosted image, or an entire Hugging Face dataset. With a single API, you can handle diverse file types and storage backends effortlessly.

Installation

pip install unibox

Or with uv:

uv tool install unibox

Quick Start

Load anything, anywhere:

import unibox as ub

# Local parquet file
df = ub.loads("data/sample.parquet")

# S3-hosted text file
lines = ub.loads("s3://my-bucket/notes.txt")

# Hugging Face dataset
dataset = ub.loads("hf://user/repo")

Save with ease:

ub.saves(df, "s3://my-bucket/processed.parquet")
ub.saves(dataset, "hf://my-org/new-dataset")

List files or peek at data:

# List all JPGs in an S3 folder
images = ub.ls("s3://bucket/images", exts=[".jpg"])

# Preview a dataset
ub.peeks(dataset)

Why unibox?

  • Versatile: Handles CSVs, images, datasets, and more—locally or remotely.
  • Simple: One function call to load or save, no matter the source.
  • Transformative: From quick data peeks to concurrent downloads, it scales with your needs.

Explore the full power in our documentation.

Contributing

Love unibox? Join us! Check out CONTRIBUTING.md to get started.

Extra dev notes: see README_dev.md.

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

unibox-0.8.1.tar.gz (208.2 kB view details)

Uploaded Source

Built Distribution

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

unibox-0.8.1-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file unibox-0.8.1.tar.gz.

File metadata

  • Download URL: unibox-0.8.1.tar.gz
  • Upload date:
  • Size: 208.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for unibox-0.8.1.tar.gz
Algorithm Hash digest
SHA256 778a09a7fda1b9ced3dd07b593d6807f6be5b4c9b577c7130a35a3889ed7530f
MD5 ff914cfe7c45cbe937061060e884e23a
BLAKE2b-256 fe1c6c3ec8518d7811c7db88820c6ca41927be8add55a538881501215618c460

See more details on using hashes here.

File details

Details for the file unibox-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: unibox-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for unibox-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0437f86b78b014172eea6d2a8a3a64db5d1c1d769e9e5f6ce94cfb57a51b3793
MD5 c0c9c7890d7fbadf13fc55b43856112a
BLAKE2b-256 2c7a409a5facc5d0525b1456bcbca1a1a1b7b214d7644223c18645de849f5da8

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