Skip to content

Tool for converting BYOND hub and player data to JSON strings or Python dictionaries.

License

Notifications You must be signed in to change notification settings

SS13HUB/byond2json-py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

byond2json

byond2json is a tool for converting BYOND hub and player data to JSON strings or Python dictionaries.

Methods

  • hub2dict(game : str) -> dict:
  • hub2json(game : str, indent) -> str:
  • player2dict(player : str) -> dict:
  • player2json(player : str, indent) -> str:

The indent parameter is used for pretty-printing the JSON string; defaults to 4.

Example Usage

from byond2json import hub2json

# print the current hub listing as JSON
print(hub2json("Exadv1/SpaceStation13"))

Known Issues

  • The hub tends to omit the last few (typically 3/4) hub entries from the output.

About

Tool for converting BYOND hub and player data to JSON strings or Python dictionaries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%