Skip to main content

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.22.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 trophy 1.22.0
File Size Uploaded
trophy-1.22.0.tar.gz 121.1 kB Details

Built distribution (wheel)

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

Total release size: 402.6 kB

Release files / trophy-1.22.0.tar.gz

Download URL trophy-1.22.0.tar.gz
Size 121.1 kB
Tags Source
SHA-256 checksum
How to use checksums
33a7fcd660fbd3d3d2e730a357a72e9da66422765a5f1e0e2f6f877d06820f27
BLAKE2b-256 checksum
How to use checksums
d515645861a33d804c6765c799c38ef3f14c8f55130e467633d59cfc7bf043a0
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 Aug 26, 2026.

Transparency log

Release files / trophy-1.22.0-py3-none-any.whl

Download URL trophy-1.22.0-py3-none-any.whl
Size 281.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7284b247ddb8dbcce84f4f95af8ff1b6b71cf0fe586ab806b415a5b46e765d8f
BLAKE2b-256 checksum
How to use checksums
9c4657d1a3329340f0a281e23243d28b19dd1e7903a44ac6a84fb6999ea6ec9f
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 Aug 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.22.0 This release

2 release files

1.21.1

2 release files

1.21.0

2 release files

1.20.1

2 release files

1.19.0

2 release files

1.18.0

2 release files

1.17.0

2 release files

1.14.0

2 release files

1.10.0

2 release files

1.9.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.4

2 release files

1.2.1

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.42

2 release files

1.0.40

2 release files

1.0.38

2 release files

1.0.36

2 release files

1.0.35

2 release files

1.0.32

2 release files

1.0.31

2 release files

1.0.30

2 release files

1.0.29

2 release files

1.0.28

2 release files

1.0.27

2 release files

1.0.26

2 release files

1.0.25

2 release files

1.0.24

2 release files

1.0.20

2 release files

1.0.19

2 release files

1.0.18

2 release files

1.0.17

2 release files

1.0.16

2 release files

1.0.15

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

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