DataStruct-Kit 🚀
A Python package implementing essential data structures and algorithms with a focus on performance, usability, and scalability.
✨ Features
Sorting Algorithms 📊
- Bubble Sort
- Merge Sort
- Quick Sort
Searching Algorithms 🔍
- Linear Search
- Binary Search
Data Structures 🏗️
- HashTable
- Binary Tree
- AVL Tree
- Graph
Performance Utilities ⏱️
- Benchmarking tools for performance analysis.
- Complexity analysis for algorithm evaluation.
📦 Installation
Install DataStruct-Kit from PyPI:
pip install DataStruct-Kit
🚀 Quick Start
Example Usage
from DataStruct-Kit import bubble_sort, binary_search, HashTable, BinaryTree, dfs, bfs
# Sorting algorithms
data = [3, 1, 4, 1, 5, 9, 2, 6]
sorted_data = bubble_sort(data)
print(f"Sorted data: {sorted_data}")
# Using a hash table
ht = HashTable()
ht.put("name", "DataStruct-Kit")
ht.put("version", "0.1.0")
print(f"Value: {ht.get('name')}") # Output: DataStruct-Kit
# Working with binary trees
tree = BinaryTree()
for value in [5, 3, 7, 2, 4, 6, 8]:
tree.insert(value)
print(f"In-order traversal: {tree.inorder()}")
# Graph algorithms
graph = {'A': ['B', 'C'], 'B': ['D'], 'C': ['E'], 'D': [], 'E': []}
print(f"DFS: {dfs(graph, 'A')}") # Output: ['A', 'B', 'D', 'C', 'E']
print(f"BFS: {bfs(graph, 'A')}") # Output: ['A', 'B', 'C', 'D', 'E']
📊 Performance Benchmarks
You can measure the performance of algorithms using the measure_time utility:
from DataStruct-Kit.performance import measure_time
from DataStruct-Kit import bubble_sort, quick_sort
data = list(range(1000, 0, -1))
print(f"Bubble Sort: {measure_time(bubble_sort, data.copy()):.6f} seconds")
print(f"Quick Sort: {measure_time(quick_sort, data.copy()):.6f} seconds")
📚 Documentation
Full documentation is available at: DataStruct-Kit Documentation
🛠️ Development
Setting up the Development Environment
-
Clone the repository:
git clone https://github.com/Pavansai20054/DataStruct-Kit.git cd DataStruct-Kit
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install development dependencies:
pip install -e ".[dev]"
-
Run tests:
pytest
-
Type checking (optional):
pip install mypy mypy DataStruct-Kit/
📋 Roadmap
The following features are planned for future releases:
- Add more sorting algorithms (Heap Sort, Radix Sort).
- Implement priority queues.
- Add advanced tree structures (B-Tree, Red-Black Tree).
- Provide visualization utilities for data structures and algorithms.
- Support for parallel execution of algorithms.
🤝 Contributing
We welcome contributions! To contribute:
- Fork the repository.
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request.
For detailed guidelines, refer to the CONTRIBUTING.md file.
📄 License
Distributed under the MIT License. See LICENSE for more information.
📬 Contact
- Rangdal Pavansai: Email | GitHub
- Project Link: DataStruct-Kit on GitHub
Thank you for using DataStruct-Kit!
Your feedback and contributions make this project better for everyone.
Metadata
Release files for DataStruct-Kit 0.1.2
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 |
|---|---|---|---|---|
| datastruct_kit-0.1.2.tar.gz | 9.7 kB | Without provenance | Details for datastruct_kit-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datastruct_kit-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for datastruct_kit-0.1.2-py3-none-any.whl |
Total release size: 21.1 kB
Release files / datastruct_kit-0.1.2.tar.gz
| Download URL | datastruct_kit-0.1.2.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bafb11ddc5011f2c44716ba358d52454f8b0d55ab4aafa84820fac595dddac0
|
|
BLAKE2b-256 checksum How to use checksums |
8932d2d5c2c4fc824dac5ff0e3ebe8ca6ab70a9437931b85d6841875d33d4296
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / datastruct_kit-0.1.2-py3-none-any.whl
| Download URL | datastruct_kit-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26b1360e088e5b092a0a3d0ce47e6593f9a3102b00bdf2825673479ae69851a9
|
|
BLAKE2b-256 checksum How to use checksums |
93a52e763f5bde846f644cc8965c7897455398cfe951a0e4978ac64e56258a5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for DataStruct-Kit 0.1.2
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.