Skip to main content

Python wrapper for valorant-api.com

Project description

valorant_api

python wrapper for valorant-api.com

Installation

pip install git+https://github.com/MinshuG/valorant-api
or
pip install valorant-api

Usages

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
  • setuptools
  • 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.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

valorant_api-0.0.2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-api-0.0.2.tar.gz
  • Upload date:
  • Size: 9.9 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.2.tar.gz
Algorithm Hash digest
SHA256 7edef1c9a6bdd7fc053d9315cdc1802a1f2fe2d49a53d768121b83ecf7f666d9
MD5 ff7f9e39f64993ae18b54e5cf0a82b00
BLAKE2b-256 54bf62aca13201e8c9c58885a58e86ad7133745a7c1095c1369cd9149b173adc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant_api-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e15d59952f244df629a00863ab115a4e9f8f367158d7cb593169e6c1414ed96
MD5 054b01bbb9953f01e68067969a33fa83
BLAKE2b-256 94824a7406e031d5523f48bb27b3d3d04e6ec51d30b4b5686a4362c8d63143bf

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