wg_api – Python модуль для удобной работы с Wargaming API.
Доступны методы для работы с API игры WOT Blitz.
import wg_api
#id вашего приложения можно посмотреть здесь https://developers.wargaming.net/applications
app = wg_api.WOTBlitz("228053609b02258f94c78c79bd6c3971")
print(app.get_player_info_by_name("player12345"))
Установка
$ python -m pip install wg_api
Список доступных методов методов:
- get_player_id_by_name(name: str, language: str = 'ru') -> int
- search_players(search: str, language: str = "ru", limit: int = 100, type: str = "startswith") -> list
- get_player_name_by_id(account_id: int, language: str = "ru") -> str
- get_player_info_by_id(account_id: int, language: str = "ru") -> dict
- get_player_info_by_name(name: str, language: str = "ru") -> dict
- get_player_achievements_by_id(account_id: int, language: str = "ru") -> dict
- get_player_achievements_by_name(name: str, language: str = "ru") -> dict
- get_player_max_series_by_id(account_id: int, language: str = "ru") -> dict
- get_player_max_series_by_name(name: str, language: str = "ru") -> dict
- get_clan_id_by_name(clan_name: str, language: str = "ru") -> int
- get_clan_info_by_id(clan_id: int, language: str = "ru") -> dict
- get_clan_info_by_name(clan_name: str, language: str = "ru")
- get_tanks_list() -> dict
Metadata
Release files for wg-api 0.0.1
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 |
|---|---|---|---|---|
| wg-api-0.0.1.tar.gz | 7.6 kB | Without provenance | Details for wg-api-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wg_api-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for wg_api-0.0.1-py3-none-any.whl |
Total release size: 16.4 kB
Release files / wg-api-0.0.1.tar.gz
| Download URL | wg-api-0.0.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4974d7a38969df71859642709af65ace7b6d67206ecd59a33385ab7fa475d87
|
|
BLAKE2b-256 checksum How to use checksums |
dca316c6f65e004e2fdc07ae7066717320ee9069e073cc8cdf8f8dceb3b31348
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / wg_api-0.0.1-py3-none-any.whl
| Download URL | wg_api-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f511ef1879706bea466e5fdeb4260cf79b27bbc9dd09facad6ba281bed97f2d
|
|
BLAKE2b-256 checksum How to use checksums |
6902d99d2cec6d883b9426577389e7ff99f1edaa508901f588ef76666a60da23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Security for wg-api 0.0.1
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.