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
Metadata
Release files for alert360 0.0.9
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 |
|---|---|---|---|---|
| alert360-0.0.9.tar.gz | 20.4 kB | Without provenance | Details for alert360-0.0.9.tar.gz |
Release files / alert360-0.0.9.tar.gz
| Download URL | alert360-0.0.9.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a674aa8e4302080860a2ec91ab715abe18795c55a24445941eacdcbebba45996
|
|
BLAKE2b-256 checksum How to use checksums |
ad44745b02e4654b27485d73b931cf5959278fb12c32b02e3fb06b5c5af354e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for alert360 0.0.9
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.