Skip to main content

Cron scheduling tool for exoclaw

Project description

exoclaw-tools-cron

Cron scheduling tool and service for exoclaw — lets the agent schedule one-time, recurring, and cron-expression-based tasks that persist across restarts.

Install

pip install exoclaw-tools-cron

Usage

from pathlib import Path
from exoclaw_tools_cron.service import CronService
from exoclaw_tools_cron.tool import CronTool

cron_service = CronService(
    store_path=Path("~/.nanobot/workspace/cron.json").expanduser(),
    on_job=my_job_handler,   # async callable that receives a CronJob
)
await cron_service.start()

cron_tool = CronTool(cron_service=cron_service)
# Register cron_tool with the agent's tool registry

The agent uses CronTool to add/list/remove/update jobs. CronService persists jobs to disk in JSON and reloads automatically if the file is modified externally. Supports every_seconds, cron_expr (with IANA timezone), and at (ISO datetime) schedules.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exoclaw_tools_cron-0.4.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exoclaw_tools_cron-0.4.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file exoclaw_tools_cron-0.4.0.tar.gz.

File metadata

  • Download URL: exoclaw_tools_cron-0.4.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exoclaw_tools_cron-0.4.0.tar.gz
Algorithm Hash digest
SHA256 37942f3b8855d4d6be0f28bf701f88d7b34f2c11ca4310c81ec27420794dacd9
MD5 ad4bb20239a4f2e4e0b5bbaecee8bc60
BLAKE2b-256 6b5fdf29f53889080e5de24711506cfef2f12ccaa114d26a74fe5346977be6cf

See more details on using hashes here.

File details

Details for the file exoclaw_tools_cron-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: exoclaw_tools_cron-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exoclaw_tools_cron-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1df72b54f7bd0f18ed91f948e1f0fe0ece41056f14ce6e596e966daad624813b
MD5 5495a49de8bdfca254b19868f5668eed
BLAKE2b-256 d22c9aa411f5483e901f71eb4de5f982717eac97357017cc981ef025034bfec8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page