AstraLuma / xontrib-schedule

Xonsh Task Scheduling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xontrib-schedule defines the schedule builtin, which is strongly based on schedule with some additions for non-periodic tasks.

Installation

To install use pip:

xpip install xontrib-schedule  # or from git: xpip install git+https://github.com/AstraLuma/xontrib-schedule
# and load:
xontrib load schedule

Usage

schedule.when(<time>).do() performs a task at some absolute time in the future.

schedule.delay(<time>).do() performs a task after a delay.

Example

schedule.delay(5).do(lambda: print('hello!'))
# wait 5 sec
hello!

Contributing

Fork, submit a pull request, and we'll have a discussion. Keep to PEP8.

Example

TBD

Credits

This package was created with cookiecutter and the xontrib template.

About

Xonsh Task Scheduling

License:MIT License


Languages

Language:Python 100.0%