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 --upgrade 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.2.tar.gz (36.5 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.2-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magicdsa-0.1.2.tar.gz
  • Upload date:
  • Size: 36.5 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.2.tar.gz
Algorithm Hash digest
SHA256 7278d78b8c0e713772a14c64124f6d4e6ceefb4dca8ca87f8eda35906dde97ce
MD5 c40d897069d62759306a17b39b6946d6
BLAKE2b-256 2409c0958bfec2e2739cbcf1557f8d8252b80bb4bb8f9568d5b4b73e61d948b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magicdsa-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3180a31a614db409140127174454cdcd3aa52186b971fb8b7938c9a2662eea49
MD5 28a904ff55c1a75541e6d5373cbf2680
BLAKE2b-256 f84c63cc0a38d555b3c7175bc177241fc51da6971b1a568c254ef64b111dc985

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