FrameX
FrameX is an Arrow-backed Python library for parallel dataframe and array processing on a single machine.
It combines:
- Pandas-like tabular APIs (
DataFrame,Series,GroupBy) - NumPy-compatible chunked arrays (
NDArraywith NumPy protocol support) - Arrow-native storage/interop (
to_arrow, Parquet/IPC I/O) - Eager execution with optional lazy pipelines (
.lazy().collect()) - Runtime backends for local threads/processes plus optional Ray/Dask executors
Why FrameX
FrameX is aimed at local analytics workflows that are bigger than comfortable single-threaded scripts but do not yet require distributed infrastructure.
Typical fit:
- ETL and analytics pipelines on medium-to-large local datasets
- feature engineering workflows that mix table and array operations
- migration paths from Pandas scripts where API familiarity matters
Installation
From PyPI:
pip install pyframe-xpy
From source:
git clone https://github.com/aeiwz/FrameX.git
cd FrameX
pip install -e .
Requirements:
- Python
>=3.10 - Core dependencies:
pyarrow,numpy - Optional compatibility:
pandas(pip install pyframe-xpy[pandas_compat])
Quick Start
import framex as fx
df = fx.DataFrame(
{
"group": ["a", "a", "b"],
"value": [10, 20, 30],
"is_refund": [False, True, False],
}
)
result = (
df.filter(~df["is_refund"])
.groupby("group")
.agg({"value": ["sum", "mean", "count"]})
.sort("value_sum", ascending=False)
)
print(result.to_pandas())
Core API
Top-level imports:
import framex as fx
Main objects and helpers:
fx.DataFrame,fx.Series,fx.Index,fx.LazyFramefx.NDArray,fx.array(...)fx.read_parquet,fx.write_parquet,fx.read_ipc,fx.write_ipc,fx.read_csv,fx.write_csvfx.read_json,fx.write_json,fx.read_ndjson,fx.write_ndjsonfx.read_file,fx.write_filefor format auto-detection
Compression:
- transparent extension-based compression for
read_file/write_file - supported wrappers:
.gz,.bz2,.xz,.zip, and.zst/.zstd(whenzstandardis installed) fx.from_pandas,fx.from_dask,fx.from_ray,fx.from_dataframefx.get_config,fx.set_backend,fx.set_workers,fx.set_serializer,fx.set_kernel_backendfx.set_array_backendfor auto/NumExpr/Numba/JAX/PyTorch/CuPy acceleration modesfx.recommend_best_performance_config()to inspect hardware-tuned settingsfx.auto_configure_hardware()to apply best-performance config automaticallyfx.StreamProcessorfor micro-batch streaming pipelines
Acceleration extras:
pip install pyframe-xpy[accel] # numexpr + numba
pip install pyframe-xpy[gpu] # cupy (CUDA)
pip install pyframe-xpy[ml_accel] # jax + pytorch
pip install pyframe-xpy[pandas_fast] # modin backend
pip install pyframe-xpy[distributed] # Dask + Ray distributed/HPC backends
pip install zstandard # .zst/.zstd file compression
Backend notes:
fx.set_backend("threads" | "processes" | "ray" | "dask" | "hpc")- Ray and Dask execution backends require their respective runtimes to be installed/available.
- HPC mode (
"hpc") uses cluster-oriented execution via Dask or Ray:FRAMEX_HPC_ENGINE=dask|rayFRAMEX_DASK_SCHEDULER_ADDRESS=<tcp://...>to connect existing Dask clustersFRAMEX_RAY_ADDRESS=<ray://...>to connect existing Ray clusters- optional SLURM bootstrap:
FRAMEX_DASK_SLURM=1(requiresdask-jobqueue)
Test support notes:
- Some tests are optional-backend gated and intentionally
skippedwhen deps are not installed. - Typical skip reasons: missing
dask.distributed,dask.dataframe,ray, orray.data. - Run full optional matrix locally:
pip install pyframe-xpy[distributed]
pytest -q
Documentation
Canonical docs are in docs/documents:
- Overview
- Features
- Getting Started
- Installation
- Tutorial: ETL Pipeline
- Tutorial: NumPy NDArray Interop
- Use Cases
- Configuration Guide
- Performance Test
- Architecture
- API Reference
- Roadmap
- FAQ
Website (Docs UI)
The docs website lives in website (Next.js App Router).
Main docs routes:
http://localhost:3000/docs/featureshttp://localhost:3000/docs/tutorial_etl_pipelinehttp://localhost:3000/docs/use_caseshttp://localhost:3000/docs/configuration_guidehttp://localhost:3000/docs/performance_test
Run locally:
cd website
npm install
npm run dev
Production build:
npm run build
npm run start
Development
Install dev dependencies:
pip install -e .[dev]
Run tests:
pytest
Benchmarks
Benchmark code and generated reports are in benchmarks.
Run the full benchmark suite (includes in-terminal progress bar and report generation):
python3 -m benchmarks.benchmark_suite
Run workload capability matrix checks:
python3 -m benchmarks.check_framex_workloads
Benchmark outputs are written to benchmarks/results:
benchmark_results.jsonbenchmark_results.csvbenchmark_report.mdframex_workload_check.jsonperformance_speedup.pngparallel_processing_scaling.pngmultiprocessing_scaling.pngmemory_peak_rss.png
Project Status
FrameX is pre-1.0 (0.1.2) and in active development.
- APIs are usable and documented
- compatibility/performance behavior will continue to evolve
- pin versions for production-critical workloads
License
Metadata
Release files for pyframe-xpy 0.1.2
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 | |
|---|---|---|---|---|
| pyframe_xpy-0.1.2.tar.gz | 57.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyframe_xpy-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 126.7 kB
Release files / pyframe_xpy-0.1.2.tar.gz
| Download URL | pyframe_xpy-0.1.2.tar.gz |
|---|---|
| Size | 57.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a39383bf3bceb48b7366079acd4802aab77924a201c8a07a5b95c8b4f0b26d5
|
|
BLAKE2b-256 checksum How to use checksums |
e8a8c984d6bf2c81dd59d70b3a5c0c2fd56ad7ea9efabb77db641312c14b44dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency logRelease files / pyframe_xpy-0.1.2-py3-none-any.whl
| Download URL | pyframe_xpy-0.1.2-py3-none-any.whl |
|---|---|
| Size | 69.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01d9b6df753f257fec76b12647a8272b9e5c51ec2dea2ba5aa81e84db94fe33d
|
|
BLAKE2b-256 checksum How to use checksums |
32f415f04f2b8aeaee99afbfb59816350013cf26e02162ca912efce9a05a2e85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency logSecurity for pyframe-xpy 0.1.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pyframe_xpy-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency logA 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.