diff --git a/grew/grew.py b/grew/grew.py index 3162349ff8b824f2c8d16fdf029bc78fd2234fbd..4b74355d55c221fca49ff00e0b120b6f4f201c68 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 920c849c600886121fb5ec7bfb4b3cc97b4e9671..aa6b3cd807b400a5c3fbec39dbb8bd050ef8f64c 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",