Python wrapper for valorant-api.com
Project description
valorant-api
A Python wrapper for valorant-api.com
Installation
pip install valorant-api
Usages
# this code is just for reference
from valorant_api import SyncValorantApi, AsyncValorantApi
#sync
api = SyncValorantApi(language="ru-RU")
agents = api.get_agents()
#Async
api = AsyncValorantApi(language="ru-Ru")
agents = await api.get_agents()
# searching
agent = agents.find_where(displayname="Raze", developerName="Gumshoe")
agent = agents.find_first(displayname="Raze")
# agents image generation
from valorant_api import generators
font_file = r"valorant_api\fonts\Valorant Font.ttf"
# initialize class
generator = generators.AgentImageGenerator(font_file)
# generator actual image
image = await generator.generate(agent)
# save the image
image.save("image.png", "PNG")
Agents Image Example
Requirements
- python-dateutil
- aiohttp
- requests
- Pillow
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
valorant-api-0.0.8.tar.gz
(13.6 kB
view details)
Built Distribution
File details
Details for the file valorant-api-0.0.8.tar.gz
.
File metadata
- Download URL: valorant-api-0.0.8.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dee50161edd89a9480d3b7d1482414826b3f7a35b8f2714a10f5df21e538329 |
|
MD5 | 22e16d8bb568d7b916e8f5f75b21af70 |
|
BLAKE2b-256 | c378344c5eda78897ceed64e01f926fadef027fc5a97ab8754bff0f094b17b16 |
File details
Details for the file valorant_api-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: valorant_api-0.0.8-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4aaad736484a2f7e2ac01ec0d63e483f845cbc47240839eb475a02bd22b3f47 |
|
MD5 | 1123661d7810149aea482eb4de7cd62f |
|
BLAKE2b-256 | 2c2b464747bbdb8a2ab0ba69f1df6439c007993e1658b7565ee247a98b2fb97a |