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
Hashes for py_tmio-0.5.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bd49fb1313b092f9074f414408d26cb8c0baac55c3c44e28d6cf39b4262326f |
|
MD5 | 907dd54b66fea34ab92119d9f068e813 |
|
BLAKE2b-256 | 346191e5078419e14b14f9e7ed90a3e8b8f6012662827f6d1ae02bfa40f18c54 |