fast-collections
Blazing-fast data structures and algorithms you've been missing — written in Rust, usable from Python.
Why this exists
Python's standard library lacks many fundamental data structures and algorithms (which is not necessarily bad). Whenever you need a trie, a B‑tree, a suffix array, or anything beyond what's provided, you either copy a slow pure‑Python implementation from GitHub or write your own dangerous version.
fast-collections fills those gaps with Rust implementations. You get production-ready data structures and algorithms that are orders of magnitude faster than anything you could write in pure Python — with compact memory layout and full type annotations.
Why not write it yourself in Python?
Writing such data structures from scratch is hard. Even if you know the theory, it's easy to miss edge cases or introduce subtle bugs. And pure‑Python implementations are often slow anyway.
We've already done the work for you — fast‑collections provides well‑tested, Rust‑optimized versions of these structures. Just import and use them with confidence.
Who is this for?
- Anyone who has ever needed a data structure or algorithm that isn't in the standard library.
- Anyone who wants Rust performance without leaving Python.
Quickstart
pip install fast-collections
from fast_collections import Trie
t = Trie()
t.insert("hello")
t.insert("world")
assert "hello" in t
assert t.starts_with("he")
See the full documentation for all available data structures, algorithms, and their APIs.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fast_collections-0.0.1.tar.gz.
File metadata
- Download URL: fast_collections-0.0.1.tar.gz
- Upload date:
- Size: 67.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32c1b714ff345cb1f224e827ee6bad67dcaf41ea05dad0a5833e7f5b88bbbbe4
|
|
| MD5 |
7228808ddb1b5c4904ea9e91e4da4e9b
|
|
| BLAKE2b-256 |
810e104a665816895d276c35eeeff3f4e17561b46b7eb133fd0ad999c7ba4080
|
File details
Details for the file fast_collections-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: fast_collections-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 234.5 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99b8aeff19aab1f88767b32e30bf37d361e4b7ea8f61743e7d137822ba4c47b4
|
|
| MD5 |
413a8208066d319cb91e48f76278d32b
|
|
| BLAKE2b-256 |
66b529a798f1b677a698d97ee13dbb979b7e28b45cc80449bce19dba36e73189
|