Blazing-fast collections you've been missing
Project description
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 is missing many fundamental data structures and algorithms. Every time you need a trie, an LRU cache, a B-tree, a suffix array, or anything beyond what's in the standard library, you either copy a slow pure-Python implementation from GitHub or write your own and debug edge cases for hours.
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?
Pure Python is slow for data structure internals. Every node allocation creates a Python object, every lookup goes through the dict machinery. A Rust implementation avoids all of that — no object overhead, just raw performance.
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.
Project details
Release history Release notifications | RSS feed
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.0.tar.gz.
File metadata
- Download URL: fast_collections-0.0.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
164a67cadf8bc04fea0fc461d30b681c7927c47ceb3397a9192e64bb592a31bb
|
|
| MD5 |
2df63bb4bbdd820afc76ae6f996acbdb
|
|
| BLAKE2b-256 |
4b5d61ddbce9ebf10b86fd009c79f8178ac67a62d68750dd6f49cc2d6bf3e911
|
File details
Details for the file fast_collections-0.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: fast_collections-0.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 233.4 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 |
dafe71908d8afd6ef0d3ea458cee8c0c31ab98663315e74c8d218ed96151d451
|
|
| MD5 |
21fb69a581aa50d5c85a1917ec1776c5
|
|
| BLAKE2b-256 |
5def89a9bb649ad137c24ea66e2216656838b4c1a0fe4930598a8e3293bdfce3
|