Skip to main content

This is a wrapper for the Valorant API, source: https://github.com/henrikdev/valorant-api

Project description

Downloads

LanoValoPy (Lanore Valorant Python)

LanoValoPy is a python-based wrapper for the following Valorant Rest API:

https://github.com/Henrik-3/unofficial-valorant-api

This API is free and freely accessible for everyone. An API key is optional but not mandatory. This project is NOT being worked on regularly.

This is the first version. There could be some bugs, unexpected exceptions or similar. Please report bugs on our discord.

API key

You can request an API key on Henrik's discord server
It is NOT required to use an API key though!

Summary

  1. Introduction
  2. Download
  3. Documentation
  4. Support

Introduction

Some requests may take longer.

Get Account and mmr informations

import asyncio
from lano_valo_py import LanoValoPy
from lano_valo_py.valo_types.valo_enums import MMRVersions, Regions

async def main():
    # Initialize the API client with your token
    api_client = LanoValoPy(henrik_token="YOUR_TOKEN_HERE")

    # Example: Get Account Information
    account_options = AccountFetchOptionsModel(name="LANORE", tag="evil")
    account_response = await api_client.get_account(account_options)
    print(account_response)

    # Example: Get MMR
    mmr_options = GetMMRFetchOptionsModel(
        version=MMRVersions.v2,
        region=Regions.eu,
        name="Lanore",
        tag="evil",
    )
    mmr_response = await api_client.get_mmr(mmr_options)
    print(mmr_response)


if __name__ == "__main__":
    asyncio.run(main())

Get Stored-MMR-History

from lano_valo_py.valo_types.valo_enums import MMRVersions, Regions
from lano_valo_py.valo_types.valo_models import (
    GetMMRStoredHistoryFilterModel,
    GetMMRStoredHistoryOptionsModel,
    GetMMRStoredHistoryByPUUIDResponseModel
)

import asyncio

from lano_valo_py import LanoValoPy


async def main():
    # Initialize the API client with your token
    api_client = LanoValoPy(henrik_token="You_token_here")

    # Example: Get Stored MMR History

    # Use filter if u have more than 20 match in one episode
    option_filter = GetMMRStoredHistoryFilterModel(
        size=20
    )  # max size one one page is 20, page is 1 by default

    mmr_options = GetMMRStoredHistoryOptionsModel(
        version=MMRVersions.v1,
        region=Regions.eu,
        name="Lanore",
        tag="evil",
        filter=option_filter,
    )
    stored_mmr_history_response = await api_client.get_stored_mmr_history(mmr_options)
    print(stored_mmr_history_response)

    # Example: Get Stored MMR History By PUUID
    mmr_options = GetMMRStoredHistoryByPUUIDResponseModel(
        version=MMRVersions.v1,
        region=Regions.eu,
        puuid="e4122af3-fa8c-582c-847d-42a3868925cd",
        filter=option_filter,
    )
    stored_mmr_history_response = await api_client.get_stored_mmr_history_by_puuid(mmr_options)
    print(stored_mmr_history_response)

Examples

Fore more examples

Download

pip install lanovalopy@latest

Documentation

Hosted

The documentation is hosted here: https://Lanxre.github.io/LanoValoPy/

Support

For support visit my discord server

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

lanovalopy-0.9.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

lanovalopy-0.9.0-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file lanovalopy-0.9.0.tar.gz.

File metadata

  • Download URL: lanovalopy-0.9.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for lanovalopy-0.9.0.tar.gz
Algorithm Hash digest
SHA256 de9d7f8835509a39f1f948413e2676f9fce9a606795fa8d2fff9c2c625be822e
MD5 922c4c15932380cebaa7aee1de0fb87d
BLAKE2b-256 40caebbb5fb37541d0de8d5e99759aafa6d7d691f16fe3ae6731aeb466401149

See more details on using hashes here.

File details

Details for the file lanovalopy-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: lanovalopy-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/6.5.0-1025-azure

File hashes

Hashes for lanovalopy-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a7950013038c0bccd44d1862441b9985caa5cbcecddc28ae47785f386604517
MD5 39502e72006f1fd6cf5ef758f817acf3
BLAKE2b-256 2f3ee301e81df4fce39ac9851c44aaeecb6a3563478feb9962481f15285f38c2

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