Local Pokemon random battle sets (auto-updating) and Smogon competitive sets
Project description
localsets
Offline Pokemon battle data with auto-updates from official sources.
What it does
- Random Battle Data: Access Pokemon Showdown's RandBats data offline, including option likelihood stats
- Competitive Sets: Get Smogon competitive Pokemon sets
- Auto-Updates: Automatically syncs with official repositories every 24 hours
- Multiple Formats: Supports all generations (Gen 1-9) and battle formats
Quick Start
from localsets import PokemonData
# Initialize with specific formats
data = PokemonData(
randbats_formats=['gen9randombattle'],
smogon_formats=['gen9ou']
)
# Get random battle data
pikachu = data.get_randbats('pikachu', 'gen9randombattle')
# Get competitive sets
sets = data.get_smogon_sets('pikachu', 'gen9ou')
# Get both set and stats data for a Pokemon
pikachu_both = data.get_randbats_with_stats('pikachu', 'gen9randombattle')
if pikachu_both:
print('Set:', pikachu_both['set'])
print('Stats:', pikachu_both['stats'])
Installation
pip install localsets
CLI Usage
# Get random battle Pokemon
localsets randbats get pikachu --format gen9randombattle
# Get competitive sets
localsets smogon get pikachu gen9ou
# Update data
localsets randbats update
Data Sources
- RandBats: pkmn/randbats - Pokemon Showdown random battle data and stats
- Smogon: smogon/pokemon-showdown - Competitive Pokemon sets
Features
- Offline-first with bundled data
- Automatic updates every 24 hours
- Support for all Pokemon generations
- Both random battle and competitive formats
- Includes option likelihood stats for random battle sets
- Simple Python API and CLI interface
- Graceful fallbacks and error handling
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
localsets-0.1.16.tar.gz
(21.0 kB
view details)
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 localsets-0.1.16.tar.gz.
File metadata
- Download URL: localsets-0.1.16.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea48445e3467608fc20a5007452d218fceb406386bfddd355f9debba64b8cd22
|
|
| MD5 |
36e7517f4e2a284f41b32841591c85be
|
|
| BLAKE2b-256 |
98a89eebe0d274ba09ebb3897bb15af534ec281a451a05c8a82b356987b2975b
|
File details
Details for the file localsets-0.1.16-py3-none-any.whl.
File metadata
- Download URL: localsets-0.1.16-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3302454ea361e3248d5afcfe326d7ec4fbeeab793d726cb26a825d8d3e7b7dd5
|
|
| MD5 |
f327346f20b64a1299a76d8a1789397b
|
|
| BLAKE2b-256 |
01bc7a610c39cf804e672146a6018ac29dba273c1119df0c20c1e6b518dd537e
|