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.0.tar.gz
(702.9 kB
view hashes)
Built Distribution
Close
Hashes for valorant_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a40ced88d857f508be00a1608f1bbf785febe55d529704b0afef54d2ac3bea3 |
|
MD5 | 83bca69b5d0b68bb164e40a4f65a056f |
|
BLAKE2b-256 | 8a03f349231939a8b22be4f297c38b2a5a988be8da3af835bbc0464603005d28 |