Closed caymansimpson closed 1 month ago
I think this looks pretty good for the README, but wanted to run it past you first.
Also do we want it to be a separate file in /src/elitefurretai/utils
, or should I put all of this in a separate section of UTILS.md? (I personally think the former would be cleaner)
Yea this looks great! Could you add this to the UTILS.md? I agree that it would be more convenient to have them separately, but want to keep the directories clean
TeamRepo Module
This module provides functionality for reading and managing Pokémon teams in Showdown Export (PokePaste) format. It includes features for team validation and organization.
Features
Usage
Initializing TeamRepo
Parameters
filepath
: Path to the directory containing team files (default: "data/teams")showdown_path
: Path to the Pokémon Showdown directory (default: "../pokemon-showdown")validate
: Whether to validate teams using Pokémon Showdown (default: False)verbose
: Whether to print verbose output (default: False)Accessing Teams
Team Validation
If
validate=True
is set when initializing TeamRepo, it will attempt to validate each team using Pokémon Showdown. Make sure you have Pokémon Showdown and thatshowdown_path
is correctly set for this feature to work.File Structure
The module expects teams to be organized in the following directory structure:
Each
.txt
file should contain a single team in Showdown Export format.