NicKoehler / brawlhalla_api

An unofficial brawlhalla api implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

· Brawlhalla API

An unofficial brawlhalla api implementation

Table of contents

Introduction

This library provides an easy-to-use interface to interact with the Brawlhalla API. Users can retrieve information such as player rankings, player statistics, and more. The library also supports asynchronous requests, making it efficient to handle multiple requests simultaneously.

Installation

To install the Brawlhalla API library, use pip:

pip install git+https://github.com/nickoehler/brawlhalla_api

Usage

Authentication

To use the Brawlhalla API, you need to provide an API key. Send an email to api@brawlhalla.com with a detailed description of how you intend to use the service.

Examples

import asyncio
from brawlhalla_api import Brawlhalla

API_KEY = "..." # use your api key

async def main():
    brawl = Brawlhalla(API_KEY)
    players = await brawl.get_rankings()

    # printing every player
    for player in players:
        print(player.name)

    # get stats of the first player
    stats = await players[0].get_stats()
    ranked = await players[0].get_ranked()

asyncio.run(main())

License

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

Contributions

Contributions to this project are welcome. To contribute, follow these steps:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Make your changes and commit them with clear commit messages
  4. Push your changes to your forked repository
  5. Submit a pull request

Before making any significant changes, please open an issue to discuss the changes you plan to make.

About

An unofficial brawlhalla api implementation

License:MIT License


Languages

Language:Python 100.0%