Skip to main content

Peach Collector client library for Python

Project description

peach-collector

Peach Collector client implementation in Python 3.8

PeachCollector

Simplest way to send events. Usage:

collector = PeachCollector("a-site-key", "an-app-id")
collector.add_event({"foo": 666})
collector.add_event({"bar": 777})
await collector.send_events()

PeachCollectorQueue

Pushes events on to a Redis queue which is drained at regular intervals. Usage:

# Client
q = PeachCollectorQueue("redis://localhost")
q.push_event({"foo": 66})
q.push_event({"bar": 777})

# Scheduled Worker
collector = PeachCollector("a-site-key", "an-app-id")
q = PeachCollectorQueue("redis://localhost", collector)
q.drain()

Project details


Download files

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

Source Distribution

peach-collector-1.0.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

peach_collector-1.0.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file peach-collector-1.0.3.tar.gz.

File metadata

  • Download URL: peach-collector-1.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.2

File hashes

Hashes for peach-collector-1.0.3.tar.gz
Algorithm Hash digest
SHA256 07da557b41d02e43ef6839ff8eea9490660dab56b606d605ff4a206359ebb582
MD5 439e39671b02b24831b53bc089c41d9e
BLAKE2b-256 30e86cb580bb2d4288082eb5e48fee7be550736d73e0854e56fc0797659e2ac5

See more details on using hashes here.

File details

Details for the file peach_collector-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: peach_collector-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.2

File hashes

Hashes for peach_collector-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bbbb609ae4f5dc8fd168bc49c25fd0c6604aaccd7f1004f2b6abcdf6bc2f64d5
MD5 f09fa9e956de3a7e435be3e40c6655b0
BLAKE2b-256 b157524adf68a57a3edf14eb7ea098f2aec06828aa65899c6b3e94714379320c

See more details on using hashes here.

Supported by

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