A prerequisite package for autoLocke that receives a Pokémon's name and returns its types, weaknesses, and resistance.
Project description
WANDR (Weakness and Resistance Tool)
WANDR is a prerequisite for autoLocke, but is also available for use by others. WANDR can take any pokemon as input, and return it's types, weaknesses and resistances in dictionary or list format.
How to Install
pip install wandr
Usage
''' import wandr as wM
types = wM.getTyping(pokemon="Charmander") ''' Returns:
['Fire']
You can also get any type's resistance. ''' resistance = wM.getResistance(typeList=types, returnType="giveList") ''' This would return
['Fire', 'Grass', 'Ice', 'Bug', 'Steel']
Any duplicate weaknesses (4x) or duplicate resistances (0.25x) will be returned twice in the list.
Further Usage
You can also get a resistance/weakness pandas dataframe. ''' import wandr as wM
types = wM.getTyping("Scyther") weakness = wM.getWeakness(typeList=types, returnType="giveDict")
'''
The output would be
''' {'Ground': 0, 'Fire': 2, 'Water': 0, 'Grass': 0, 'Ice': 2, 'Electric': 2, 'Rock': 4, 'Flying': 2, 'Normal': 0, 'Fighting': 0, 'Poison': 0, 'Psychic': 0, 'Bug': 0, 'Ghost': 0, 'Dragon': 0, 'Steel': 0, 'Dark': 0} '''
Since scyther has a double weakness to Rock, it is returned in the dictionary as 4.
Issues
Please direct any issues to the github issues tab.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file WANDR-0.5.0.tar.gz.
File metadata
- Download URL: WANDR-0.5.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bda81c50310ae372857ae260705b0cce301c11cfc9e9a7ea324cb02df128cb1
|
|
| MD5 |
bf7eb9b466cf593c0ac9728e015e0410
|
|
| BLAKE2b-256 |
b2bffeaddd9e3e98422076bed95484499b4d90f4ffced9019740a022215cb204
|
File details
Details for the file WANDR-0.5.0-py3-none-any.whl.
File metadata
- Download URL: WANDR-0.5.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b14e562e98f59a5966bc1c7358fefc64be0f8f24439496851764e527b07f183
|
|
| MD5 |
a4448aba0bd468adc8e031553ec611ab
|
|
| BLAKE2b-256 |
247c09a0a4b5c34d997db9f116b9ea5e12f1774fc2ea0a73fb2b05e1dd2d1e81
|