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

Uploaded Source

Built Distribution

valorant_api-0.1.1-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-api-0.1.1.tar.gz
  • Upload date:
  • Size: 703.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for valorant-api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f771c5b57207646550ead2a277134cf4759cf4bec26956936a20f275b48345e0
MD5 5dc31ae1035094e3a6f3268f2486c3a3
BLAKE2b-256 aa3b0d9e7d33a878fcc85ea7ce251356aa1635269ca6b1565dc1d3bfed8e988e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for valorant_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31e062b2b9c6d012c789e081cc406162a597d13668b5631638610ece3b5d0954
MD5 a1fd9c8010c806ec784deb31832b995e
BLAKE2b-256 bdf7ef6016b1c1d7b405a387416aaadf96890edf18196333b3e6ebcd4c7825be

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