Skip to main content

A Dota rank tier converter

Project description


Build Status PyPI PyPI PyPI

ranktier converts rank_tier numbers from APIs like OpenDota to human-readable ranks


ranktier can be installed from PyPi: pip install ranktier

It can also be installed by downloading the repo and running pip install .


>>> import ranktier
>>> r = ranktier.Rank(42)
>>> print(r)
Archon [2]
>>> p = ranktier.Player(86745912)
>>> print(p.rank)
Immortal rank 3 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

personaname refers to a profile's most recent alias, while name is the tag used by pros in-game.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ranktier, version 1.4.3
Filename, size File type Python version Upload date Hashes
Filename, size ranktier-1.4.3.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page