Schedule pypyr pipelines with apscheduler and control them via REST. The API interface is provided by Zalando's connexion.
This documentation is in a very early stage and many things could be missing or wrong. Please rely on the code for now.
Make a new venv, activate it, clone the repo, run
pip install. No pypi release yet.
We recommend using pipenv, which makes it easy to run commands inside a virtual env without the need to create or activate it:
pip install --user pipenv # only needed once per python install pipenv install pipenv run pyrsched
Development / Testing
python -m pyrsched.
Browse to http://localhost:5000/ui/. This uses the builtin webserver from Flask, which
is not recommended for production use.
For example, the command line for
uwsgi would look like follows:
uwsgi --http 127.0.0.1:3031 -w pyrsched.wsgi --enable-threads
--enable-threads is necessary, if you intend to use the
apscheduler.executors.pool:ThreadPoolExecutor (which is default).
Note that the command line switches for the hostname and port number are not used if served via wsgi, these values
are provided to your wsgi server externally (see the
Detailed documentaion is available on ReadThedocs. It is generated from the
docs/source folder in this repository. Feel free to send a PR is you find any typos.
The API schema should be compliant to the OpenAPI 3.0.0 specification.
Flask-APScheduler provides a similar way to run job within flask as server. It even provides a REST-API. Try this if you don't need the functionality of pypyr.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pypyr_scheduler-1.0.5-py3-none-any.whl (18.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size pypyr-scheduler-1.0.5.tar.gz (13.0 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for pypyr_scheduler-1.0.5-py3-none-any.whl