Skip to main content

Pandusha

Pandusha is a beginner-friendly educational Python library for learning, practicing, and observing data structures and algorithms. It is built by Cem Berk Çakır and Yasemin Serdengeçti as a shared DSA learning project.

Version 0.2 focuses on a stable, test-covered foundation: linked lists were cleaned up, Pythonic helpers were added, and the roadmap now includes heaps, hash tables, tries, graph algorithms, sorting, searching, and dynamic programming examples.

Current Content

  • Linked lists: LinkedList, DoublyLinkedList
  • Linear structures: Stack, Queue
  • Trees: BinarySearchTree, AVLTree
  • Graphs: Graph with BFS, DFS, unweighted shortest path, Dijkstra, and topological sort
  • Other structures: MinHeap, MaxHeap, PriorityQueue, HashTable, Trie, DisjointSet
  • Sorting: bubble_sort, selection_sort, insertion_sort, merge_sort, quick_sort, heap_sort
  • Searching: linear_search, binary_search, jump_search
  • Dynamic programming: fibonacci_memo, fibonacci_tabulation, climbing_stairs, coin_change_min

Installation

Install from PyPI:

python3 -m pip install pandusha

Or use the source directly:

git clone https://github.com/Agueria/pandusha.git
cd pandusha

For local development:

python3 -m pip install -e .
python3 -m pytest -q
python3 -m compileall src tests

Without editable install, run examples with PYTHONPATH=src.

Examples

from pandusha import LinkedList, MinHeap, binary_search, merge_sort

linked = LinkedList(1)
linked.append(2)
linked.append(3)
print(list(linked))  # [1, 2, 3]

heap = MinHeap([5, 1, 3])
print(heap.remove())  # 1

print(merge_sort([3, 1, 2]))  # [1, 2, 3]
print(binary_search([1, 2, 3], 2))  # 1

API Style

Existing educational method names are kept where possible. Pythonic helpers are also available on the relevant structures:

  • len(structure)
  • list(structure)
  • repr(structure)
  • is_empty()
  • to_list()
  • clear() for linked lists

License

Pandusha is distributed under the Apache License 2.0. See LICENSE.

Changelog

0.2.1

  • Refined PyPI package metadata and project description.
  • Corrected package author order to Cem Berk Çakır, Yasemin Serdengeçti.
  • Kept the public API unchanged from 0.2.0.

0.2.0

  • Fixed linked list and doubly linked list edge cases.
  • Added Pythonic helpers and controlled package exports.
  • Added Heap, HashTable, Trie, DisjointSet, and AVLTree.
  • Added sorting, searching, graph, BST traversal, and DP helpers.
  • Added pytest coverage for public behavior and examples.
  • Updated docs and package metadata.
  • Published on PyPI as pandusha.

0.1.0

  • Added initial LinkedList, DoublyLinkedList, Stack, Queue, BinarySearchTree, and Graph implementations.

Metadata

Release files for pandusha 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pandusha 0.2.1
File Size Uploaded Provenance Actions
pandusha-0.2.1.tar.gz 19.0 kB Without provenance Details for pandusha-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pandusha 0.2.1
File Interpreter ABI Platform Actions
pandusha-0.2.1-py3-none-any.whl Python 3 none any Details for pandusha-0.2.1-py3-none-any.whl

Total release size: 37.9 kB

Release files / pandusha-0.2.1.tar.gz

Download URL pandusha-0.2.1.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fba02018fca0c0beb10de98263742cc028ff7d634146e44ba383d459a87ebe51
BLAKE2b-256 checksum
How to use checksums
5aa3b4784b924da431f0285f0291b7b500903337026b653433c080bb0637d9df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / pandusha-0.2.1-py3-none-any.whl

Download URL pandusha-0.2.1-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61757f36bd9ed45069ca0328969cfe94cb5769c5d5c2434a9e4617fe10619e19
BLAKE2b-256 checksum
How to use checksums
dcabad36525cc631e7f934cf3e510432839eba463ce9ca0bf937300d3ff5d605
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for pandusha 0.2.1

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page