From 331279776e08e9f9b99632467ac7eb895db6725f Mon Sep 17 00:00:00 2001 From: Bruno Guillaume <Bruno.Guillaume@loria.fr> Date: Mon, 3 Oct 2022 21:43:21 +0200 Subject: [PATCH] version 0.5.0 (python) --- grew/grew.py | 12 ++++++++++++ setup.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/grew/grew.py b/grew/grew.py index 3162349..4b74355 100644 --- a/grew/grew.py +++ b/grew/grew.py @@ -21,6 +21,18 @@ def init(dev=False): """ return network.init(dev) +def set_config(data): + """ + Change the configuration used in the next exchanges + See https://grew.fr/doc/graph/#edges for details about config + """ + try: + req = { "command": "set_config", "config": data } + reply = network.send_and_receive(req) + return reply + except utils.GrewError as e: + raise utils.GrewError({"function": "grew.set_config", "data":data, "message":e.value}) + def grs(data): """Load a grs stored in a file :param data: either a file name or a Grew string representation of a grs diff --git a/setup.py b/setup.py index 920c849..aa6b3cd 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as fh: setuptools.setup( name='grew', - version='0.4.0', + version='0.5.0', packages=['grew',], license='LICENSE/Licence_CeCILL_V2-en.txt', description="A binding to the Grew software", -- GitLab