Trackmania.io API Wrapper
Project description
Important - Trackmania.io API for my own project?
See below on how to set your user agent
Your User-Agent Must Have:
- Your Discord Username
- Your Project Name
Example:
NottCurious#4351 | TMIndiaBot
" | via py-tmio" is automatically appended to your user agent
How to set user agent.
from trackmania import Client
Client.USER_AGENT = "NottCurious#4351 | TMIndiaBot"
How to set Redis Server Settings
from trackmania import Client
Client.REDIS_HOST = "127.0.0.1" # 127.0.0.1 is default
Client.REDIS_PORT = 6379 # 6379 is default
Client.REDIS_DB = 0 # 0 is default
Client.REDIS_PASSWORD = "yadayadayada" # Defaults to None. Don't need to change this if your redis server does not have a password.
Support Server
You can report bug fixes, issues, feature request or ask for help at the discord server! (Click the Badge!)
Docs
Docs can be found on readthedocs.org.
Installation
Note: Must have Python 3.10 or higher.
python3 -m pip install py-tmio # Linux
python -m pip install py-tmio # Windows
Caching
Caching is done using a redis server. The client defaults to 127.0.0.1:6379
.
Caching is not required but is highly recommended.
Pull Requests and Issues
If you have any suggestions, bugs, fixes or enhancements, please open a Pull Request or Issue
Discord
Contact me on Discord if you have any questions, NottCurious#4351
Or join the support server here!
License
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
Built Distribution
File details
Details for the file py-tmio-0.4.6.tar.gz
.
File metadata
- Download URL: py-tmio-0.4.6.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35e1884d18f66cf0388a6a01a7c26d9f3d1b72a50a830524a7455eb33859da37 |
|
MD5 | 2331bd4c456a46602483d77047207d40 |
|
BLAKE2b-256 | 51df8bcd6ac6388bc867af310a38a7367f96dd8a793f28216a9c9e320717c3d4 |
File details
Details for the file py_tmio-0.4.6-py3-none-any.whl
.
File metadata
- Download URL: py_tmio-0.4.6-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0d0640346b557c2788b2af2a0cdfcd928f50d82b060491d693d4bf5d7c7dbf6 |
|
MD5 | fb2b12567bed43dd5ef3a52565772702 |
|
BLAKE2b-256 | 6df21b5bcee3d37f80db54dc06070ae144330e4164cc4619ed7c666225c013bf |