Skip to main content

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.

Python Version License: MIT Tests

🏗️ 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 pytest and coverage.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% mypy compliance 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

pure_python_ds-1.0.4.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pure_python_ds-1.0.4-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file pure_python_ds-1.0.4.tar.gz.

File metadata

  • Download URL: pure_python_ds-1.0.4.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pure_python_ds-1.0.4.tar.gz
Algorithm Hash digest
SHA256 383974b28d53d340ee3b6bfd893b568e70811fd3e09f6d88c9423100dd8a0d3f
MD5 a8606f21b79841f1b2c89790942853b2
BLAKE2b-256 0a124bdbd68ece87cfe62f5dc3a855119ed2ff7023578788afe88ee0a93a7d93

See more details on using hashes here.

File details

Details for the file pure_python_ds-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pure_python_ds-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pure_python_ds-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 542f23811a63e569c921927d22f214cc38200e43d1962211198c8768397f653f
MD5 3f010725304b7c0b6b08419a94f2cb89
BLAKE2b-256 1953860c29404070c34df27de8eaf242ca06708b5e9c277f21adc725a7e98bbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page