Skip to main content

Clash Royale API wrapper for Python 3

Project description

pyroyale – Clash Royale API wrapper

This is a tool for data from the official ClashRoyale developer API. See https://developer.clashroyale.com to sign up for a developer account and create an API key to use with this.

Work in Progress

You probably shouldn’t use this yet. It’s very much a work in progress. It’s also an incomplete implementation at this time. I’ve only implemented the few API endpoints required for crtools, which are:

  • /v1/clans/{clan_tag}

  • /v1/clans/{clan_tag}/warlog

  • /v1/clans/{clan_tag}/currentwar

I plan on implementing the entire API eventually, but it’s not present at this time.

Integration tests

If you wish to work on this project, and run integration tests whenever you run make test or python3 setup.py test, you need to create a file called .crtools in your home folder (must resolve as ~/.crtools), and it must contain the following:

[API]
api_key=<YOUR-API-KEY>

The API key can be acquired at https://developer.clashroyale.com

Note that the key is limited to a specific list of public IP addresses. This is why integration tests aren’t done on Travis – we need a static IP.

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

pyroyale-0.4.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pyroyale-0.4.0-py2.py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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