# Champion

Module: `pyot.utils.lol.champion`

### *class* `ChampionKeysCache`

Definitions:

* `__init__` -> `None`
* `__str__` -> `str`

### *constant* `champion_keys_cache`: `ChampionKeysCache()`

### *asyncfunction* `id_by_key` -> `int`

* `value`: `str`

> Get champion id by key

### *asyncfunction* `id_by_name` -> `int`

* `value`: `str`

> Get champion id by name

### *asyncfunction* `key_by_id` -> `str`

* `value`: `int`

> Get champion key by id

### *asyncfunction* `key_by_name` -> `str`

* `value`: `str`

> Get champion key by name

### *asyncfunction* `name_by_id` -> `str`

* `value`: `int`

> Get champion name by id

### *asyncfunction* `name_by_key` -> `str`

* `value`: `str`

> Get champion name by key


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pyot.iann838.com/utils/lol/champion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
