aailab-tools
aailab-tools provides a notify() decorator that reports the completion status
of a function to the blade_dashboard notification API.
Installation
pip install aailab-tools
Configuration
The decorator reads its configuration from environment variables:
SERVER_NOTIFY: full notification endpoint URL, for examplehttp://127.0.0.1:8000/api/notifyAPI_TOKEN: API token expected byblade_dashboard serverAAILAB_MACHINE_ID: optional machine identifier; if omitted, hostname is used
Usage
from aailab_tools import notify
@notify("user@example.com", "admin@example.com")
def run_job():
return 42
On success, the server receives status 0. If the function raises an exception,
the exception text is sent as the status and the exception is re-raised.
Metadata
Release files for aailab-tools 0.1.0
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 | |
|---|---|---|---|---|
| aailab_tools-0.1.0.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aailab_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / aailab_tools-0.1.0.tar.gz
| Download URL | aailab_tools-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cafc487e5510a525db394dbb33207e33d6e25214225f3f96ae61c4a371723f16
|
|
BLAKE2b-256 checksum How to use checksums |
e6963338db5145d66968622463d156fbff4de867a68597725c412a9785448fb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / aailab_tools-0.1.0-py3-none-any.whl
| Download URL | aailab_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a697e16f66d79d26cc3d2c3ee8a0977dc5d3153ec9e2be95f7cb95c3cfad1f1c
|
|
BLAKE2b-256 checksum How to use checksums |
fe6f4204009364ddbb57e3145117eb6f40281f42b0cc58b41f9e0913cb0f93b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for aailab-tools 0.1.0
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.