Skip to main content

The process virtual machine

Project description

Build Status

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

TODO

  • cambiar api de LoginProvider y HierarchyProvider, no deben guardar usuarios

  • auth backends no deben crear usuarios, solo devolver objetos calificados

  • date input solo debe recibir yyyy-mm-dd

  • hacer validación intensiva de xml: - dependencias existen arriba en el xml - id de nodos son únicos - condicionales validan - params existen

  • guardar en un store privado por hash los xml al iniciar proceso, obsoleta el sistema de versiones (borrar toda referencia a la versión)

  • atrapar excepciones de template de jinja y añadir mensaje al titulo

  • todo uso de jinja debe tener try

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-2.0.0rc2.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cacahuate-2.0.0rc2-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file cacahuate-2.0.0rc2.tar.gz.

File metadata

  • Download URL: cacahuate-2.0.0rc2.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cacahuate-2.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 647c53dbaf455130f0c8c7d6a5938e4c08ad6769d132349af81a48b0343172c8
MD5 e39d9a1f37053712734a38eb1125301c
BLAKE2b-256 f8bbab75dc4bade91ff309877437ca12d22335c45f46efeb9b32adb032924646

See more details on using hashes here.

File details

Details for the file cacahuate-2.0.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for cacahuate-2.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f0f1a1a5070aba552bb582ff51eea117d4c22f0eb603a57b1dbb86a3e10e365
MD5 52cc358c32a5a0b6ca889e77f60b65ee
BLAKE2b-256 a03f846cf31c90276b2809a233a6aa2434eecb48d53426ee811713e23aed3712

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page