Quick access to TShock REST API using python.
Project description
Quick access to TShock REST API using python.
Example
import tshockapi # Import the tshockapi module
server = tshockapi.Server(host="127.0.0.1", port=7878, token="1234567890") # Create a server object
print(server.v3_server_rawcmd(cmd="/who")) # Print the result of the /who command
# {'status': '200', 'response': ['There are currently no players online.']}
Installation
Windows
pip install tshockapi
Linux
pip3 install tshockapi
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
tshockapi-0.1.1.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tshockapi-0.1.1.tar.gz.
File metadata
- Download URL: tshockapi-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.1 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
611ea16f65f101eebbf67d9ca7644df322525cf78b29456852e4a6016431aba8
|
|
| MD5 |
e6abdc128915ed903c31fa75d00dd0b2
|
|
| BLAKE2b-256 |
359831e0d99a13f8bb3f4aefe6539735e298545330b8c7098b771f60fe347d1e
|
File details
Details for the file tshockapi-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tshockapi-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.1 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ad088f4c7ee658e1e6daa3cb92386dab1d41a3377feb0c708134544bcd23dbb
|
|
| MD5 |
a66e58a2f2bc23b52085733cc5d20a7c
|
|
| BLAKE2b-256 |
892cb0b8042216cdf6fc679f4bc656dce05832d8de213d2e401592e3a116ef9d
|