Skip to content

NicKoehler/brawlhalla_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

· 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 [email protected] 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.