Skip to main content

A python package to list all Harry Potter spells

Project description

Harry Potter Spells (potter_spells)

The package lists all the Harry Potter spells.
Specifically, the scripts scrape the data from the website and and provides all the spells.
The various python scripts provides various filters to list out the spells and enchantments (magic enchantments which are not specifically spells).

Installing the package

pip install potter_spells

Using the package

>>> import potter_spells as potter
>>> potter.all_data()
>>> potter.find('Avada Kedavra')

List out all Spells or Enchantments

>>> potter.all_spell_names()
>>> potter.all_enchantment_names()

Filter by Type of Magic

>>> potter.all_by_type('Charm')
>>> potter.spells_by_type('Hex')
>>> potter.enchants_by_type('Charm')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for potter-spells, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size potter_spells-1.0.2-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size potter_spells-1.0.2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page