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
Release history Release notifications | RSS feed
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.1.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file peach-collector-1.1.1.tar.gz.
File metadata
- Download URL: peach-collector-1.1.1.tar.gz
- Upload date:
- Size: 6.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
097bb886a59ae018dbbec775770180a42e19c562e9770568dedf0d7aba58dd9e
|
|
| MD5 |
333d6bdcc6604da297efdef4ed553647
|
|
| BLAKE2b-256 |
a3694c34429b3bc528f3ca017e5e245124ed192c59efe1b2abf7bd30dcc0013a
|
File details
Details for the file peach_collector-1.1.1-py3-none-any.whl.
File metadata
- Download URL: peach_collector-1.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
330de8e7f15b5060cdb7397f54c6c91677b3c1cdfde3d02f294f564bb3ef6f71
|
|
| MD5 |
553e81680bfb92434e3129536bc257c0
|
|
| BLAKE2b-256 |
697340d3a45c04a6e0462bb646930dd025ffa736883032e2adee7792127871c3
|