Skip to main content

BrawlPy

Downloads PyPI

A basic wrapper for the Brawl Stars API.

Features

  • Easy to use with OOP design
  • Get a player's profile and battle log by just a tag
  • Get a club and all its member
  • Get the top 200 clubs , players, or a specific brawler in the world or a region
  • Get Information about a map, event, brawler!!!

Installation

To install the library run the following command:

pip install brawlpy

To install the development version run the following command:

pip install git+https://github.com/PyStarr/BrawlPy

Example

A Simple Example to get a player by their tag

import brawlpy
import asyncio

client = brawlpy.Client('your_api_key_here') # Enter your api key here

async def main():
    player = await client.get_player("JP20RUR2")
    
    print(player)

    print(player.name,player.tag, player.trophies)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Another simple Example to get a club by its tag

import brawlpy
import asyncio

client = brawlpy.Client('your_api_key_here') # Enter your api key here

async def brawlPy():
    club = await client.get_club("PVQ0RP90")
    
    print(club)

    print(club.name,club.tag, club.trophies)
    
    print(club.description)
    
loop = asyncio.get_event_loop()
loop.run_until_complete(brawlPy())

Metadata

Release files for brawlpy 1.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brawlpy 1.2.5
File Size Uploaded Provenance Actions
brawlpy-1.2.5.tar.gz 10.5 kB Without provenance Details for brawlpy-1.2.5.tar.gz

Release files / brawlpy-1.2.5.tar.gz

Download URL brawlpy-1.2.5.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bc88314834d127d26ae46f2d1c894be0e5ae8f1d988029e28841accb45c2d114
BLAKE2b-256 checksum
How to use checksums
1c34e8c666e40302b81a006d48f1bd51e2e39736ab1d02242ec94d64e670614c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for brawlpy 1.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page