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")
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.6.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file valorant-api-0.0.6.tar.gz
.
File metadata
- Download URL: valorant-api-0.0.6.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cd0fbe0ab0e88a3807591364ac2c941e941485573b534fc551ff44b288f0c7a |
|
MD5 | 77e93855383f66e212708794964ad510 |
|
BLAKE2b-256 | 5d593fa7fe163cfed2d6f362a5dcb4b00095900f6d60dd5975866f933f1d8732 |
File details
Details for the file valorant_api-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: valorant_api-0.0.6-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1347725bf58475dbcb6af08187d6d713e1fa5cb555c56a19a49d5584576bfb76 |
|
MD5 | a72b770dfa5884f7850a2d016e65d40e |
|
BLAKE2b-256 | 5226f654c63e738e048b4c5e0e79f7b43e3c5fd534b272572ee065cd56c3178f |