Skip to main content

Python datastructures package

Project description

Test Build

Screenshot

Python-Datastructures is a Python library containing implementations of various data structures written purely in Python. Useful when preparing for interviews or building school projects. Allow the user to focus on developing your algorithms and not worry about finding python implementations of classic data structures.

Installation

Use the package manager pip to install python-datastructures.

pip install python-datastructures

Usage

Sample usage of the library. Import any datastructure from the list of supported datastructures.

  • Stack
  • Queue
  • DeQueue
  • SinglyLinkedList
  • DoublyLinkedList
  • CircularList
  • MaxHeap
  • MinHeap
  • Trie

from python_datastructures import MinHeap

arr = [2,3,18,29,7,82,1,9]
heap = MinHeap(arr)
print(heap.peek()) # returns 1

Documentation

Explore the Different data structures and methods associated with them. Documentation below describes the various methods associated with each data structure as well as a short description on what it does.

Read the docs

Development

To set up dev environment and work on the package clone the repository then run.

make setup

Other usefull development commands include:

make test               // run tests
make lint               // code formatting
make build              // build package localy
make install-build      // install local package globally
make uninstall-build    // uninstall local package gloablly

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

python-datastructures-0.1.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

python_datastructures-0.1.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file python-datastructures-0.1.3.tar.gz.

File metadata

  • Download URL: python-datastructures-0.1.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/20.3.0

File hashes

Hashes for python-datastructures-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3070331b1a0495d261cbe39e2851ceb84233bfc6fdf99837be0236c836b7ce2a
MD5 78472e914f94da8ae0d4ddd56bc6314b
BLAKE2b-256 8f815539bd393195d3a6207b227eb8bf8436662ddcc2cb9708f44f354d4703ac

See more details on using hashes here.

File details

Details for the file python_datastructures-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python_datastructures-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 36170cf937c968fef8b16c1e2cbf4babbab9fb0a0b23871b122d96cebaf1d106
MD5 5cc2661d53891d8c2db065cdf7591c19
BLAKE2b-256 81b2932bafcad4662d3e6d24244c45a3613e22db279b85b2a3c390a85dbf08b5

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