Stats collector
Notification event collector
Instalation
Install with pip:
$ pip install notifstats
API
capture_event receives two arguments:
data : Analytic data to be captured. See Usage section.
is_production: Default to True. If False, the data will be sent to staging BigQuery.
Usage
Requires google-cloud-bigquery>=1.20.0
from datetime import datetime
from notifstats import capture_event
if __name__ == "__main__":
data = {
"notification_id": "test-12345",
"event_type": "sent_to_slackbot",
"object_id": "test-67890",
"taxonomy_id": "test-2345",
"created_at": datetime.now().isoformat(),
"notification_type": "segmented",
}
capture_event(data=data, is_production=False)
Available events_type:
available_events = [
"notification_requested",
"notification_sent_to_onesignal",
"notification_statistic_stored",
"notification_history_written",
"sent_to_slackbot",
]
License
MIT
Metadata
Release files for notifstats 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| notifstats-0.0.6.tar.gz | 2.7 kB | Without provenance | Details for notifstats-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notifstats-0.0.6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for notifstats-0.0.6-py2.py3-none-any.whl |
Total release size: 7.1 kB
Release files / notifstats-0.0.6.tar.gz
| Download URL | notifstats-0.0.6.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c635f2818adb98eb8eca3db3dc124e6bff8a88643102fd1e206882af08f5681a
|
|
BLAKE2b-256 checksum How to use checksums |
1ab913fe314722af0269c6a07f79f851216ac7dc3040a497d5f73a6f39543cc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.7
|
Release files / notifstats-0.0.6-py2.py3-none-any.whl
| Download URL | notifstats-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e2150b9a4e285a309319d7cc007b7c5cd8b01dca5011d2663e0b73778a98fa73
|
|
BLAKE2b-256 checksum How to use checksums |
5b779c2d202dd219862638ebc1b3637077c0ff8b1e8161c63aead466ab97de3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.7
|
Security for notifstats 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.