Skip to main content

An Asynchronous Unofficial Valorant API Wrapper for Python

Project description

valorant

A modern, easy to use, feature-rich, and async ready API wrapper for Valorant API written in Python.

Key Features

  • Modern Pythonic API using async and await.

Installing

Python 3.8 or higher is required

Windows:

$ pip install -U valorant.py

Linux/MacOS:

$ python3 -m pip install -U valorant.py

Quick Example

import asyncio
import valorant

async def main():
    client = valorant.Client(valorant.Locale.thai)  # set default locale to thai
    async with client:
        weapon = client.get_weapon('9c82e19d-4575-0200-1a81-3eacf00cf872')  # Vandal
        assert weapon is not None

        for skin in weapon.skins:
            print(skin.display_name)  # default locale
            print(skin.display_icon)

            # specify locale
            print(skin.display_name.ja_JP)
            print(skin.display_name.japanese)
            print(skin.display_name.from_locale(valorant.Locale.japanese))

            if skin.theme is not None:
                print(skin.theme.display_name)
                print(skin.theme.display_icon)

            if skin.content_tier is not None:
                print(skin.content_tier.display_name)
                print(skin.content_tier.display_icon)

            for level in skin.levels:
                print(level.display_name)
            for chroma in skin.chromas:
                print(chroma.display_name)


asyncio.run(main())

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project inspired by

Links

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.py-1.0.2a0.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

valorant.py-1.0.2a0-py3-none-any.whl (97.2 kB view details)

Uploaded Python 3

File details

Details for the file valorant.py-1.0.2a0.tar.gz.

File metadata

  • Download URL: valorant.py-1.0.2a0.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for valorant.py-1.0.2a0.tar.gz
Algorithm Hash digest
SHA256 86d79e0ea1ed2be781ae0a81ca690970838f6fecef5c20ff5158424d7bc40c16
MD5 81e2de0789c1ba714cf40f4c7ca3424f
BLAKE2b-256 6a81afa046584ff36401c2bbe4179fe2d4e96a9d69157d3536de45218f78d3bd

See more details on using hashes here.

File details

Details for the file valorant.py-1.0.2a0-py3-none-any.whl.

File metadata

File hashes

Hashes for valorant.py-1.0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 40bada302a2b320ca64a9285823d6885bf34f2d9d18df9526ba6b244377484ae
MD5 cf4a0aceed2929697288d6a680eb4135
BLAKE2b-256 69d765c9bb345fb4f32edc01d41c67e416da3a77e05f953f2251e03fb1cb7818

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