Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.21.0 instead.
Reason given by maintainers: Wheel linking failed

fastexcel

A fast excel file reader for Python and Rust.

Docs available here.

Stability

The Python library is considered production-ready. The API is mostly stable, and we avoid breaking changes as much as possible. v1.0.0 will be released once the milestone is reached.

The Rust crate is still experimental, and breaking changes are to be expected.

Installation

# Lightweight installation (no PyArrow dependency)
pip install fastexcel

# With Polars support only (no PyArrow needed)
pip install fastexcel[polars]

# With Pandas support (includes PyArrow)
pip install fastexcel[pandas]

# With PyArrow support
pip install fastexcel[pyarrow]

# With all integrations
pip install fastexcel[pandas,polars]

Quick Start

FastExcel supports the Arrow PyCapsule Interface for zero-copy data exchange with libraries like Polars, without requiring pyarrow as a dependency. Use fastexcel with any Arrow-compatible library without requiring pyarrow.

import fastexcel

# Load an Excel file
reader = fastexcel.read_excel("data.xlsx")
sheet = reader.load_sheet(0)  # Load first sheet

# Use with Polars (zero-copy, no pyarrow needed)
import polars as pl
df = pl.DataFrame(sheet)  # Direct PyCapsule interface
print(df)

# Or use the to_polars() method (also via PyCapsule)
df = sheet.to_polars()
print(df)

# Or access the raw Arrow data via PyCapsule interface
schema = sheet.__arrow_c_schema__()
array_data = sheet.__arrow_c_array__()

Traditional usage (with pandas/pyarrow)

import fastexcel

reader = fastexcel.read_excel("data.xlsx")
sheet = reader.load_sheet(0)

# Convert to pandas (requires `pandas` extra)
df = sheet.to_pandas()

# Or get pyarrow RecordBatch directly
record_batch = sheet.to_arrow()

Working with tables

reader = fastexcel.read_excel("data.xlsx")

# List available tables
tables = reader.table_names()
print(f"Available tables: {tables}")

# Load a specific table
table = reader.load_table("MyTable")
df = pl.DataFrame(table)  # Zero-copy via PyCapsule, no pyarrow needed

Key Features

  • Zero-copy data exchange via Arrow PyCapsule Interface
  • Flexible dependencies - use with Polars (no PyArrow needed) or Pandas (includes PyArrow)
  • Seamless Polars integration - pl.DataFrame(sheet) and sheet.to_polars() work without PyArrow via PyCapsule interface
  • High performance - written in Rust with calamine and Apache Arrow
  • Memory efficient - lazy loading and optional eager evaluation
  • Type safety - automatic type inference with manual override options

Contributing & Development

Prerequisites

You'll need:

  1. Rust - Rust stable or nightly
  2. uv - Fast Python package manager (will install Python 3.9+ automatically)
  3. git - For version control
  4. make - For running development commands

Python Version Management: uv handles Python installation automatically. To use a specific Python version:

uv python install 3.13  # Install Python 3.13
uv python pin 3.13      # Pin project to Python 3.13

Quick Start

# Clone the repository (or from your fork)
git clone https://github.com/ToucanToco/fastexcel.git
cd fastexcel

# First-time setup: install dependencies, build debug version, and setup pre-commit hooks
make setup-dev

Verify your installation by running:

make

This runs a full development cycle: formatting, building, linting, and testing

Development Commands

Run make help to see all available commands, or use these common ones:

make all          # full dev cycle: format, build, lint, test
make install      # install with debug build (daily development)
make install-prod # install with release build (benchmarking)
make test         # to run the tests
make lint         # to run the linter
make format       # to format python and rust code
make doc-serve    # to serve the documentation locally

Useful Resources

Benchmarking

For benchmarking, use make benchmarks which automatically builds an optimised wheel. This is required for profiling, as dev mode builds are much slower.

Speed benchmarks

make benchmarks

Memory profiling

mprof run -T 0.01 python python/tests/benchmarks/memory.py python/tests/benchmarks/fixtures/plain_data.xls

Creating a release

  1. Create a PR containing a commit that only updates the version in Cargo.toml.
  2. Once it is approved, squash and merge it into main.
  3. Tag the squashed commit, and push it.
  4. The release GitHub action will take care of the rest.

Dev tips

  • Use cargo check to verify that your rust code compiles, no need to go through maturin every time
  • cargo clippy = 💖
  • Careful with arrow constructors, they tend to allocate a lot
  • mprof and time go a long way for perf checks, no need to go fancy right from the start

Metadata

Release files for fastexcel 0.15.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastexcel 0.15.0
File Size Uploaded Provenance Actions
fastexcel-0.15.0.tar.gz 58.9 kB Without provenance Details for fastexcel-0.15.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fastexcel 0.15.0
File Actions
fastexcel-0.15.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for fastexcel-0.15.0-cp39-abi3-win_amd64.whl
fastexcel-0.15.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for fastexcel-0.15.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
fastexcel-0.15.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl CPython 3.9 abi3 Linux glibc 2.5+ x86-64 Details for fastexcel-0.15.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
fastexcel-0.15.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for fastexcel-0.15.0-cp39-abi3-macosx_11_0_arm64.whl
fastexcel-0.15.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for fastexcel-0.15.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 348.6 kB

Release files / fastexcel-0.15.0.tar.gz

Download URL fastexcel-0.15.0.tar.gz
Size 58.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d2b6110e153bb796b2f13f214ece9ab8961c16b543b78bee14ff085d26f82aac
BLAKE2b-256 checksum
How to use checksums
b54ce531f4b9577636f08792179ce785c1d29463c8479c6df43df097e592e4de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / fastexcel-0.15.0-cp39-abi3-win_amd64.whl

Download URL fastexcel-0.15.0-cp39-abi3-win_amd64.whl
Size 68.4 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
61f4936554046afe36c40a7b26859131fe60f6cddbfabe52731f381dee0eb378
BLAKE2b-256 checksum
How to use checksums
c999da05f647a41bd89f2912e4a9467100d28f2649a2f2e3ee30a857f6c7f25b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / fastexcel-0.15.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fastexcel-0.15.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 186.1 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
4fed7c09b5f38fc41e8467e2ebdf05053e6e87cd93b8448ca58f61994ed81589
BLAKE2b-256 checksum
How to use checksums
89749b9d46fd6ecca66f6118ae4ab5ca4f071e5c61fe48257d3bbc7fd9a19ef9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / fastexcel-0.15.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Download URL fastexcel-0.15.0-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Size 12.9 kB
Tags CPython 3.9 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
8892c0506052bf04cbb64b2d71b77a3b11eeaf5dcd7a88dce6dd91768e7dac8a
BLAKE2b-256 checksum
How to use checksums
24c7c0c968172a0d7b81241f38a483cbd49a9940be3c2bea7a6e0685a75b35be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / fastexcel-0.15.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL fastexcel-0.15.0-cp39-abi3-macosx_11_0_arm64.whl
Size 11.3 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cb045c3cba3576b5273fa7cc4f8eccb6e00130b4d42b805357beca8be3fd9ea0
BLAKE2b-256 checksum
How to use checksums
7caaccb6a531314720e4b39e7dfc317f2a532c3594131f0f85542b171662a20d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / fastexcel-0.15.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL fastexcel-0.15.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 11.1 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6ff4146bc43a8f2edd1545f01dfc1752051f28dcd8197cbba357559773bd88a2
BLAKE2b-256 checksum
How to use checksums
721f5ecb9ae6a71ccd6af4be2bf7213f2b3a3ef3bd37f6ff0f1ac8558d9790de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Security for fastexcel 0.15.0

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.

Release history Release notifications | RSS feed

This release

0.15.0 This release

6 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page