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.0.7.tar.gz (5.9 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.7-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: peach-collector-1.0.7.tar.gz
  • Upload date:
  • Size: 5.9 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.8

File hashes

Hashes for peach-collector-1.0.7.tar.gz
Algorithm Hash digest
SHA256 d509eac4c8a5e2171fac21fc2854c37581e36e658de0316b2064af03307f45ac
MD5 cab513521a644496b892e0864573f016
BLAKE2b-256 f00353760a340289bcc2787827c51cdbadc50ad9060f4ba6534c47afa75fe64d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: peach_collector-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.8

File hashes

Hashes for peach_collector-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9bb465874eeb8c7e3e23c482bb07659f7399c244a01a24be289051946bed339c
MD5 bf868659102a6cae376886e616a03c6d
BLAKE2b-256 85c4455f7f988efd4129e3b5299b4846492a117c8114cfda8c09aafbc668703e

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