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.5.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.5.tar.gz.
File metadata
- Download URL: peach-collector-1.1.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91853f623ad7f11a32327d2da7b0bc1115963d083239e8d91cba1a0a9c42900e
|
|
| MD5 |
37d568752c900a418c84f536e7944249
|
|
| BLAKE2b-256 |
b8f304af08d0253bb90f584abdbbd27bc47ebdae692e6a4fd88795f50fc7cd76
|
File details
Details for the file peach_collector-1.1.5-py3-none-any.whl.
File metadata
- Download URL: peach_collector-1.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63c6895ab35bc4a675e56e128d68255e3debc4862adb5ed860de52ff1720dd35
|
|
| MD5 |
cefc3ebe67413d8f66ee328c114d7b1d
|
|
| BLAKE2b-256 |
8c13471a3aacd5c5a1bdd724a7007f8ea6a6ee51e0053fc58fa386edb4ad948f
|