Top level modules

Utils

This module contains utility functions and objects.

poke_env.utils.compute_raw_stats(species: str, evs: List[int], ivs: List[int], level: int, nature: str) → List[int]

Converts to raw stats :param species: pokemon species :param evs: list of pokemon’s EVs (size 6) :param ivs: list of pokemon’s IVs (size 6) :param level: pokemon level :param nature: pokemon nature :return: the raw stats in order [hp, atk, def, spa, spd, spe]

Player configuration

This module contains objects related to player configuration.

class poke_env.player_configuration.PlayerConfiguration(username, password)

Bases: tuple

Player configuration object. Represented with a tuple with two entries: username and password.

password

Alias for field number 1

username

Alias for field number 0

Server configuration

This module contains objects related to server configuration.

poke_env.server_configuration.LocalhostServerConfiguration = ServerConfiguration(server_url='localhost:8000', authentication_url='https://play.pokemonshowdown.com/action.php?')

Server configuration with localhost and smogon’s authentication endpoint.

class poke_env.server_configuration.ServerConfiguration(server_url, authentication_url)

Bases: tuple

Server configuration object. Represented with a tuple with two entries: server url and authentication endpoint url.

authentication_url

Alias for field number 1

server_url

Alias for field number 0

poke_env.server_configuration.ShowdownServerConfiguration = ServerConfiguration(server_url='sim.smogon.com:8000', authentication_url='https://play.pokemonshowdown.com/action.php?')

Server configuration with smogon’s server and authentication endpoint.