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.2.tar.gz
(5.8 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.2.tar.gz.
File metadata
- Download URL: peach-collector-1.1.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4074a9f999fafff7497f302bc93c11d03e03ce370c3e31be92ecf791c59f7974
|
|
| MD5 |
34500f893c98178e42c9e9690b7a3446
|
|
| BLAKE2b-256 |
18a882714fcf1e769e0b986092a9055fa93e6b9d8079c4fef5a21fc13b2dcb2a
|
File details
Details for the file peach_collector-1.1.2-py3-none-any.whl.
File metadata
- Download URL: peach_collector-1.1.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64483542faa496ecc80b1bf2c1a4832c6fa629071cf65d77ae7707ca5accd19e
|
|
| MD5 |
11abac2d94ccc32c10fe1c0a165a90d3
|
|
| BLAKE2b-256 |
62d37ee2b68db5a9514daa4ef4d0ef2fbf3b669398de8350559caa8ebd928ad1
|