Skip to main content

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


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.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file Byond_API-0.2.2.tar.gz.

File metadata

  • Download URL: Byond_API-0.2.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.4

File hashes

Hashes for Byond_API-0.2.2.tar.gz
Algorithm Hash digest
SHA256 baa2ef459e5db8b80b05c85b16cf093801b4d498ab7c9fb48d7d41e73950dd1c
MD5 51ed552a5fbbafeb3cdb2f3856ee4344
BLAKE2b-256 d854c56d285c590570a925cba47214ea3cd5681a03bb4d8dea8afb0b841db980

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page