Skip to content

AstraLuma/xontrib-schedule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages