Skip to main content

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 example http://127.0.0.1:8000/api/notify
  • API_TOKEN: API token expected by blade_dashboard server
  • AAILAB_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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aailab-tools 0.1.1
File Size Uploaded Provenance
aailab_tools-0.1.1.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aailab-tools 0.1.1
File Interpreter ABI Platform
aailab_tools-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / aailab_tools-0.1.1.tar.gz

Download URL aailab_tools-0.1.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e0789c3246cbe207f012fa2e7b81a31311634936b28c8a6d2f0cbaea3063e2ee
BLAKE2b-256 checksum
How to use checksums
a11076c7543dff0f99d7da69429318a5320f9b52d29072fc1a4c16a7090eecc2
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.1-py3-none-any.whl

Download URL aailab_tools-0.1.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66daa467da63f7b2bb70cb97be18bb2cc947855a449a812c2673dfafef9c87ae
BLAKE2b-256 checksum
How to use checksums
15cf8e3e19f5b46d8d597756c76440bc0a2353266226fbcd8108fa70b67e9e14
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.1

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.

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