Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

AutomatedProcessImprovement/simod-http

Repository files navigation

Simod HTTP

build deploy version

Simod HTTP is a collection of services to run Simod in a distributed environment ready for deployment using Docker. It extends Simod with an HTTP API and task management using Celery (RabbitMQ and Redis).

Getting Started

The managed instance of Simod HTTP is most likely running (no uptime guarantees 🫣) at http://simod.cloud.ut.ee/api/v1/.

Check the API documentation at http://simod.cloud.ut.ee/api/v1/docs or http://simod.cloud.ut.ee/api/v1/redoc for more information.

To start using it, submit a discovery job with an event log file:

curl -X POST "http://simod.cloud.ut.ee/api/v1/discoveries/" -H "content-type: multipart/form-data" -F event_log=@<event_log_file>

This will run the default discovery configuration. To provide your own configuration, add a configuration file to the request too:

curl -X POST "http://simod.cloud.ut.ee/api/v1/discoveries/" -H "content-type: multipart/form-data" -F event_log=@<event_log_file> -F configuration=@<configuration_file>

For Developers

Getting Started Locally

docker compose up --build

After the services are up and running, you can access the following services:

To fetch discoveries, run:

curl -X GET "http://localhost:8000/api/v1/discoveries"

To create a discovery, submit at least an event log file:

curl -X POST "http://localhost:8000/api/v1/discoveries/" -H "content-type: multipart/form-data" -F event_log=@./tests/assets/AcademicCredentials_train.csv 

To provide your own configuration, add a configuration file to the request too:

curl -X POST "http://localhost:8000/api/v1/discoveries/" -H "content-type: multipart/form-data" -F event_log=@./tests/assets/AcademicCredentials_train.csv -F configuration=@./tests/assets/sample.yaml

To install the project locally, run:

# with poetry
pip install poetry
poetry install

# or without poetry
pip install -r requirements.txt
pip install .

Deployment

See Configuration management with Ansible.

Single-button deployment can be triggered from the GitHub Actions workflow. Celery Flower dashboard is accessible at https://simod.cloud.ut.ee/flower.

About

Simod HTTP API for handling Simod job requests

Resources

Stars

Watchers

Forks

Packages

No packages published