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

Uploaded Source

Built Distribution

valorant_api-0.0.5-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-api-0.0.5.tar.gz
  • Upload date:
  • Size: 10.6 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.5.tar.gz
Algorithm Hash digest
SHA256 7fee32e137b10181a481ab397ba4b7f2773d290edfde389d42bf3e3594ab437b
MD5 9f13a0e172a273bd833766196ea9e44c
BLAKE2b-256 37b5bbeda804df14b13312089d17e654f39e4346ede777ddbd4a87585589e790

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant_api-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3d70fe47b5d13de57eb7992a971d4d225976a5849ab020800413ebcb231cbae4
MD5 b79fa7e4419aa9ed53a6b67589299d76
BLAKE2b-256 02324cbd6744176367690f9c8fb15886cef3b1d0b6f420d8587c4f0e6d89c33a

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