bbm
📊 Buzzni Batch process Monitor -> BBM
Installation
pip install bbm
Example
logging
from bbm import Interval, logging, setup
@logging()
def temp_func():
return "Hello World"
@logging(process_name="custom_name_of_process", interval=Interval.A_DAY)
def temp_func2():
return "Hello World"
if __name__ == "__main__":
setup(es_url="your-es-url", index_prefix="your-index-prefix")
temp_func()
temp_func2()
post report
from bbm import reporter, setup
if __name__ == "__main__":
# init bbm
setup(es_url="your-es-url", index_prefix="your-index-prefix")
# init reporter and send simple messages
reporter = reporter.Reporter(slack_token="your-slack-token", slack_channel_id="your-slack-channel-id")
post_response = reporter.post_message(title="title", text="text")
ts = post_response["ts"]
post_message_to_thread = reporter.post_message(title="title", text="text", ts=ts)
# send report
reporter.post_report()
Report sample
- Need to check report
- Full report (It will be sent as a file at 'need to check report' thread)
Metadata
Release files for bbm 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bbm-0.0.12.tar.gz | 1.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bbm-0.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.4 MB
Release files / bbm-0.0.12.tar.gz
| Download URL | bbm-0.0.12.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c29cffe5723f5c274e62418801419dc344d4c4e530ccc8877feef57840eaec7
|
|
BLAKE2b-256 checksum How to use checksums |
df627b746872d8f86399ac15032cb05ee48c1865c2c84f93a554bdf6c8379778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / bbm-0.0.12-py3-none-any.whl
| Download URL | bbm-0.0.12-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3eb4159576de1b6ba602ae06a920fd78a01833bf455edc72fdcf60fdf4d4edfa
|
|
BLAKE2b-256 checksum How to use checksums |
2a47f65691166ab863d4410d8b7e23ccdad436da597ae214ceaf062b38d6fcfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|