.. image:: https://api.travis-ci.org/luca-vercelli/pcrond.svg?branch=master
.. image:: https://coveralls.io/repos/luca-vercelli/pcrond/badge.svg?branch=master
Userspace cron daemon
A daemon similar to the standard `crond`, however it is designed to run in userspace, not as root.
Jobs scheduling use exactly the same formalism of crond.
Written in Python.
Some of the code was taken from https://github.com/dbader/schedule, release under MIT license.
This project is not interested in the "human stuff" of the original project.
(well, mostly taken from https://github.com/dbader/schedule)
- A simple to use API for scheduling jobs.
- Very lightweight and no external dependencies.
- Excellent test coverage.
- Tested on Python 2.7, 3.5, and 3.6
.. code-block:: bash
$ ./setup.py install --prefix=~/.local
$ pcrond path/to/my/crontab/file
(this assumes that ``~/.local/bin`` is in the PATH)
It is also possible to use this library within your Python program, however this is not the intended use.
.. code-block:: python
from pcrond import scheduler
scheduler.add_job("30 4 * * 0", my_python_func) #every sunday at 4:30