This release is a pre-release and may not be stable for production use.
Trophy Python SDK
The Trophy Python SDK provides convenient access to the Trophy API from applications written in the Python language.
Trophy provides APIs and tools for adding gamification to your application, keeping users engaged through rewards, achievements, streaks, and personalized communication.
Installation
You can install the package via pip:
pip install trophy
Usage
The package needs to be configured with your account's API key which is available in the Trophy dashboard.
from trophy import EventRequestUser, TrophyApi
client = TrophyApi(
api_key="YOUR_API_KEY",
)
client.metrics.event(
key="words-written",
user=EventRequestUser(
id="18",
email="jk.rowling@harrypotter.com",
tz="Europe/London",
),
value=750.0,
)
Documentation
See the Trophy API Docs for more information on the accessible endpoints.
Release files for trophy 1.24.0b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trophy-1.24.0b0.tar.gz | 135.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trophy-1.24.0b0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 456.0 kB
Release files / trophy-1.24.0b0.tar.gz
| Download URL | trophy-1.24.0b0.tar.gz |
|---|---|
| Size | 135.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55d5328f7c4b911881b017afe06c2175d88173972933bdb98a4ed1768f2e6556
|
|
BLAKE2b-256 checksum How to use checksums |
0b21757b439357432c5b9ba04e6a48a6ae8009014a519a6af388dbb044217efa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / trophy-1.24.0b0-py3-none-any.whl
| Download URL | trophy-1.24.0b0-py3-none-any.whl |
|---|---|
| Size | 320.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46c167ab64a00992d92e65fc4ebc2928ff656cb30c1f68c454e45ef67f75c1db
|
|
BLAKE2b-256 checksum How to use checksums |
4122aecfd68388b9ec688766fff2233c4ed4ab1a0782e07ccf12e2f3bdfe01b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency log