A Python library that brings together all data structures known to mankind! From linked lists to advanced graph structures, datakit
is designed for efficiency, readability, and ease of use.
(Optional: Add a banner for visual appeal!)
✅ Comprehensive DS – Stacks, Queues, Linked Lists, Trees, Graphs, and more.
✅ Optimized Implementations – Efficient and well-tested structures.
✅ Easy to Use – Simple API with clean abstractions.
✅ Extensible – Designed to be modular and extendable.
datakit
isn't on PyPI yet, but you can install it locally:
git clone https://github.com/yourusername/datakit.git
cd datakit
pip install -e .
from datakit.structures.linkedlist import SinglyLinkedList
ll = SinglyLinkedList()
ll.append(10)
ll.append(20)
ll.print_list() # Output: 10 -> 20
from datakit.structures.stack import Stack
stack = Stack()
stack.push(5)
stack.push(10)
print(stack.pop()) # Output: 10
(Add more examples as your module grows!)
datakit/
├── core/ # Common utilities (nodes, base classes, helpers)
├── structures/ # All data structures
│ ├── linkedlist.py
│ ├── stack.py
│ ├── queue.py
│ ├── tree.py
│ ├── graph.py
├── exceptions.py # Custom exception handling
├── tests/ # Unit tests
├── README.md
├── setup.py # Packaging for PyPI
We’d love your help in making datakit
even better!
- Fork the repo & create a new branch.
- Implement your changes and write tests.
- Submit a Pull Request (PR).
datakit
is licensed under the MIT License – feel free to use and modify it.
🚀 Happy Coding with datakit!