TruckersMP
Fully async python wrapper for TruckersMP API
Installing
pip install TruckersMP
Features
- Fully async methods
- All methods return Pydantic model as result for easier interaction with data
- Full exception handling
Usage
from TruckersMP import TruckersMPClient
async def main():
client = TruckersMPClient()
# Get info about player
player = await client.get_player(1)
print("Player info")
print("Player name >>>", player.name)
print("Player ID >>>", player.id)
print("Player join date >>>", player.joinDate)
print('Is player in staff >>>', player.permissions.isStaff)
print('Is player banned >>>', player.banned)
print("-----------------------------------")
# Get info about VTC
vtc = await client.get_vtc(1)
print("VTC info")
print("VTC name >>>", vtc.name)
print("VTC ID >>>", vtc.id)
print("VTC tag >>>", vtc.tag)
print("VTC owner >>>", vtc.owner_username)
print("VTC members >>>", vtc.members_count)
# And more...
if __name__ == '__main__':
import asyncio
asyncio.run(main())
Docs
Go to https://truckersmp.com/developers/api for more information about API
Metadata
Release files for TruckersMP 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| TruckersMP-1.0.1.tar.gz | 7.3 kB | Without provenance | Details for TruckersMP-1.0.1.tar.gz |
Release files / TruckersMP-1.0.1.tar.gz
| Download URL | TruckersMP-1.0.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b60b57f0e695488db19e6ec8807ea32e6af741769a8c0d1c6e80cd5e3a37022a
|
|
BLAKE2b-256 checksum How to use checksums |
905a9c50b7724ecda1afe2995dcb34b67f670aebc6862ca11da164249776c528
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for TruckersMP 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.