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.1.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.1-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magicdsa-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 7e97d578ebbf87cb6e5872edf812142dff18f03ac3f43d9c4db25b4c4a2cd532
MD5 70a700c5971c7299afbda4b89a8d5ebe
BLAKE2b-256 471d299b22918c7a91fa4459468f1fed0d707d7bea28c3adf19f5f0e77128eb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magicdsa-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 951098f477fb0c398bfb2bc59aad60754a85b56e9f1f9b8cf0a1bbcdabf2b103
MD5 67c11c0dc9003e16777c1855287de3d8
BLAKE2b-256 7bf6c33a3506d8b4f26ea78d45e4c5d85abed60f9f9909d1d73d4849a6ee81ba

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