Simple way to take data from BYOND
Project description
Byond-API
A simple and convenient extension that can be used to work with the servers of the game Space Station 13 based on the BayStation build.
supported builds = ["bay", "paradise"]
Examples
from Byond_API import ByondAPI
servers = ByondAPI()
servers.add_server("ss220", "bay" ('game.ss220.space' ,7725))
server_info = servers.get_server_info("ss220")
server_revision = servers.get_server_revision("ss220")
server_manifest = servers.get_server_manifest("ss220")
Proc's
def add_server(name: str, build: str, data: tuple) -> None:
def get_server_revision(server:str=None) -> Info:
def get_server_info(server:str=None) -> Info:
def get_server_manifest(server:str=None) -> Info:
Info object
Vars:
Type - Type of Info object (Info, Revision, Manifest)
raw_data - Raw dict of data
for Info:
version
mode
can_respawn
can_enter
can_vote
ai
host
players_num
station_time
round_duration
round_time
map
ticker_state
admins_num
players
admins
active_players
for Revision:
gameid
dm_version
dm_build
dd_verion
dd_build
revision
git_branch
date
for Manifest:
manifest
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
Byond_API-0.2.1.tar.gz
(3.7 kB
view hashes)