Skip to main content

pokemaster - Get Real, Living™ Pokémon in Python

Travis CI codecov Codacy Badge Code style: black

Introduction

pokemaster lets you create Pokémon that is native to the core series Pokémon games developed by Game Freak & Nintendo.

In pokemaster, everything you get is what you would expect in the games: a Pokémon has a bunch of attributes, knows up to four moves, can be evolved to another species, can learn, forget, and remember certain moves, can use moves to do stuff (such as attacking another Pokémon), can consume certain items, and much, much more.

Installation

pokemaster can be installed via pip, but you have to have pokedex installed first:

pip install git+https://github.com/kipyin/pokedex
pip install pokemaster

Or, if you have poetry, run:

poetry add pokemaster -E pokedex

Basic Usage

To summon a Real, Living™ Pokémon:

from pokemaster import Pokemon
bulbasaur = Pokemon(national_id=1, level=5)
eevee = Pokemon('eevee', level=10, gender='female')

Development

Installing

To make contribution, you need to clone the repo first, of course:

git clone https://github.com/kipyin/pokemaster.git
cd pokemaster

If you have poetry installed, you can install the dependencies directly:

poetry install -v -E pokedex

This will equip everything you need for the development.

Linting

We use black to format the code, and isort to sort the imports.

The best way to ensure all files are in the right format is using tox:

tox -e lint

Testing

After making commits, make sure all tests are passed. To run tests against all environments, simply do:

$ tox

If you want to run tests against specific Python version, use tox -e {env}.

For example, if you want to run tests against Python 3.7, run the following command:

$ tox -e py37

LICENSE

MIT License

Copyright (c) 2019 Kip Yin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Release files for pokemaster 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pokemaster 0.2.2
File Size Uploaded
pokemaster-0.2.2.tar.gz 17.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pokemaster 0.2.2
File Interpreter ABI Platform
pokemaster-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size:69.1 kB

Release files / pokemaster-0.2.2.tar.gz

Download URL pokemaster-0.2.2.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ea182e8d2e1172d35f34a3ab5438047461b2a7948b3a3277f48113509d7aac13
BLAKE2b-256 checksum
How to use checksums
36ee675ac9840e7708c5f6e82d7a6f5e37cb1fd8d3209095cd5cd6f2d8b4a4e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0a2 CPython/3.6.5 Darwin/18.5.0

Release files / pokemaster-0.2.2-py3-none-any.whl

Download URL pokemaster-0.2.2-py3-none-any.whl
Size 51.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1b6dece52251d26fba6f3f9eb6a51e45ae1295c43417317b7a0d5d460623ffa
BLAKE2b-256 checksum
How to use checksums
44ab7520bcf75b0a63307e7e8ae7acbbdb3e86fe8078f8250f10982fc544e5c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0a2 CPython/3.6.5 Darwin/18.5.0

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

1 release file

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page