Skip to main content

a lightweight and consistent data structures library

Project description

mercurytools

a lightweight and consistent set of data structures designed for clarity, predictability, and ease of use in everyday development. Built to provide a clean, pythonic interface over fundamental data structures, with an emphasis on readability and extensibility rather than abstraction-heavy implementations.

installation

# install from PyPI
pip install mercurytools

# development
git clone https://github.com/waltermichelraja/mercurytools.git
pip install -e .
pytest

overview

structure operations
LinkedList append, prepend, insert, remove, pop
Stack push, pop, peek
Deque append, appendleft, pop, popleft
PriorityQueue push, pop, peek, to_list
LRUCache get, put, clear, keys, values
utilities [linear] extend, reverse, clear, copy, to_list
BinaryTree insert
BinarySearchTree insert, remove
AVLTree insert, remove
utilities [tree] inorder, preorder, postorder, level_order, min, max, height, clear
special methods __len__, __iter__, __reversed__, __getitem__, __contains__, __eq__, __repr__

LICENSE: this project is licensed under the MIT License, checkout license file for further details.
BUG REPORTS: if you encounter a bug or unexpected behavior, please open an issue in: issues

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

mercurytools-2.2.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

mercurytools-2.2.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file mercurytools-2.2.0.tar.gz.

File metadata

  • Download URL: mercurytools-2.2.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mercurytools-2.2.0.tar.gz
Algorithm Hash digest
SHA256 f4f531d54041f0296cc3446dfb9ccc94aff8385f58e8575908dd2ed7303851aa
MD5 a5cd064532bdec08c9593904104e72eb
BLAKE2b-256 82db6ae32d00f65c9ff888be675bdf8a62e3853abea813f8dfdd7830ed90d654

See more details on using hashes here.

File details

Details for the file mercurytools-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: mercurytools-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mercurytools-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c795408471bdbfcee002e6c2f1582747ef1d6afa44477313812ed8e87860dad
MD5 1c9f970d876aa93ac0a787c85473b42d
BLAKE2b-256 9e05c74f64c8d67ab979e5b70f2ee4a6063988f9ad71f3428de06d74b84f8ce2

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