{"id":19512525,"url":"https://github.com/vberlier/pslib","last_synced_at":"2026-05-12T20:13:52.559Z","repository":{"id":48314715,"uuid":"250906216","full_name":"vberlier/pslib","owner":"vberlier","description":"A python library for interacting with Pokémon Showdown.","archived":false,"fork":false,"pushed_at":"2021-08-02T04:53:56.000Z","size":485,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T09:38:00.215Z","etag":null,"topics":["client","pokemon-showdown","pokemon-showdown-bot","pslib","websockets"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vberlier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["vberlier"]}},"created_at":"2020-03-28T22:28:38.000Z","updated_at":"2021-03-08T05:08:25.000Z","dependencies_parsed_at":"2022-09-10T00:40:57.404Z","dependency_job_id":null,"html_url":"https://github.com/vberlier/pslib","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vberlier%2Fpslib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vberlier%2Fpslib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vberlier%2Fpslib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vberlier%2Fpslib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vberlier","download_url":"https://codeload.github.com/vberlier/pslib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240762135,"owners_count":19853425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","pokemon-showdown","pokemon-showdown-bot","pslib","websockets"],"created_at":"2024-11-10T23:26:30.351Z","updated_at":"2026-05-12T20:13:52.395Z","avatar_url":"https://github.com/vberlier.png","language":"Python","funding_links":["https://github.com/sponsors/vberlier"],"categories":[],"sub_categories":[],"readme":"# pslib\n\n[![Build Status](https://travis-ci.com/vberlier/pslib.svg?branch=master)](https://travis-ci.com/vberlier/pslib)\n[![PyPI](https://img.shields.io/pypi/v/pslib.svg)](https://pypi.org/project/pslib/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pslib.svg)](https://pypi.org/project/pslib/)\n\n\u003e A python library for interacting with Pokémon Showdown.\n\n**🚧 Work in progress 🚧**\n\n```python\nimport asyncio\nimport pslib\n\nasync def join_battles(client):\n    while True:\n        for battle in await client.query_battles():\n            try:\n                await battle.join()\n            except pslib.JoiningRoomFailed:\n                pass\n\nasync def display_logs(client):\n    async for message in client.listen(pslib.WinMessage, all_rooms=True):\n        print(message.room.logs)\n        await message.room.leave()\n\nasync def main():\n    async with pslib.connect() as client:\n        await asyncio.gather(join_battles(client), display_logs(client))\n\nasyncio.run(main())\n```\n\n## Installation\n\nThe package can be installed with `pip`.\n\n```bash\n$ pip install pslib\n```\n\n---\n\nLicense - [MIT](https://github.com/vberlier/pslib/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvberlier%2Fpslib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvberlier%2Fpslib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvberlier%2Fpslib/lists"}