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 details)
Built Distribution
File details
Details for the file valorant-api-0.1.2.tar.gz
.
File metadata
- Download URL: valorant-api-0.1.2.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9deb0571ad53a8c749fe2667a9e9aa2582704511d76907b6ec70947f151c2ccf |
|
MD5 | 2cc222650e8036d3188f5bc6597c21a1 |
|
BLAKE2b-256 | f9c1ab9828e2379fc4c462ba855dadbcceccd456a1cb6f0008955136c56489c7 |
File details
Details for the file valorant_api-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: valorant_api-0.1.2-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da42a20eb387b0b7b9dd5e8d9970513ee5af2165f72173b6c4628bed4e3d8713 |
|
MD5 | 4c8167a2cda1871af3a112e272809d5b |
|
BLAKE2b-256 | 8779b1a4db357ada8051f733ca85fd396c73a9a9a78e97a04cb6625f47a781db |