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 harrypotter.wikia.com 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.

Source Distribution

potter_spells-1.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

potter_spells-1.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file potter_spells-1.0.1.tar.gz.

File metadata

  • Download URL: potter_spells-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for potter_spells-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7c9eb4dab002bc9c494cbc1258bbc2d61f758a37e9fcbbaca64decec30a4a4c6
MD5 467180f0e6b501b598c953e0c4f9c64e
BLAKE2b-256 cac1b5f17359e36d0d06feb147a4e7c5b0a54e37734980c8a8f93e5c4f73dc34

See more details on using hashes here.

File details

Details for the file potter_spells-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: potter_spells-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for potter_spells-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8367379a411c9bec040f728e0479ec8bb3cfcb7a9d2241f5badf9f52f8c8aa38
MD5 d21dd7a67d3a70125c7e0f859f218bd6
BLAKE2b-256 8925c52faf004c5087e5edf65db31789161fc3137c63f86b622ca5f8f5d94aa1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page