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.
Metadata
Release files for fast-collections 0.0.1
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 | |
|---|---|---|---|---|
| fast_collections-0.0.1.tar.gz | 67.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fast_collections-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.17+ x86-64 | Details |
Total release size: 302.1 kB
Release files / fast_collections-0.0.1.tar.gz
| Download URL | fast_collections-0.0.1.tar.gz |
|---|---|
| Size | 67.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32c1b714ff345cb1f224e827ee6bad67dcaf41ea05dad0a5833e7f5b88bbbbe4
|
|
BLAKE2b-256 checksum How to use checksums |
810e104a665816895d276c35eeeff3f4e17561b46b7eb133fd0ad999c7ba4080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / fast_collections-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fast_collections-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 234.5 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
99b8aeff19aab1f88767b32e30bf37d361e4b7ea8f61743e7d137822ba4c47b4
|
|
BLAKE2b-256 checksum How to use checksums |
66b529a798f1b677a698d97ee13dbb979b7e28b45cc80449bce19dba36e73189
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Security for fast-collections 0.0.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.