HELIX SDK
Semantic image compression for AI training. Convert images into compact blueprints containing identity-critical information for regeneration at any resolution.
What's New in 1.0.2
- 🌐 Remote Mode - Use HELIX via API without heavy local dependencies
- 📦 Lightweight Install - Core package now only requires
httpx,numpy,pillow - 🏢 Data Center Ready - Perfect for cloud storage and on-demand materialization
Features
- 10-20x compression - Store blueprints, not pixels
- On-demand materialization - Reconstruct at 256p to 8K from same file
- Infinite variants - Generate augmentation variants per image
- ML-ready loaders - PyTorch-compatible Dataset and DataLoader
- Remote or Local - Use API or run locally with full models
Installation
# Lightweight (Remote Mode - recommended for most users)
pip install helix-sdk
# With local processing (requires Gemini API key)
pip install helix-sdk[local]
# With PyTorch support
pip install helix-sdk[ml]
Quick Start
Remote Mode (Recommended)
from helix_sdk import HelixSDK
# Connect to HELIX API (no local models needed!)
sdk = HelixSDK(base_url="https://api.helix-codec.dev")
# Compress - sends image to API, receives .hlx
result = sdk.compress("image.jpg", "image.hlx")
# Materialize at any resolution
sdk.materialize("image.hlx", "output.png", resolution="4K")
Local Mode
from helix_sdk import HelixSDK
# Use local models (requires pip install helix-sdk[local])
sdk = HelixSDK(mode="local", api_key="your-gemini-key")
sdk.compress("image.jpg", "image.hlx")
sdk.materialize("image.hlx", "output.png", resolution="4K")
ML Training
from helix_sdk import HelixDataset, HelixLoader
# Works with both local and remote mode!
dataset = HelixDataset(
"/data/hlx/",
target_resolution="512p",
base_url="https://api.helix-codec.dev" # Optional: use API
)
loader = HelixLoader(dataset, batch_size=64, num_workers=4)
for batch in loader:
model.train_step(batch)
API Reference
HelixSDK
HelixSDK(
api_key=None, # Gemini API key (for local mode)
base_url=None, # HELIX API URL (enables remote mode)
mode="auto", # "auto", "local", or "remote"
default_resolution="1080p"
)
| Method | Description |
|---|---|
compress(input, output) |
Compress image to HLX |
materialize(input, output, resolution) |
Reconstruct from HLX |
compress_directory(in_dir, out_dir) |
Batch compression |
get_info(hlx_path) |
Get HLX metadata |
HelixDataset
HelixDataset(
path="/data/hlx/",
target_resolution="512p",
enable_variants=True,
cache_materializations=True,
base_url=None, # Optional: enable remote mode
api_key=None
)
BatchCompressor
from helix_sdk import BatchCompressor
compressor = BatchCompressor(workers=8)
stats = compressor.compress_directory("/images/", "/hlx/")
CLI
helix compress image.jpg
helix materialize image.hlx -r 4K
helix batch /images/ /output/ -w 8
helix info image.hlx
Environment Variables
| Variable | Description |
|---|---|
HELIX_API_URL |
Default API URL for remote mode |
GEMINI_API_KEY |
Gemini API key for local mode |
Benchmarks
| Metric | Value |
|---|---|
| Compression Ratio | 10-20x |
| Identity Match (SSIM) | 98.7% |
| Materialization Time | ~3s |
Requirements
- Python >= 3.10
- For local mode: Gemini API key (
GEMINI_API_KEY) - For remote mode: HELIX API access (
HELIX_API_URL)
License
MIT
Metadata
Release files for helix-sdk 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| helix_sdk-1.0.3.tar.gz | 100.4 kB | Without provenance | Details for helix_sdk-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| helix_sdk-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for helix_sdk-1.0.3-py3-none-any.whl |
Total release size: 206.9 kB
Release files / helix_sdk-1.0.3.tar.gz
| Download URL | helix_sdk-1.0.3.tar.gz |
|---|---|
| Size | 100.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9413bdf66beceaee15f0b2d9da0a74e94cba9ac8acd461b331957e65b3a98049
|
|
BLAKE2b-256 checksum How to use checksums |
9cb9fc901391f3b15fb0374e5609533900d47f5c36c0ce62edcce8a89412481f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / helix_sdk-1.0.3-py3-none-any.whl
| Download URL | helix_sdk-1.0.3-py3-none-any.whl |
|---|---|
| Size | 106.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4e93ce74665e67445dab1df841aafc46564a906fc7a520285324976507b6006
|
|
BLAKE2b-256 checksum How to use checksums |
6b55963c04fe9a2c4431d10b14c193896c2a8b9896aed35cd40b6e9395c47330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for helix-sdk 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.