Skip to main content

A fully-typed Python library for the Clash Royale API

Project description

Clash Royale Python 👑

CI Status Documentation Test coverage percentage

uv Ruff ty pre-commit

PyPi Status pyversions license


A friendly, fully-typed Python wrapper around the Clash Royale API.


Cooked by Guillaume Coussot 👨‍🍳

Installation

The package is published on PyPI and can be installed by running:

pip install clash-royale-python

Basic Use

Easily query the Clash Royale API from your Python code. The data returned by the API is mapped to fully-typed Python models:

import clash_royale

client = clash_royale.Client(api_key="your-api-key")

# Get a player by tag
player = client.players.get("#ABC123")
print(player.name)

# Get a clan and its members
clan = client.clans.get("#XYZ789")
for member in client.clans.get_members("#XYZ789"):
    print(member.name)

# Search for clans
results = client.clans.search(name="Royal")
for clan in results:
    print(clan.name)

Ready for more? Check out the full documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clash_royale_python-0.2.2.tar.gz (623.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clash_royale_python-0.2.2-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

Details for the file clash_royale_python-0.2.2.tar.gz.

File metadata

  • Download URL: clash_royale_python-0.2.2.tar.gz
  • Upload date:
  • Size: 623.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clash_royale_python-0.2.2.tar.gz
Algorithm Hash digest
SHA256 fa99a2459c8b6a8bac2652ae4ab8e6b902b1715d371adcf09d09d093a2e6ee58
MD5 986692d12467a7714a823e1a4a841f15
BLAKE2b-256 788b960a87ced77b4962ff58746a33f213ec00e83dce6aab3a86f41b56785f41

See more details on using hashes here.

Provenance

The following attestation bundles were made for clash_royale_python-0.2.2.tar.gz:

Publisher: publish.yml on GuiEpi/clash-royale-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clash_royale_python-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for clash_royale_python-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a375e935964af93e295cb28f65240affc2df361ad135d7ff971d935b0aba6c25
MD5 f0f3098c6328b5f3970f100097de33d9
BLAKE2b-256 f5b446d7cc852609eee6316048c6cf82257eed404aabfe68b1f1c18aee5e9b59

See more details on using hashes here.

Provenance

The following attestation bundles were made for clash_royale_python-0.2.2-py3-none-any.whl:

Publisher: publish.yml on GuiEpi/clash-royale-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page