Datalys2 Tasks
A lightweight, local task orchestration system built for Windows.
dl2-tasks (Datalys2 Tasks) is a robust wrapper around the native Windows Task Scheduler. It provides a modern Python interface for scheduling, managing, and monitoring background tasks without the need for a heavy, always-on server process.
🌟 Features
- No Background Process Required: Leverages Windows' built-in
schtasks.exe. - Self-Scheduling Scripts: Add
schedule_me()to your script, run it once, and it's scheduled forever. - Lightweight: Minimal dependencies.
- Robust: If Python crashes, the scheduler remains.
📦 Installation
pip install dl2-tasks
🚀 Quick Start
Auto-Scheduling (The "Magic" Way)
The easiest way to use Datalys2 Tasks is to let your scripts schedule themselves.
-
Create
my_task.py:import datetime from datalys2_tasks.scheduler.autorun import schedule_me def job(): with open("log.txt", "a") as f: f.write(f"Ran at {datetime.datetime.now()}\n") if __name__ == "__main__": # Registers this script to run everyday at 08:00 schedule_me("MyDailyLog", frequency="DAILY", at="08:00") job()
-
Run it once manually:
python my_task.py -
That's it! Windows will now run this script every day at 08:00.
CLI Management
You can also manage tasks via the command line.
- List tasks:
datalys2-server schedule list - Add a task:
datalys2-server schedule add "Backup" "C:\scripts\backup.py" --schedule DAILY --time 02:00 - Run manually:
datalys2-server schedule run "Backup"
🖥️ Optional Dashboard
Includes a local dashboard for viewing task status.
datalys2-server start
Opens http://localhost:8000/dashboard
For full details, see the documentation.
Metadata
Release files for dl2-tasks 0.2.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 | |
|---|---|---|---|---|
| dl2_tasks-0.2.0.tar.gz | 17.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dl2_tasks-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.3 kB
Release files / dl2_tasks-0.2.0.tar.gz
| Download URL | dl2_tasks-0.2.0.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb8ce8ff9a3bf80102423c8adeb968982483062d37c109ff4612f5ad3ee38ce4
|
|
BLAKE2b-256 checksum How to use checksums |
66f1b78d700e0670e045d424501f0a6c67af5cb03b6448566bc8d217bdae827b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / dl2_tasks-0.2.0-py3-none-any.whl
| Download URL | dl2_tasks-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c675aaaea923662e13dff864d98a028d1c2bf034cb422711b8240d3ac093416
|
|
BLAKE2b-256 checksum How to use checksums |
afcb808064258eff3e1f90a01e0333891993859333112b06bc2904b543ae712e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for dl2-tasks 0.2.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.