An unofficial brawlhalla api implementation
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.
To install the Brawlhalla API library, use pip:
pip install git+https://github.com/nickoehler/brawlhalla_api
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.
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())
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions to this project are welcome. To contribute, follow these steps:
- Fork the repository
- Create a new branch for your changes
- Make your changes and commit them with clear commit messages
- Push your changes to your forked repository
- Submit a pull request
Before making any significant changes, please open an issue to discuss the changes you plan to make.