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.
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
Metadata
Release files for python-datastructures 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-datastructures-0.1.3.tar.gz | 8.9 kB | Without provenance | Details for python-datastructures-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_datastructures-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for python_datastructures-0.1.3-py3-none-any.whl |
Total release size: 21.3 kB
Release files / python-datastructures-0.1.3.tar.gz
| Download URL | python-datastructures-0.1.3.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3070331b1a0495d261cbe39e2851ceb84233bfc6fdf99837be0236c836b7ce2a
|
|
BLAKE2b-256 checksum How to use checksums |
8f815539bd393195d3a6207b227eb8bf8436662ddcc2cb9708f44f354d4703ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Darwin/20.3.0
|
Release files / python_datastructures-0.1.3-py3-none-any.whl
| Download URL | python_datastructures-0.1.3-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36170cf937c968fef8b16c1e2cbf4babbab9fb0a0b23871b122d96cebaf1d106
|
|
BLAKE2b-256 checksum How to use checksums |
81b2932bafcad4662d3e6d24244c45a3613e22db279b85b2a3c390a85dbf08b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Darwin/20.3.0
|
Security for python-datastructures 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.