Commit 1cbc23ef authored by Wout De Nolf's avatar Wout De Nolf
Browse files

first try

parent 97d3536a
# dahu-demo
Demo of job triggering with [Dahu](https://github.com/kif/dahu)
Installation
```bash
conda install -c tango-controls pytango
python -m pip install . # dahu
```
Start tango server without database
```bash
DAHU_PLUGIN=./dahu_demo/plugin python ../dahu/scripts/dahu_server dahu -ORBendPoint giop:tcp::10000 -nodb -dlist id00/dahu/1 -v4
```
```python
from tango import DeviceProxy
p = DeviceProxy("tango://localhost:10000/id00/dahu/1#dbase=no")
```
from dahu.plugin import Plugin
from dahu.factory import register
from ewoks import execute_graph
@register
class ExecuteGraph(Plugin):
def process(self):
execute_graph(**self.input)
# self.output["result"] = ...
[metadata]
name = dahu_demo
version = attr: dahu_demo.__version__
author = ESRF
author_email = wout.de_nolf@esrf.fr
description = Demo of job triggering with Dahu
license = MIT
[options]
packages = find:
python_requires = >=3.6
install_requires =
dahu
[options.extras_require]
test =
pytest
ewoks[test]
dahu[pytest]
dev =
%(test)s
black
flake8
# E501 (line too long) ignored for now
# E203 and W503 incompatible with black formatting (https://black.readthedocs.io/en/stable/compatible_configs.html#flake8)
[flake8]
ignore = E501, E203, W503
max-line-length = 88
exclude =
.eggs
import setuptools
if __name__ == "__main__":
setuptools.setup()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment