Skip to main content

itsTako_alerts_library

refer to Melius I+D

Speed alert driver notifications

Driver lookup and Telegram delivery are opt-in. Pass driver_notification_config to SpeedAlerts to enable them; omit it to retain the existing synchronous WhatsApp flow.

SpeedAlerts(
    redis_client=redis_client,
    whatsapp_config=whatsapp_config,
    time_window=60,
    alert_threshold=2,
    driver_notification_config={
        "api_key": os.getenv("TAKO_API_KEY"),
        "telegram_bot_token": os.getenv("TELEGRAM_TOKEN_EMASIVO"),
        "max_workers": 2,
        "request_timeout": 5,
    },
)

The trips API URL defaults to the Emasivo external trips endpoint and can be overridden with trips_api_url. The API key is sent as x-api-key. Bus IDs matching ZXX2222 are normalized to ZXX-2222 for lookup only. Background workers perform driver lookup, WhatsApp/Telegram delivery, reverse geocoding, and alert persistence without blocking the queue consumer.

Telegram messages include the alert bus and local time. When valid coordinates are available, they also include a Ver ubicación button that opens the alert location in Google Maps.

Metadata

Release files for tako-alerts-system 0.2.10

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

Source distribution (sdist)

Source distribution for tako-alerts-system 0.2.10
File Size Uploaded Provenance
tako_alerts_system-0.2.10.tar.gz 13.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tako-alerts-system 0.2.10
File Interpreter ABI Platform
tako_alerts_system-0.2.10-py3-none-any.whl Python 3 none any Details

Total release size: 29.6 kB

Release files / tako_alerts_system-0.2.10.tar.gz

Download URL tako_alerts_system-0.2.10.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d3a3bdb79498fcc223c7c7ad8b928727fad3c323522a11e365ef12227e3ee292
BLAKE2b-256 checksum
How to use checksums
ecd2dbaac4bb4910e349f2ec5aaae497bc734fff34b3627d51fbf6a3e6319781
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / tako_alerts_system-0.2.10-py3-none-any.whl

Download URL tako_alerts_system-0.2.10-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f94eb20ca2a9ba040e1453d1b9b9b9ea0562ee764e3f06869cea32168abb28e6
BLAKE2b-256 checksum
How to use checksums
8c86d843b088a2b0bb863cc9e96496776fcc2693cbf72edc32f001bd6e161ffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for tako-alerts-system 0.2.10

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.

Release history Release notifications | RSS feed

This release

0.2.10 This release

2 release files No provenance

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