Backend for ewoksweb
Project description
ewoksserver
ewoksserver is a REST server to manage and execute ewoks workflows.
It serves as a backend for ewoksweb and emits ewoks execution events over websocket.
Development
Install from source
python -m pip install -e .[dev]
Run tests
pytest
Launch the backend
ewoks-server
Configuration
The configuration keys are uppercase variables in a python script:
# /tmp/config.py
RESOURCE_DIRECTORY = "/path/to/resource/directory/"
EWOKS = {"handlers": ...}
CELERY = {"broker_url":...}
Specify the configuration file through the CLI
ewoks-server --config /tmp/config.py
or using the environment variable EWOKSSERVER_SETTINGS
export EWOKSSERVER_SETTINGS=/tmp/config.py
ewoks-server
Example
import os
_SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
RESOURCE_DIRECTORY = os.path.join(_SCRIPT_DIR, "resources")
EWOKS = {
"handlers": [
{
"class": "ewokscore.events.handlers.Sqlite3EwoksEventHandler",
"arguments": [
{
"name": "uri",
"value": "file:" + os.path.join(_SCRIPT_DIR, "ewoks_events.db"),
}
],
}
]
}
Documentation
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
ewoksserver-0.0.1a1.tar.gz
(26.0 kB
view details)
File details
Details for the file ewoksserver-0.0.1a1.tar.gz
.
File metadata
- Download URL: ewoksserver-0.0.1a1.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b17268d8214b5f8c526e512a16efde0c9ec05252367a37003d27dd42f3be405 |
|
MD5 | 5a3b031a7b946bde2c035f09d88455be |
|
BLAKE2b-256 | 261e379694ba37804d2996ba7b09fa0a5864b41f9976d427f21af463e44a9728 |