A Python package with basic data structures
Project description
Data Structures Package 🧠⚡
A Python library that makes data structures intuitive, efficient, and fun to use!
Why Use This Package?
✅ Battle-tested implementations of essential data structures.
✅ Clean, readable code with type hints and thorough docs.
✅ Zero dependencies — works with vanilla Python.
✅ Perfect for learning (students) or production (devs).
from data_structures import Stack, AVLTree, SinglyLinkedList
stack = Stack()
stack.push("Hello, world!") # That easy.
📦 Install
bash
pip install data-structures-pkg
🧩 What’s Inside?
Structure Module Import Path Key Features
Linked Lists from data_structures.linked_list import * Singly, Doubly, Circular variants
Trees from data_structures.tree import * Binary, BST, AVL, Heap
Graphs from data_structures.graph import * Directed, Weighted, Traversal utils
Stack/Queue from data_structures import Stack, Queue Thread-safe, O(1) operations
🚀 Quick Examples
1. Linked List
python
from data_structures.linked_list import SinglyLinkedList
ll = SinglyLinkedList()
ll.append(1)
ll.append(2)
print(ll) # Output: [1 -> 2]
2. AVL Tree (Auto-Balancing)
python
from data_structures.tree import AVLTree
avl = AVLTree()
avl.insert(3)
avl.insert(1)
avl.insert(2) # Automatically balances itself!
3. Weighted Graph
python
from data_structures.graph import WeightedGraph
wg = WeightedGraph()
wg.add_edge("A", "B", weight=4)
wg.dijkstra("A") # Shortest path from A to all nodes
📚 Full Documentation
Explore detailed guides and API references:
Linked Lists
Trees
Graphs
🤝 Contributing
Love this package? Here’s how to help:
Star the repo ⭐
Report bugs or suggest features in Issues.
Submit a PR for improvements.
📜 License
MIT © Yashashvi bhardwaj
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file data_structure_hub-0.2.0.tar.gz.
File metadata
- Download URL: data_structure_hub-0.2.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c84bf8324b6b0d7b0829e84e403028ffa28223922f4bce8c0ac62d83ddc64dd4
|
|
| MD5 |
ed291f5269e7887cec452dac765d4786
|
|
| BLAKE2b-256 |
5bb90a1ea39af1bb7ad8f7a9e652afd102cc7efaf921cb2e10d1bcf3a25adc6b
|
File details
Details for the file data_structure_hub-0.2.0-py3-none-any.whl.
File metadata
- Download URL: data_structure_hub-0.2.0-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf55d05a21067bf0ae3a263842dadc9f949e656780b8fab27343b3668e2b448f
|
|
| MD5 |
61cea8839f63264c06a256d1e13f92de
|
|
| BLAKE2b-256 |
c90b59c30591d662c22be4f69877422a07090ee3ca23fb848b69c7f5723d9c90
|