Skip to main content

Unofficial Python library that implements the Wargaming.net API and Lesta Games API functionality

Project description

WgLestaAPI

Unofficial Python library that facilitates working with API Wargaming.net and API Lesta Games functionality via Python.

Downloads Downloads Downloads Supported Versions Version GitHub Repo stars

By downloading this library you fully agree with all official documents Lesta Games and Wargaming.net about Lesta Games and Wargaming.net products. The author of the library (Alexander Podstrechny) is not responsible for your actions performed with the help of this program code.

Installing the library

Run the command below at the command line

pip install WgLestaAPI

Example of use

Async way

main.py contains:

from WgLestaAPI import aio
import asyncio

method = aio.Method("account.info", "wot", account_id=563982544, application_id="your_app_id")

response = asyncio.run(method.execute())

print(response)

output is:

{"status": "ok", "meta": {"count": 1}, "data": {"563982544": {"client_language": "", "last_battle_time": 1569011404, "account_id": 563982544, "created_at": 1564320823, "updated_at": 1686648157, ... "tanking_factor": 0.0}, "frags": None}, "nickname": "tankalxat34", "logout_at": 1597741881}

No-async way

from WgLestaAPI import Application

# Creating a Query with your application_id
query = Application.Query(application_id=APP_ID)

# Adding the necessary parameters
query.extend(search="tank", limit=5)

# Creating the method `account.list` of the game World of Tanks Blitz on the EU-region with the passed parameters
m = Application.Method("account.list", game_shortname="wotb", query=query, region="eu")

# Executing the method
mExecuted = m.execute()

# Your handing of server response
print(mExecuted["data"][0]["account_id"]) # 58114596

# If you wish, you can follow a link to the official website of the API owner with documentation
print(m.docs) # https://developers.wargaming.net/reference/all/wotb/account/list/

Library functionality

The library implements the basic functions of API Lesta Games and API Wargaming.net. All requests are made through your application, which you previously created on Lesta Games or on Wargaming.net. Some features are listed below:

  • Getting information about the player, his equipment and medals.
  • Obtaining information about the clan.
  • Getting information about vehicles.
  • And other methods.

Copyright Notice

This program code is not a product of Lesta Games and was developed according to Lesta Games DPP rules.

This program code is not a product of Wargaming.net and is developed according to WG DPP rules.

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

wglestaapi-0.3.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

wglestaapi-0.3.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file wglestaapi-0.3.0.tar.gz.

File metadata

  • Download URL: wglestaapi-0.3.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Windows/10

File hashes

Hashes for wglestaapi-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4ca14ff182d4c1c6070d7d53b69bf771a6f6fd4ca92b492270ad031a76c8c85b
MD5 0f5c1ac12c2e3d757d05acbf6424a99e
BLAKE2b-256 b56c5d79160076e8d95dceb1a947a5d20a6b8bbc624ff7a4f914c47be5f4b6a6

See more details on using hashes here.

File details

Details for the file wglestaapi-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: wglestaapi-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Windows/10

File hashes

Hashes for wglestaapi-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52e002d1d5ed3b11fea12806b36c7c65cdbf257d9edc084147f55a53d0ec3fab
MD5 65eeaed6e9b5cd1c244b99addf990655
BLAKE2b-256 9152e46787318f2eeaf8139898ae61a9ae68f4f8e393834527b1885b93a1e53b

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