Skip to content
A python wrapper for the dathost API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
dathostpython Added some more methods Apr 13, 2016
.gitignore Fixed the install issue Apr 15, 2016
MANIFEST Updated to new pip version Apr 13, 2016
README.rst Update README.rst Jul 27, 2017
setup.cfg Added main project files Apr 13, 2016



This is a python wrapper for the dathost API.


pip3 install dathostpython

Basic usage

from dathostpython.wrapper import dathost

dathost = dathost("email", "password")

# List servers and all their details

# Start a server
dathost.start("server id")

# Stop a server
dathost.stop("server id")

# Duplicate a server
dathost.duplicate("server id")

# Duplicate a server and print its id
print(dathost.duplicate("server id")["id"])

# Delete a server
dathost.delete("server id")

# Retrieve a file from the server
dathost.getFile("server id", "path/to/file.txt")

# Retrieve info on a server
print("server id"))

# Edit a server value
# Multiple values can be passed, for example:
# dathost.edit("570e1dadcde5f5xxxxxxxxxx", csgo_settings__rcon = "Bob", name = "Bob")
# Note:
# For parameters with "." in them, replace the "." with "__".
# A full list of parameters can be found at!/default/put_game_server_item
dathost.edit("server id", parameter = "value" )

# List files in a directory
# The final 2 parameters (Hide default files and show file sizes) are optional
dathost.files("server id", "path/to/dir/", True, True)

# Sync the files between the local cache and the gameserver
dathost.sync("server id")
You can’t perform that action at this time.