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")

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

Uploaded Source

Built Distribution

valorant_api-0.0.4-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-api-0.0.4.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for valorant-api-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b916b613fe0721b905b545fcb811114e6cbdfbf7670bbd7f9ae0fad28b8d2bcf
MD5 654b479e53aca52f3d3fb25bad6bebb9
BLAKE2b-256 31e1cb6fa2216ed0ca0c107a0f92482cc61a059089723b58dec8afa2da45d2ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant_api-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for valorant_api-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 69ba94ff67c1bd1e23f4cd9056852cde3d7f897770015eb7d1f241aeff7552c9
MD5 66cbc9dc9aa6d91736e59fcda0b4da0c
BLAKE2b-256 4d0fc9027579f8a570cb81651953e7c5fd488019b738ff01695ef481775b8d92

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