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
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.1.0.tar.gz (7.8 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.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mercurytools-2.1.0.tar.gz
Algorithm Hash digest
SHA256 5cf1ebc8edf39c287f845e5c3681250a9e170d6213b41574197679aa50f68dec
MD5 877df3c37e2578735d9ec3ad4779de28
BLAKE2b-256 c8b4610789983924dbb79f9e38fc09cd48aa9922affe36af35065b68eebb9336

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mercurytools-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aacd4cba26772631c8c4f9d9211890f15f531ab5276bc56e6e5ca529277a3eab
MD5 660be507be78334890b26d0041fe105d
BLAKE2b-256 bd67d14c6ebf92daba6135680239e96064e76739ef11493eec44ff21ced84dc9

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