Skip to main content

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!

PyPI Version License Python Versions

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
🧩 Whats 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? Heres how to help:

Star the repo 

Report bugs or suggest features in Issues.

Submit a PR for improvements.

📜 License
MIT © Yashashvi bhardwaj

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

data_structure_hub-0.2.1.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

data_structure_hub-0.2.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file data_structure_hub-0.2.1.tar.gz.

File metadata

  • Download URL: data_structure_hub-0.2.1.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for data_structure_hub-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3f9ec6d67c253a67eefca2c579ec7a245bf4e8274b75521a4bd2b2cbdeaa807e
MD5 536d6fc87e4bafdeefd747733a3d54b9
BLAKE2b-256 4e6804f6127c062f7a6c6a5d55dfa26ad83afddbd33103f27a5c09ddc187f332

See more details on using hashes here.

File details

Details for the file data_structure_hub-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for data_structure_hub-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7cf1e63f31cea4b51e01fd85beb470eee0447afa376db1fc2238aec43533cac
MD5 a7e0067e5e9316537038dea5aec3d2e5
BLAKE2b-256 46c2bea7517522f7cef315742831939e1a31f41320b8deb3b36dbda3e22258cd

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