Skip to main content

A python package for threshold based alerting using simple configuration.

Project description

pysentinel

pysentinel is a Python package for threshold-based alerting using simple configuration. It scans data sources and raises alerts when specified thresholds are crossed.

Features

  • Scan data sources for threshold violations
  • Simple configuration for thresholds and alerts
  • Easy integration into existing Python projects

Installation

You can install pysentinel using Poetry or pip.

Using Poetry

poetry add pysentinel

Using pip

pip install pysentinel

Usage

from pysentinel import Sentinel

# Example configuration
config = {
    "data_source": "path/to/data.csv",
    "thresholds": {
        "column1": 100,
        "column2": 50
    }
}

sentinel = Sentinel(config)
alerts = sentinel.scan()

if alerts:
    for alert in alerts:
        print(f"Alert: {alert}")

Requirements

  • Python >= 3.9, < 4.0

Development

To set up the development environment:

poetry install

To run tests:

poetry run pytest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysentinel-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysentinel-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pysentinel-0.1.1.tar.gz.

File metadata

  • Download URL: pysentinel-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for pysentinel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0541e546806dd3f0568ad906784924ee54550b2a38e556513b397655c68d4581
MD5 68a7fab63527e77a9401c0528fc7fd90
BLAKE2b-256 28d8e20fa9c9670e7fd1b85e9ddb9703341f4f88d93a9fac83e7eeda19202f59

See more details on using hashes here.

File details

Details for the file pysentinel-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pysentinel-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for pysentinel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd7cee960a1c09dd92845f69268b8c4140d42d47602a2995d5b04bb317372993
MD5 7fa031452c6f1ff60a3e314c80596eb5
BLAKE2b-256 c5257fd8cbabbbe6b361191c48d917901cf620678d8788120bff77fdb5a3fa14

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page