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.

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

PeachCollectorQueue

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

# Client
q = PeachCollectorQueue("redis://localhost")
q.push_event({"type":"an-event-type", "foo": 66})
q.push_event({"type":"an-event-type", "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.1.6.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.1.6-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: peach-collector-1.1.6.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for peach-collector-1.1.6.tar.gz
Algorithm Hash digest
SHA256 cade81d8f008280440989fe5b843d5c10bb5e822fa805610bfa1a8688c4de0ac
MD5 714cbfd3f8cb61f093c34442eae0c731
BLAKE2b-256 cbe46dc33b70d3851762d9622a1d12cf75f99e350800108d050f89983056db61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: peach_collector-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for peach_collector-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dd4092414ef7d581174977d7ad5ed59a47219c1945e69d2b8ad8050a40b086c9
MD5 9eeba6b1908ea26c1ae032d691cb90eb
BLAKE2b-256 98aa7141db454f11b0979e7096d181764f088bf130c7b04e5c18205bc8d1a2cf

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