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.1.2.tar.gz
(1.6 MB
view hashes)
Built Distribution
Close
Hashes for valorant_api-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da42a20eb387b0b7b9dd5e8d9970513ee5af2165f72173b6c4628bed4e3d8713 |
|
MD5 | 4c8167a2cda1871af3a112e272809d5b |
|
BLAKE2b-256 | 8779b1a4db357ada8051f733ca85fd396c73a9a9a78e97a04cb6625f47a781db |