Trackmania.io API Wrapper
Project description
py-tmio
Trackmania API Helper for Python!
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 host and port
from trackmania import Client
Client.redis_host = "127.0.0.1"
Client.rediS_port = 6379
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
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
py-tmio-0.0.1.tar.gz
(3.0 kB
view hashes)