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.23.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.23.0
File Size Uploaded
trophy-1.23.0.tar.gz 121.7 kB Details

Built distribution (wheel)

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

Total release size: 404.0 kB

Release files / trophy-1.23.0.tar.gz

Download URL trophy-1.23.0.tar.gz
Size 121.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bd23ee7d4eeca9d80909b182d49c819f44dc97c5672bb906ebfe95a0c8b16538
BLAKE2b-256 checksum
How to use checksums
8452b847c19f021ee4dfa49c60df284e07c7a0afd74aa84a5a8f4e1e2e082dce
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 1, 2026.

Transparency log

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

Download URL trophy-1.23.0-py3-none-any.whl
Size 282.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e17f27f5d993730577c2e59cc01a0cf53024ce27d34d74f4f3a5e696e8f80d9
BLAKE2b-256 checksum
How to use checksums
e2e401c7e4f5b3809a7397ed9cd35487378bbc5d96e92f3fcf3992f2d7029292
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 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.23.0 This release

2 release files

1.22.0

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