Tanki
Tanki is an API wrapper for Tanki Online's rating API. Allows you to easily search for users and get information about them. To get started, create a new Profile object using tanki.Profile('username')
Notes
raw_time_playedreturns time in milliseconds- If you don't own the grade of a hull, module, or turret, it'll return
Nonefor all attributes
Quick Start
import tanki
# initialize a object
profile = tanki.Profile('walker38552')
# get kills and deaths
print(f'Kills: {profile.kills}, Deaths: {profile.deaths}')
# get k/d ratio
print(f'K/D: {profile.kd}')
# get rank
print(profile.get_rank())
print(profile.get_rank().rank_name)
# get drone data
for drone in profile.get_drones_played():
print(drone.name, drone.score_earned, drone.time_played_hours)
# get hull data
for hull in profile.get_hulls_played():
print(hull.name, hull.time_played_hours)
# show statistics for each grade of the hull
print(hull.grades.mk1.score_earned)
print(hull.grades.mk2.score_earned)
print(hull.grades.mk3.score_earned)
print(hull.grades.mk4.score_earned)
print(hull.grades.mk5.score_earned)
print(hull.grades.mk6.score_earned)
print(hull.grades.mk7.score_earned)
Metadata
Release files for Tanki 1.0.0
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 |
|---|---|---|---|---|
| Tanki-1.0.0.tar.gz | 4.4 kB | Without provenance | Details for Tanki-1.0.0.tar.gz |
Release files / Tanki-1.0.0.tar.gz
| Download URL | Tanki-1.0.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b56c9729e294e3ba5bd977b81949c1075c42ff32733e3cd004a5b6011d7a43e
|
|
BLAKE2b-256 checksum How to use checksums |
73da338f071b5d1334524fa3073b9314fd8ef4b4680f4eedb22df40e494d721f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for Tanki 1.0.0
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.