Skip to main content

A powerful Python package to explore and learn 300+ algorithms with a single function call.

Project description

🪄 Magic - The Ultimate DSA Algorithm Library

PyPI version License: MIT Python

🚀 Magic is a beginner-friendly Python package that contains hundreds of Data Structures and Algorithms (DSA) implementations — all organized, categorized, and ready to use or learn from.

Whether you’re preparing for coding interviews, learning DSA from scratch, or building algorithmic projects, magic is your one-stop toolkit.


✨ Features

  • 📚 14+ Categories of algorithms (Arrays, Linked Lists, Trees, Graphs, DP, and more)
  • 🔍 Easy access: magic.show("<algorithm_name>") to see any implementation
  • 🧠 Educational: Every algorithm is beginner-friendly and well-commented
  • 📦 Lightweight: Just one pip install and you’re ready to go!

📦 Installation

Install from PyPI (example name magicdsa — replace with your actual published name):

pip install magicdsa
⚡️ Quick Start
import magic

# 📁 Show all categories
print(magic.show("category"))

# 📚 Show all algorithms in a specific category
print(magic.show("linked lists"))

# 🧠 Show full source code of a specific algorithm
print(magic.show("linearsearch"))

📚 Available Categories

-Arrays & Strings

-Linked Lists

-Stack & Queue

-Recursion & Backtracking

-Binary Trees

-Binary Search Trees (BST)

-Heap / Priority Queue

-Graphs

-Dynamic Programming

-Trie

-Segment Tree & BIT

-Bit Manipulation

-Math & Number Theory

-Miscellaneous

🤝 Contributing

Contributions are welcome! Feel free to open issues or submit PRs to add new algorithms, fix bugs, or improve documentation.

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

magicdsa-0.1.0.tar.gz (36.4 kB view details)

Uploaded Source

Built Distribution

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

magicdsa-0.1.0-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for magicdsa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9416bef256b9ba3695ebb5fc49f10e1f2cff017e575cad37784007de30410c5e
MD5 46b0cd99fe17f9cb2729235cf5129615
BLAKE2b-256 3a34b6418d2ad28c3bd431a7a933eeb9036f58db72cd6cf5f5e8473a5aea8382

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for magicdsa-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 148fe42e8076f8d849cf1f75bfb06ec8ae7951d88a50a65d3432ece0353e5707
MD5 558085bda5385d7a6c69fee61381a8bd
BLAKE2b-256 5e961f9a529ce56635eb7aa8bff2118774090179ae00c78d598bbc68f4148867

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