ranktier
ranktier converts rank_tier numbers from APIs like OpenDota to human-readable ranks
Setup
ranktier can be installed from PyPi:
pip install ranktier
It can also be installed by downloading the repo and running pip install .
Usage
>>> import ranktier
>>> r = ranktier.Rank(42)
>>> print(r)
Archon [2]
>>> p = ranktier.Player(86745912)
>>> print(p.rank)
Immortal rank 3
Rank.name can also be used, but returns the same as above.
rank has to be a two-digit number for ranktier to work. Ranktier works regardless of rank being a str-type or
int-type variable.
As of 1.4, Player objects also have names:
>>> p.personaname
天鸽
>>> p.name
Arteezy
personaname refers to a profile's most recent alias, while name is the tag used by pros in-game.
Metadata
Release files for ranktier 1.4.5
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 |
|---|---|---|---|---|
| ranktier-1.4.5.tar.gz | 15.3 kB | Without provenance | Details for ranktier-1.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ranktier-1.4.5-py3-none-any.whl | Python 3 | none | any | Details for ranktier-1.4.5-py3-none-any.whl |
Total release size: 30.5 kB
Release files / ranktier-1.4.5.tar.gz
| Download URL | ranktier-1.4.5.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd1c0fe911b0fa38f25915025dcba281c15c9c05d1a85ca57beaad54b9d2c158
|
|
BLAKE2b-256 checksum How to use checksums |
485da7c5b0f00d87f0d2078eeec0901b6b1842c3f72c690421b949c3e4220369
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / ranktier-1.4.5-py3-none-any.whl
| Download URL | ranktier-1.4.5-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc130a91444b2ed40796db0cae82503dcecd8d34bb8b0bd9c4b2f16a344f2bc5
|
|
BLAKE2b-256 checksum How to use checksums |
670ef278a5266280d7815d483478c9445b4b3c597a6f56f9e96aebdc4f607926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for ranktier 1.4.5
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.