Skip to main content

bbm

📊 Buzzni Batch process Monitor -> BBM

Package version Supported Python versions

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

  1. Need to check report report_sample
  2. Full report (It will be sent as a file at 'need to check report' thread) report_sample

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)

Source distribution for bbm 0.0.12
File Size Uploaded
bbm-0.0.12.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for bbm 0.0.12
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

0.0.11

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page