Skip to content

Latest commit

Β 

History

History
105 lines (68 loc) Β· 2.06 KB

File metadata and controls

105 lines (68 loc) Β· 2.06 KB

πŸ§™β€β™‚οΈ WizardAPI

WizardAPI is a magical Python framework that lets developers cast spells as if they were powerful wizards. Whether you want to throw fireballs at bugs or summon dragons to help with debugging β€” WizardAPI has you covered.

Because coding is already magic. Let's make it official.


✨ Features

  • πŸ”₯ fireball(target) β€” Deal damage to your enemies.
  • πŸ‰ summon_familiar(type) β€” Summon your magical companion.
  • πŸ›‘οΈ shield(strength) β€” Protect your code from crashes.
  • πŸ•΅οΈ invisibility(duration) β€” Hide from stack traces.
  • πŸ§ͺ Create your own spells with @spell decorator.
  • πŸͺ„ Designed to be fun, educational, and Sphinx-demo friendly.

πŸ“¦ Installation

pip install wizardapi

Or, from source:

git clone https://github.com/elena-soloveva/wizardapi.git
cd wizardapi
python setup.py install

Requires:

  • Python 3.8+
  • Mana β‰₯ 50 MP

πŸš€ Quick Start

from wizardapi import SpellCaster

caster = SpellCaster(api_key="your-secret-scroll")
caster.cast("fireball", target="bug")

Output:

πŸ”₯ You cast Fireball on Bug!
Bug takes 42 fire damage.

πŸ“š Documentation

Full documentation is available at: πŸ‘‰ https://elena-soloveva.github.io/wizardapi/

Built with Sphinx using Markdown and MyST Parser.


πŸ§ͺ Creating Custom Spells

You can write your own spells with the @spell decorator:

from wizardapi import spell

@spell(name="rain_of_cats")
def rain_of_cats(target):
    return f"β˜” It's raining cats on {target}!"

Register the spell:

caster.register_custom_spell(rain_of_cats)
caster.cast("rain_of_cats", target="orc")

πŸ§™β€β™€οΈ Contributing

Pull requests are welcome β€” especially if you're a level 5+ mage. See CONTRIBUTING.md for guidance.


πŸ“œ License

This project is licensed under the MIT License. No actual mana or spell components required.