Peach Collector client library for Python
Project description
peach-collector
Peach Collector client implementation in Python 3.8
PeachCollector
Simplest way to send events. Usage:
collector = PeachCollector("a-site-key", "an-app-id")
collector.add_event({"foo": 666})
collector.add_event({"bar": 777})
await collector.send_events()
PeachCollectorQueue
Pushes events on to a Redis queue which is drained at regular intervals. Usage:
# Client
q = PeachCollectorQueue("redis://localhost")
q.push_event({"foo": 66})
q.push_event({"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.0.4.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.0.4.tar.gz.
File metadata
- Download URL: peach-collector-1.0.4.tar.gz
- Upload date:
- Size: 5.8 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.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e962acd3839b113787ff0cb72194f3c38ef0f5910362495bc0854936395f62b6
|
|
| MD5 |
9a8d77f35417acdaa2dd76d7d9f2a575
|
|
| BLAKE2b-256 |
a904d20c5823e37248639ff044190cd597a2fc9ab4d7652ef238b0a3f0853c12
|
File details
Details for the file peach_collector-1.0.4-py3-none-any.whl.
File metadata
- Download URL: peach_collector-1.0.4-py3-none-any.whl
- Upload date:
- Size: 7.8 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.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9fd25ff2382257f4c8e095a886a41d0d247cd71ebb4357db0e939e389503fe0
|
|
| MD5 |
7dbf00361c3fe5ade85e23c5d4c35129
|
|
| BLAKE2b-256 |
76d2714cd492746c0f67f81223a134d6153626b7ff162f2d7ee40a4db0af4452
|