Unofficial Python wrapper for the Brawl Stars API.
Project description
NovaBrawlStarsApi
A Python library to easily interact with the Brawl Stars API and fetch player information.
Features
- Retrieve detailed player information
- Supports multiple player tags
- Easy Python integration
- Secure API key management with .env
Installation
You can install NovaBrawlStarsApi via pip:
pip install novabrawlstars
Or clone the repo and installation dependencies manually:
git clone https://github.com/NovaFenice/NovaBrawlStarsApi.git
cd NovaBrawlStarsApi
Usage
How to get players info
from novabrawlstars.client import NovaBrawlStars
import os
from dotenv import load_dotenv
load_dotenv()
api_bs = os.getenv("api_bs") # Your Brawl Stars API token
tag_p1 = os.getenv("tag_p1") # Brawl Stars Player tag (es. #12345678 or 12345678)
nb = NovaBrawlStars(api_bs) # Initialize the Brawl Stars API client
player_1 = nb.get_player(tag_p1) # Get a Player object from the API
How to get battlelog info
from novabrawlstars.client import NovaBrawlStars
import os
from dotenv import load_dotenv
load_dotenv()
api_bs = os.getenv("api_bs") # Your Brawl Stars API token
tag_p1 = os.getenv("tag_p1") # Brawl Stars Player tag (es. #12345678 or 12345678)
nb = NovaBrawlStars(api_bs) # Initialize the Brawl Stars API client
player_1 = nb.get_battlelog(tag_p1) # Get a BattleLogListType object from the API
Notes
- Make sure to replace the player tags and API token.
- Supports both numeric and #-prefixed tags.
Donate Me 💖
If you like this project and want to support its development, you can donate:
- PayPal: WORKING IN PROGRESS
Every contribution helps me maintain and improve the library! Thank you for your support! 🙏
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file novabrawlstars-0.1.4.tar.gz.
File metadata
- Download URL: novabrawlstars-0.1.4.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f4aeea7bb4cbdfc080a84178dd85163193fee3a48f04ff30a28801706dc5797
|
|
| MD5 |
18e95866be68da6d9978c41361d8900b
|
|
| BLAKE2b-256 |
7aad6659ea601a0f9a8137aca8eed4b012968b6984208d2897c895b053045c74
|
File details
Details for the file novabrawlstars-0.1.4-py3-none-any.whl.
File metadata
- Download URL: novabrawlstars-0.1.4-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b9e8bc97d497ccf7770c8e4ba26594436bb25fd3fcf2cca3b80acc551ce0f25
|
|
| MD5 |
6021de6711055271fd96362f63a2ae17
|
|
| BLAKE2b-256 |
b259e0e4770a07a00784a5a489f99ba96c9f8641af7e9dd64338905b6ab38291
|