Skip to main content

Python wrapper for valorant-api.com

Project description

valorant-api

A Python wrapper for valorant-api.com

pypi Downloads

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

KAY/O

Requirements

  • python-dateutil
  • aiohttp
  • requests
  • Pillow

Project details


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.9.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

valorant_api-0.0.9-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file valorant-api-0.0.9.tar.gz.

File metadata

  • Download URL: valorant-api-0.0.9.tar.gz
  • Upload date:
  • Size: 14.1 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

Hashes for valorant-api-0.0.9.tar.gz
Algorithm Hash digest
SHA256 fb43b02ad77b698ce59212389662536b88965a86c0d346955564177929d66d66
MD5 8b8b58c3d9b4fd41aaff1f660f2c5e0d
BLAKE2b-256 8494561845d36c2c9bbc2005bf0e2ccce8a3dbc1c38f63e035d46e8b02e376b2

See more details on using hashes here.

File details

Details for the file valorant_api-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: valorant_api-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 20.5 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

Hashes for valorant_api-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c6ada20125a1a82407400735ab8eddcefb310cc01bc54c6d773753227fa30258
MD5 01f5b463b12f5837b2a4435d6f95454f
BLAKE2b-256 64be917fa59cc188f85171c456772457b29d7667400b68b4dfa652d0da7cc692

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page