Skip to main content

fastexcel

A fast excel file reader for Python and Rust.

Docs:

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 free-threaded build is still considered experimental

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.10+ 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.20.2

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.20.2
File Size Uploaded Provenance Actions
fastexcel-0.20.2.tar.gz 60.9 kB Without provenance Details for fastexcel-0.20.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fastexcel 0.20.2
File Actions
fastexcel-0.20.2-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for fastexcel-0.20.2-cp314-cp314t-win_amd64.whl
fastexcel-0.20.2-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details for fastexcel-0.20.2-cp314-cp314t-musllinux_1_2_x86_64.whl
fastexcel-0.20.2-cp314-cp314t-musllinux_1_2_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 Details for fastexcel-0.20.2-cp314-cp314t-musllinux_1_2_aarch64.whl
fastexcel-0.20.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details for fastexcel-0.20.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
fastexcel-0.20.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details for fastexcel-0.20.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
fastexcel-0.20.2-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for fastexcel-0.20.2-cp314-cp314t-macosx_11_0_arm64.whl
fastexcel-0.20.2-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details for fastexcel-0.20.2-cp314-cp314t-macosx_10_12_x86_64.whl
fastexcel-0.20.2-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for fastexcel-0.20.2-cp310-abi3-win_arm64.whl
fastexcel-0.20.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for fastexcel-0.20.2-cp310-abi3-win_amd64.whl
fastexcel-0.20.2-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for fastexcel-0.20.2-cp310-abi3-musllinux_1_2_x86_64.whl
fastexcel-0.20.2-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for fastexcel-0.20.2-cp310-abi3-musllinux_1_2_aarch64.whl
fastexcel-0.20.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for fastexcel-0.20.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
fastexcel-0.20.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for fastexcel-0.20.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
fastexcel-0.20.2-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for fastexcel-0.20.2-cp310-abi3-macosx_11_0_arm64.whl
fastexcel-0.20.2-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for fastexcel-0.20.2-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 53.3 MB

Release files / fastexcel-0.20.2.tar.gz

Download URL fastexcel-0.20.2.tar.gz
Size 60.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a4be10eb0f4dd819d2b36950b3f26bf87260b53e54150ac02b78e524c7063902
BLAKE2b-256 checksum
How to use checksums
969624314765a3204081a55ecc96e83dfdbd2ef82aa80a521ac3005b2c91e941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp314-cp314t-win_amd64.whl

Download URL fastexcel-0.20.2-cp314-cp314t-win_amd64.whl
Size 3.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
d71e2a1fce006cb8bc1ae06da6ff5e5fe83e6496be5aef01b623b15aa0d0f82d
BLAKE2b-256 checksum
How to use checksums
3a511d9a72473cc213d5647d8cf7c2393ef995b3453ac5e4b544ba652d1428dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL fastexcel-0.20.2-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 4.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
c3058d034e75967b6f01e0c82767adeb40cbf4533b6bc54e3b93f77f5f80dec4
BLAKE2b-256 checksum
How to use checksums
f734b3ed819dd6d35d71c6640ff857c6362d42f19e8b15354e64b06f355df3a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp314-cp314t-musllinux_1_2_aarch64.whl

Download URL fastexcel-0.20.2-cp314-cp314t-musllinux_1_2_aarch64.whl
Size 3.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
e5b23f69898f6a32c2f279d8f72eb8ac93c336bf7f453a9b8930cab9dc494520
BLAKE2b-256 checksum
How to use checksums
3482fabe2d1de28e89a90bb2c884c37d862b5d85063fd41fffcb56b2980d0b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fastexcel-0.20.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
db049d51e5323459f534ce9a65869f997bebd4dde75ef1d3b3af53dd64b8b9ca
BLAKE2b-256 checksum
How to use checksums
4ce0f67911db6515df326900e8ac1ae17cc08233ca5fb8f71c633f57a50cf786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fastexcel-0.20.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.6 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
675d7eab2110bd8d5520b98d5eb3f3e15173b69a5f64b43412f917e9717e9aa0
BLAKE2b-256 checksum
How to use checksums
ddefbd7b98149b50e01fdaa3b146b025ce50b8e983f35522f8e69bd94d2711a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp314-cp314t-macosx_11_0_arm64.whl

Download URL fastexcel-0.20.2-cp314-cp314t-macosx_11_0_arm64.whl
Size 3.3 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9692ac135ede4d6fc45b25cc22f1c6bd1eb8750bda14097b7f319450c33d3124
BLAKE2b-256 checksum
How to use checksums
80bce492c343c096e93e269c157fc11def297430047f1ee09db4f8a39bcdc1a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL fastexcel-0.20.2-cp314-cp314t-macosx_10_12_x86_64.whl
Size 3.4 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e5b677d669cc7c099998ef27d9442b78d7190916d3b40418bda619cdc4ebae2c
BLAKE2b-256 checksum
How to use checksums
37d3fcc1ba752415327f0fd5a1b52060e66f1c0bf8b7b90bbba781b91750ce7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp310-abi3-win_arm64.whl

Download URL fastexcel-0.20.2-cp310-abi3-win_arm64.whl
Size 3.0 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
c3e58f5053bc05b0ee8fa735056cea7af6e1c41c39fc4b2b06cc86c1025d140b
BLAKE2b-256 checksum
How to use checksums
d83bc251f38596d630e87280c191f53803e7409e7723e95e53a477f6760c7298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp310-abi3-win_amd64.whl

Download URL fastexcel-0.20.2-cp310-abi3-win_amd64.whl
Size 3.3 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ce28748390ae6a7d286ba29d8ee2badcfb6478d32ed700db6c2030de32a16e7b
BLAKE2b-256 checksum
How to use checksums
22b37de6b49406fda63c9fee817d5fc70fe3f52c24431605f1de2f7b0f3a0938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL fastexcel-0.20.2-cp310-abi3-musllinux_1_2_x86_64.whl
Size 4.0 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
8b15f21baef3e4914071e34f176d8692dd79e3464c10f8373047aab1384cfaae
BLAKE2b-256 checksum
How to use checksums
c0804548305ce4d70a0ecf38205988e5caeb9347dae7e5d06bcd2b939586fc52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL fastexcel-0.20.2-cp310-abi3-musllinux_1_2_aarch64.whl
Size 3.8 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
441f9b7e97b4fd1c9487e5c0a0d9cad7aa4097a39e65fcd494551f5ec3e5d02f
BLAKE2b-256 checksum
How to use checksums
c51580c614c8b07c631c7c2acd015e7f2e1cd683cd04279e5615b39c36a0e43b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL fastexcel-0.20.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.8 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
15d41bcc4433bb3ab778426ecaeaf3a5f38d949555c631a83e958c57bb0a116e
BLAKE2b-256 checksum
How to use checksums
b401da0ae9b3ee86daca5ac9f0a7b05477cf0c1624321d95f1e52492a772dba5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fastexcel-0.20.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.6 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
cdab3cc439c18c4ee14c4ec2b321e1d927cae84f557525f390a3c28517f6e721
BLAKE2b-256 checksum
How to use checksums
369ca8f45e5c195a70a408893b348595bae4c113091dddba7d1b029e9c980b8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL fastexcel-0.20.2-cp310-abi3-macosx_11_0_arm64.whl
Size 3.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6c7e58cf83c873743c18006e3866d5c2b69c34df7a4a253a72e81169853ddf0e
BLAKE2b-256 checksum
How to use checksums
3f2bf78a2df2d93ec4a23d7fc94ed967bf004d5115e1f4d2da389bb888d2cc32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / fastexcel-0.20.2-cp310-abi3-macosx_10_12_x86_64.whl

Download URL fastexcel-0.20.2-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2a240b9f4b6af42cafc247c1b8c956cf32f5393a3956ad0ed49e07b2b5bf0e09
BLAKE2b-256 checksum
How to use checksums
2929acc5b2eb95fb4eaeb3486b6f034f2d9754dcc0cc0b5dbc79b2fa9a31f66b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Security for fastexcel 0.20.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.

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.20.2 This release

16 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