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: Pypy wheels were published by accident

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

Modern usage (recommended)

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.17.1

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.17.1
File Size Uploaded Provenance Actions
fastexcel-0.17.1.tar.gz 57.7 kB Without provenance Details for fastexcel-0.17.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fastexcel 0.17.1
File Actions
fastexcel-0.17.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.17+ ARM64 Details for fastexcel-0.17.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
fastexcel-0.17.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.17+ ARM64 Details for fastexcel-0.17.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
fastexcel-0.17.1-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for fastexcel-0.17.1-cp314-cp314t-win_amd64.whl
fastexcel-0.17.1-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for fastexcel-0.17.1-cp314-cp314t-macosx_11_0_arm64.whl
fastexcel-0.17.1-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.17.1-cp314-cp314t-macosx_10_12_x86_64.whl
fastexcel-0.17.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for fastexcel-0.17.1-cp310-abi3-win_amd64.whl
fastexcel-0.17.1-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.17.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
fastexcel-0.17.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for fastexcel-0.17.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
fastexcel-0.17.1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for fastexcel-0.17.1-cp310-abi3-macosx_11_0_arm64.whl
fastexcel-0.17.1-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for fastexcel-0.17.1-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 30.7 MB

Release files / fastexcel-0.17.1.tar.gz

Download URL fastexcel-0.17.1.tar.gz
Size 57.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3e7425a967c2aec08b317001e88e6c310aee6b27b62a37358079f04cc42a166f
BLAKE2b-256 checksum
How to use checksums
144833183a6b7bd2e359d7673038bf6c5db26e1744cda501f794d598679b4f28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / fastexcel-0.17.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fastexcel-0.17.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.2 MB
Tags Linux glibc 2.17+ ARM64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
4a7f9055789e8de059727e0e3dd3f38b7ea3baae14290ae16a27c7962de7c657
BLAKE2b-256 checksum
How to use checksums
6390517eddfc8f5ad2df8f0c5964ea97bb51e0e3557565db7555efacdc9a0761
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Release files / fastexcel-0.17.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL fastexcel-0.17.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.2 MB
Tags Linux glibc 2.17+ ARM64 PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
cb9791f7fe625d85b9e69ea07ebb3b67f1f08cc2455198748983f06a32f1129b
BLAKE2b-256 checksum
How to use checksums
a193db144433d7718146e153f6bb02bc77a6a6603c840b461bb0e1ac8d1d6131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

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

Download URL fastexcel-0.17.1-cp314-cp314t-win_amd64.whl
Size 2.9 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
186c107b32ff0226767d4f794386f96d081c0a6a2f4cba328eaccbd0f6c527d1
BLAKE2b-256 checksum
How to use checksums
9bacde788ce6dce4da4924dc425ede866ab515285233977ff0501faec15f9f86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

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

Download URL fastexcel-0.17.1-cp314-cp314t-macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
77ae6c844d080c738931e83a00c8994e4c3eeb67d9e8ef7a363d62c013182eeb
BLAKE2b-256 checksum
How to use checksums
1caef3f0bf40b4ea33c8e2ec51af5ad5f067c426390979b1c4069b6706bcb789
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

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

Download URL fastexcel-0.17.1-cp314-cp314t-macosx_10_12_x86_64.whl
Size 3.1 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3dc0c38996982f5ffe2ab2ed11f56a1fa56c392c64415b43e26f46a8b0f4c0c3
BLAKE2b-256 checksum
How to use checksums
30b19969d534efdea264558bddbc6d8a32aecf6368e37bafd93dda94b5b25f80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

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

Download URL fastexcel-0.17.1-cp310-abi3-win_amd64.whl
Size 2.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
bd9ed03955c8480b1ee6feb11200c00d0d207bc08e4c3db640645746bfd8934a
BLAKE2b-256 checksum
How to use checksums
e9e08dac712964387d21e10425ecf3565fde92552400c653eef55183c648a228
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

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

Download URL fastexcel-0.17.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.4 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
aa703b3bf028978748f25a8928a7e5a0b4fe93a1e240ce86e72282d8b5d7b2fd
BLAKE2b-256 checksum
How to use checksums
786d38d6a4260bf3d15388f38fe0ee6ad1e14ef66709c6d00e398abee61efff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

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

Download URL fastexcel-0.17.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
fae7db2728c2fac5c1f2c37063ec4a11d76baf44235c8fd7d6057f2a32b7711d
BLAKE2b-256 checksum
How to use checksums
d03cba9ed1074fc0c587000b08edab562ebd1eb43deed1b1f23f9ae227910d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

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

Download URL fastexcel-0.17.1-cp310-abi3-macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a727434a9be42d2731a093048318b337d3f2d6a33c4b8f5f834a9053a52c358e
BLAKE2b-256 checksum
How to use checksums
c9f793c1d1ee0a74e618150ba5058649a0ad8540bcec287dd212c944a09837f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

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

Download URL fastexcel-0.17.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1d53a98c395da5cab9d10d085df0357b91f344a2ac9e6e06c9a9f704720041e3
BLAKE2b-256 checksum
How to use checksums
1fe189791897e3a1c23d2a9fb7f0d2ba189fdff8ba4ba7a8c193ee5c20f8e242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.1

Security for fastexcel 0.17.1

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

11 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