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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trophy-1.21.0.tar.gz (121.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trophy-1.21.0-py3-none-any.whl (281.3 kB view details)

Uploaded Python 3

File details

Details for the file trophy-1.21.0.tar.gz.

File metadata

  • Download URL: trophy-1.21.0.tar.gz
  • Upload date:
  • Size: 121.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trophy-1.21.0.tar.gz
Algorithm Hash digest
SHA256 b5efac7bb7a75fc32f36dceaf8c9e846a7f793b86b97350fcd10e222a51bbce6
MD5 d732f636d2ae100cd69a65952d3ea24d
BLAKE2b-256 69161616eea5cce93c9c7fccc6fac904480cfe2100860ff2467245a0a3b44413

See more details on using hashes here.

Provenance

The following attestation bundles were made for trophy-1.21.0.tar.gz:

Publisher: publish-package.yml on trophyso/trophy-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trophy-1.21.0-py3-none-any.whl.

File metadata

  • Download URL: trophy-1.21.0-py3-none-any.whl
  • Upload date:
  • Size: 281.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trophy-1.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b0bc5f858c32ef619febb31380a27f8569909ab1531f14426ea613b6c1c904f
MD5 cd7faa2ad0ee8945dd5d96f913343fff
BLAKE2b-256 d5323c559f5bdcc24fbbd0d45eb7a560857721022c6cafdcaf2b52f8404099ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for trophy-1.21.0-py3-none-any.whl:

Publisher: publish-package.yml on trophyso/trophy-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.21.1

2 files

This release

1.21.0 This release

2 files

1.20.1

2 files

1.19.0

2 files

1.18.0

2 files

1.17.0

2 files

1.16.0

2 files

1.15.0

2 files

1.14.0

2 files

1.13.0

2 files

1.12.0

2 files

1.11.0

2 files

1.10.0

2 files

1.9.1

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.4

2 files

1.2.1

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.42

2 files

1.0.40

2 files

1.0.38

2 files

1.0.36

2 files

1.0.35

2 files

1.0.34

2 files

1.0.32

2 files

1.0.31

2 files

1.0.30

2 files

1.0.29

2 files

1.0.28

2 files

1.0.27

2 files

1.0.26

2 files

1.0.25

2 files

1.0.24

2 files

1.0.23

2 files

1.0.22

2 files

1.0.21

2 files

1.0.20

2 files

1.0.19

2 files

1.0.18

2 files

1.0.17

2 files

1.0.16

2 files

1.0.15

2 files

1.0.14

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page