Metadata-Version: 2.1
Name: ranktier
Version: 1.4.5
Summary: A Dota rank tier converter
Home-page: https://github.com/marcusmunch/ranktier
Author: Marcus Grünewald
Author-email: marcus@marcusmunch.dk
License: GPLv3
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE

ranktier
========
[![Build Status](https://travis-ci.org/marcusmunch/ranktier.svg?branch=master)](https://travis-ci.org/marcusmunch/ranktier)
[![PyPI](https://img.shields.io/pypi/v/ranktier.svg)](https://pypi.python.org/pypi/ranktier)
[![PyPI](https://img.shields.io/pypi/pyversions/ranktier.svg)](https://pypi.python.org/pypi/ranktier)
[![PyPI](https://img.shields.io/pypi/l/ranktier.svg)](https://pypi.python.org/pypi/ranktier)

ranktier converts `rank_tier` numbers from APIs like [OpenDota](https://OpenDota.com) to human-readable ranks

Setup
-----
`ranktier` can be installed from [PyPi](https://pypi.python.org/pypi):
`pip install ranktier`

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

Usage
-----
```python
>>> 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:
```python
>>> p.personaname
天鸽
>>> p.name
Arteezy
```

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