Skip to main content

A Python API Wrapper for Oppe

Project description

oppe-for-python

codecov PyPI version Downloads License

An API wrapper for Oppe written in Python.

Installation

pip install oppe

Usage

Sending an event

from oppe import Oppe
from oppe.exceptions import EventRequestError

oppe = Oppe(api_token='insert-api-token-here', project_id="uuid-of-project")

try:
    oppe.event(
        channel_id="uuid-of-channel",
        title="user-registered",
        description="A new user has registered.",
        emoji="👋",
        data={
            "user_id": 123,
        },
    )
except EventRequestError as e:
    # Handle error
    print(e)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

oppe-0.2.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file oppe-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: oppe-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for oppe-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b9e21fedd26abc560f170fc635a8902be4c2bf941c6d5f57b8a0ce91df7eecf2
MD5 6e971902b7a5efcc5a03b23cc7c88355
BLAKE2b-256 49e6eaf9e64bca62418d86619d3830e7a64ee1418df348bf8c29cebc341418ec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page