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.']}
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.0.tar.gz
(2.8 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.0.tar.gz.
File metadata
- Download URL: tshockapi-0.1.0.tar.gz
- Upload date:
- Size: 2.8 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 |
64a02537c549d98e65294e303daa705270ee1972f76f8835e120092a4b2bc009
|
|
| MD5 |
b17bcebc3eb4fe8264876c8b7394a9ee
|
|
| BLAKE2b-256 |
989850ae462fdb36ddb91770938e4b5569c7ece5f926fd50cacfedaf5bb4c9c2
|
File details
Details for the file tshockapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tshockapi-0.1.0-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 |
b517641a79862481aec14428088dc624e3b7b8a628eb480c46f5bbdbc5e0e180
|
|
| MD5 |
95e306d7d762693ca5f8d8710a1a161d
|
|
| BLAKE2b-256 |
2d051452f73bcf4add1e4ac1f007b71b5601653c679390f84224a96b4e27f772
|