Skip to main content

A python library for interacting with Pokémon Showdown

Project description


Build Status PyPI PyPI - Python Version

A python library for interacting with Pokémon Showdown.

🚧 Work in progress 🚧

import asyncio
import pslib

async def join_battles(client):
    while True:
        for battle in await client.query_battles():
                await battle.join()
            except pslib.JoiningRoomFailed:

async def display_logs(client):
    async for message in client.listen(pslib.WinMessage, all_rooms=True):

async def main():
    async with pslib.connect() as client:
        await asyncio.gather(join_battles(client), display_logs(client))


The package can be installed with pip.

$ pip install pslib

License - MIT

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pslib, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size pslib-0.0.6-py3-none-any.whl (10.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pslib-0.0.6.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page