Skip to main content

A Python package implementing core data structures from scratch

Project description

🧠 Python Data Structures Package

Welcome to the Data Structures Package — a clean, modular, and beginner-friendly Python library implementing essential data structures. This package is designed for learning, teaching, and experimenting with core data structure concepts in Python.


🚀 Features

This package includes Python implementations of the following data structures:

  • 🧱 Array
  • 🔗 Singly Linked List
  • 🔁 Circular Linked List
  • 🔄 Doubly Linked List
  • 🗃️ Stack (LIFO)
  • 📬 Queue (FIFO)
  • 🌳 Tree
  • 🕸️ Graph

Each data structure is implemented from scratch with easy-to-read code and useful methods to manipulate and visualize data.


📦 Installation

Clone this repository and use it locally:

git clone https://github.com/your-username/data_structures.git
cd data_structures

No external dependencies required. Just use Python 3.7+.


🧪 Usage

Each data structure is placed in its own module inside the package. Example usage:

from danielle.stack import Stack

stack = Stack()
stack.push(10)
stack.push(20)
stack.pop()

📁 Project Structure

data_structures/
└── danielle/
    ├── __init__.py
    ├── array.py
    ├── linked_list.py
    ├── circular_linked_list.py
    ├── doubly_linked_list.py
    ├── stack.py
    ├── queue.py
    ├── tree.py
    ├── graph.py
    └── __main__.py
  • Each .py file represents one data structure
  • __main__.py can be used to test the structures via python -m danielle

🧰 Contributing

Want to improve a data structure or add new features (like visualization or performance benchmarking)? Contributions are welcome! Feel free to open issues or pull requests.


👩🏽‍💻 Author

Created with ❤️ by Kapsa Danielle
African Master’s in Machine Intelligence (AMMI) 2025


📜 License

This project is open source and available under the MIT License.


⭐️ Show Your Support

If you found this helpful or inspiring, give the project a ⭐️ on GitHub!

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

danielle-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

danielle-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file danielle-0.1.0.tar.gz.

File metadata

  • Download URL: danielle-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for danielle-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1f54d4583a0def3aa762fcf6373dede762188e655e4ce04c8c90167a09d9cd31
MD5 ec714a38326a437d00d2834c74dff872
BLAKE2b-256 e5c54386402e8cbc4ef09edb809bc78c823d65b7af7a13f47073f751d7907965

See more details on using hashes here.

File details

Details for the file danielle-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: danielle-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for danielle-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c22d7bf9fdd4e6d81742cac8a4dc7be01a5bbd5f0f5df910d79dadc0b4d690aa
MD5 f659cfe3251a7b7d1aaa4fb20971b989
BLAKE2b-256 f694baf4950f813f53e8e02b5ca3b62bb1078c52513ee2ec75ee9a2431d4c7b3

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