Skip to main content

A Dota rank tier converter

Project description

ranktier

Build Status PyPI PyPI PyPI

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.

Project details


Download files

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

Source Distribution

ranktier-1.4.5.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

ranktier-1.4.5-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file ranktier-1.4.5.tar.gz.

File metadata

  • Download URL: ranktier-1.4.5.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ranktier-1.4.5.tar.gz
Algorithm Hash digest
SHA256 fd1c0fe911b0fa38f25915025dcba281c15c9c05d1a85ca57beaad54b9d2c158
MD5 4444a0e59adbcaf4960d109911f3626c
BLAKE2b-256 485da7c5b0f00d87f0d2078eeec0901b6b1842c3f72c690421b949c3e4220369

See more details on using hashes here.

File details

Details for the file ranktier-1.4.5-py3-none-any.whl.

File metadata

  • Download URL: ranktier-1.4.5-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ranktier-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bc130a91444b2ed40796db0cae82503dcecd8d34bb8b0bd9c4b2f16a344f2bc5
MD5 150981cfd7e2f2f38b1b16fced962bc3
BLAKE2b-256 670ef278a5266280d7815d483478c9445b4b3c597a6f56f9e96aebdc4f607926

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page