The process virtual machine
Project description
The process virtual machine
This project defines storage for an abstract _process_ in a company, and implements a virtual machine that keeps track of the execution of instances of the process.
Develop
You will need the redis and mongo databases, and rabbitmq for this to work.
git clone https://github.com/tracsa/cacahuate.git && cd cacahuate
virtualenv -p /usr/bin/python3 .env
echo "export CACAHUATE_SETTINGS=$(pwd)/settings_develop.py" >> .env/bin/activate
echo "export FLASK_APP=cacahuate.http.wsgi" >> .env/bin/activate
echo "export FLASK_DEBUG=1" >> .env/bin/activate
touch settings_develop.py
source .env/bin/activate
pip install -r requirements.txt
pytest
Installation
pip install cacahuate
Cacahuated
This is the daemon in charge of moving pointers in the process, run with:
cacahuated
The Cacahuate REST API
In this same repository you will find a flask application that exposes a REST api for controling Cacahuate.
How to run
FLASK_APP=cacahuate.http.wsgi flask run
You can use any wsgi-compliant server, like gunicorn, to run this:
gunicorn cacahuate.http.wsgi:app
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cacahuate-1.5.0.tar.gz
(19.0 kB
view hashes)
Built Distribution
cacahuate-1.5.0-py3-none-any.whl
(28.3 kB
view hashes)
Close
Hashes for cacahuate-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c14617694d41a8d3c67771488946557b155b763f148a14ff4f4990b70e8ff74d |
|
MD5 | b18a4d2ccb7ad6df6324729de67de44f |
|
BLAKE2b-256 | 0620cc6b2974b56f5e61e25a4de32cf263e9a980eb50bf2dffb260dda9c09926 |