Skip to content

Tools for interacting with BakkesMod over its websocket RCON

License

Notifications You must be signed in to change notification settings

theY4Kman/bakkes-rcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bakkes-rcon

Client for interacting with BakkesMod over its websocket RCON.

Installation

pip install bakkes-rcon

Usage

import asyncio
from bakkes_rcon import BakkesRconClient

async def main():
    # By default, connects to ws://127.0.0.1:9002, with password "password"
    async with BakkesRconClient() as client:
        inventory = await client.get_inventory()
        for item in inventory:
            print(item)

asyncio.run(main())