Skip to main content

Summary

Alert 360 can be used to trigger any specific action on any specific data changes. The actions can involve any sort of variables required to complete the action and the trigger can be any sort of change in state in an SQL database

Compatible RDBMS

  • PostgreSQL
  • Microsoft SQL
  • MySQL/MariaDB
  • SQLite
  • FireBird

Setup Instructions

  • Install the package
pip install alert360
  • Start a Django project
django-admin startproject djangoproject
  • Add the app to INSTALLED_APPS
INSTALLED_APPS = [
    ...
    'django_ace',
    'alert360',
    ...
]
  • Create a python file in which you can write your own actions that will be triggered when the state changes

actions.py

from alert360.actions import ActionsManager


@ActionsManager.add_handler
def print_changes(changes):
    print("Some changes occured")
    print(changes)

In the above code we declared our own custom function print_changes which will be called whenever the state changes and it will print the summary of changes. However, there's one more step left to connect this function to the ActionsManager

  • In the __init__.py file in the folder in which we created actions.py add the following line
from . import actions
  • Now run database migrations and create a superuser so you can access the admin website
python manage.py migrate
python manage.py createsuperuser
  • Now Login to the adminwebsite, connect a database, and create a new StateWatcher

Download files

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

Source Distribution

alert360-0.0.3.tar.gz (19.7 kB view details)

Uploaded Source

File details

Details for the file alert360-0.0.3.tar.gz.

File metadata

  • Download URL: alert360-0.0.3.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.19.7 CPython/3.9.6

File hashes

Hashes for alert360-0.0.3.tar.gz
Algorithm Hash digest
SHA256 50fffc6554e6996092ffe93522f32973a2f86e5a30b55a9725562617ffe3fdb0
MD5 a9fc3e9eac25112ab6c38d085e528292
BLAKE2b-256 9035a6ae08c639f9040e60d715f607fab45f7dbfde9c170e5d6d39720c59fb2f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

This release

0.0.3 This release

1 file

0.0.2

1 file

0.0.1

1 file

0.0.0

1 file

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