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.
Metadata
Release files for trophy 1.26.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trophy-1.26.1.tar.gz | 137.4 kB | With provenance | Details for trophy-1.26.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trophy-1.26.1-py3-none-any.whl | Python 3 | none | any | Details for trophy-1.26.1-py3-none-any.whl |
Total release size: 463.2 kB
Release files / trophy-1.26.1.tar.gz
| Download URL | trophy-1.26.1.tar.gz |
|---|---|
| Size | 137.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e95fe82bc510676300e9acf7c1bfb330ae2712ed4ac9725336d71af81a38610
|
|
BLAKE2b-256 checksum How to use checksums |
f988994b3c8b1bb69d04d63ff9e284b8ff91dd4730b4d4e10d446b301600cfba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logRelease files / trophy-1.26.1-py3-none-any.whl
| Download URL | trophy-1.26.1-py3-none-any.whl |
|---|---|
| Size | 325.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f6d594b4e184b1e56a3774f89db68176ffce1faff5f7b561a5dcba1149f1b32
|
|
BLAKE2b-256 checksum How to use checksums |
4007918ad8aefce0fabce3612f01ff59af42d52f38b6cc79f39e01f6a13f3779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 21, 2026.
Transparency logSecurity for trophy 1.26.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for trophy-1.26.1.tar.gz
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 Oct 21, 2026.
Transparency logA 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.