Dathost-python
This is a python wrapper for the dathost API.
Installation
pip3 install dathostpython
Basic usage
from dathostpython.wrapper import dathost
dathost = dathost("email", "password")
# List servers and all their details
print(dathost.servers())
# 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(dathost.info("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 https://dathost.net/api#!/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")
Metadata
Release files for dathostpython 1.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dathostpython-1.3.4.zip | 3.1 kB | Without provenance | Details for dathostpython-1.3.4.zip |
Release files / dathostpython-1.3.4.zip
| Download URL | dathostpython-1.3.4.zip |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c2788d493b54a1176201d5e02039a0a0b35c3188265fd897a75b0159aec3658
|
|
BLAKE2b-256 checksum How to use checksums |
3d93b2dc485f051d8e75b11cc202ad113cffff142240f67fa7a6fa09d7fd5d38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dathostpython 1.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.