Skip to main content

AFK Arena API.

Simple API wrapper for the AFK Arena site https://cdkey.lilith.com/afk-global.

Note: This wrapper is unofficial and is not associated with nor endorsed by Lilith Games.

The logic of this library has been part of my Discord bot, Dreaf, ever since AFK Arena changed to the external gift code redemption site. Due to the increased interest of community members on making use of this unofficial API, and the fact that this logic is currently being used across two seperate projects of my own, I figured it's time to make the API interactions standalone to ease maintenance and keep the feature scope focused on the essentials of its functionality.

Install

pip install afkarena

Requirements

  • Python 3.9+
  • aiohttp 3.7+

How to use

# create a Player object for the main user account.
player = Player(main_user_id)

# authenticate using the authentication code in game settings.
await player.verify(authentication_code)

# fetch data of all linked user accounts
await player.fetch_users()

# redeem one or more gift codes for all linked user accounts
results = await player.redeem_codes(gift_code_one, gift_code_two)

# view code redemption results
print(results)

Metadata

Release files for afkarena 0.2.0

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

Source distribution (sdist)

Source distribution for afkarena 0.2.0
File Size Uploaded Provenance Actions
afkarena-0.2.0.tar.gz 5.3 kB Without provenance Details for afkarena-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for afkarena 0.2.0
File Interpreter ABI Platform Actions
afkarena-0.2.0-py3-none-any.whl Python 3 none any Details for afkarena-0.2.0-py3-none-any.whl

Total release size: 11.9 kB

Release files / afkarena-0.2.0.tar.gz

Download URL afkarena-0.2.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5ff8655645936d6b7135da4a0816c0c1eda6e68f218a4f28b4343d5426f37343
BLAKE2b-256 checksum
How to use checksums
ea9d761ec3a8ada91b7d8227c3f6c1fae9f08e64903356a808b06c3863796737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.5 Linux/5.12.8-arch1-1

Release files / afkarena-0.2.0-py3-none-any.whl

Download URL afkarena-0.2.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
091eb05b836d4f9a2e89845f78a647bbdc708b73675f0853f57b51dc71334288
BLAKE2b-256 checksum
How to use checksums
8e2af15bcf1f85fe65268f91f1e98a64bfd5736e38feeb1882c97d58c8cc7447
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.5 Linux/5.12.8-arch1-1

Security for afkarena 0.2.0

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.

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