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

Uploaded Source

Built Distribution

valorant_api-0.0.7-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: valorant-api-0.0.7.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for valorant-api-0.0.7.tar.gz
Algorithm Hash digest
SHA256 47465a663c11cf2b12fdb50eb135595423369d911d02b6b1d8b1e175eae5c3ec
MD5 8f2076fa0eadcc4ef21565dd0f3175c7
BLAKE2b-256 864db9bb4e0a5badbd7ccb86853daab53d5be912878508c01aa46b4c76cd5b2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: valorant_api-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for valorant_api-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c6bdac3077fc0eec9ca0a972f106d2a06bfc1e125491036ae99199bf99dcbe64
MD5 2a53e9cc86aaae11b105a2c39bc5cbb9
BLAKE2b-256 478af6d4b34bb5b5878aece941d21bc5bb3d17e104e8727c373228c3dd49fd81

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