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
Release history Release notifications | RSS feed
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.2.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file potter_spells-1.0.2.tar.gz
.
File metadata
- Download URL: potter_spells-1.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58bd4acd940fa2768c1c56494bfc9b60dbf99931cbafa8b50fcdbba7d86ed8a6 |
|
MD5 | 96e3452f1ca24f3555f94dfbfe39724a |
|
BLAKE2b-256 | d01ecab094a5503480eaf2498bf761a47a3a60709703193fe0f991130d3018fd |
File details
Details for the file potter_spells-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: potter_spells-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fe86815b84e57227b5900948d2de81598913221f5947b2c1671f2b55a46a450 |
|
MD5 | 57eec14ed847c6e7136cb1c91469c50a |
|
BLAKE2b-256 | dfe3dbec6ccc10218ac56bc57708366a0726363de52b9d7f62ba41d1b1f130e1 |