A strictly typed, 100% test-covered data structures and algorithms library.
Project description
pure-python-ds 🚀
A strictly-typed, 100% test-covered, and benchmarked Data Structures & Algorithms library.
🏗️ Architecture & Engineering
This library is engineered for Systems Architects and developers who require predictable performance and strict type safety. Every structure is built using Python's __slots__ to ensure a minimal memory footprint and high-speed attribute access.
[Image of a software architecture diagram showing layers of data structures and algorithms]
🛡️ Technical Milestones
- 100% Test Coverage: Verified 100% line coverage across the entire core library using
pytestandcoverage.py. - Performance Benchmarked: Custom AVL Tree implementation demonstrated search operations up to 436x faster than standard Python list lookups in large-scale datasets.
- Type Safety: 100%
mypycompliance with strict type hinting for all inputs and return values.
🛠️ Key Features
1. Linear Structures
- Linked Lists: Singly and Doubly Linked Lists with $O(1)$ head/tail operations.
- Stacks & Queues: Built on optimized nodes for strict LIFO/FIFO behavior.
- Hash Tables: Linear probing implementation with dynamic resizing.
2. Hierarchical & Network Structures
- AVL Trees: Self-balancing trees with rotation logic guaranteeing $O(\log n)$ performance.
- Red-Black Trees: Memory-optimized nodes with $O(\log n)$ height guarantees.
- Graphs: Adjacency-list based supporting Dijkstra’s, Bellman-Ford, and Kruskal’s (via custom DSU).
3. Advanced Data Structures
- Segment Trees: Range Query/Point Update in $O(\log n)$.
- Tries: Space-efficient prefix trees for string operations.
- Heaps: Min/Max Binary Heaps for $O(1)$ priority access.
Project details
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 pure_python_ds-1.0.5.tar.gz.
File metadata
- Download URL: pure_python_ds-1.0.5.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
384693164d355bb650e33bd67ae173c61069104c73e51d9dd5b640c90f061ec2
|
|
| MD5 |
a35fa889546c98a35934468206a2db5b
|
|
| BLAKE2b-256 |
ecb10f0b0b9edb24d889e0c0d4a2954316692badebc92a6977afbfc9edfff520
|
File details
Details for the file pure_python_ds-1.0.5-py3-none-any.whl.
File metadata
- Download URL: pure_python_ds-1.0.5-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7a9eb169381a34ce3860b4db2f7149d8d7df08ce81b8002065dc05796c1f3e4
|
|
| MD5 |
acd6b1cab01d94ab520e5a82112636d5
|
|
| BLAKE2b-256 |
16142422d79ae7a206b8ee7b76b50fb8a6a50d030f9bc5f8580e5e9868ef1ef7
|