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 details)
Built Distribution
File details
Details for the file valorant-api-0.1.0.tar.gz
.
File metadata
- Download URL: valorant-api-0.1.0.tar.gz
- Upload date:
- Size: 702.9 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 | 5786f89d5f34aebb35fc17ee1733a6949c582d9d74fe972d86e7f32578478be2 |
|
MD5 | 95259f5a25a780033342983f77f90c9d |
|
BLAKE2b-256 | bd2c19ccb30ac1e8f364e291212c2970bb2e707b048151cf6d19f6a735c1881f |
File details
Details for the file valorant_api-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: valorant_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.9 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 | 5a40ced88d857f508be00a1608f1bbf785febe55d529704b0afef54d2ac3bea3 |
|
MD5 | 83bca69b5d0b68bb164e40a4f65a056f |
|
BLAKE2b-256 | 8a03f349231939a8b22be4f297c38b2a5a988be8da3af835bbc0464603005d28 |