Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 33127977 authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

version 0.5.0 (python)

parent b8c02ccc
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,18 @@ def init(dev=False): ...@@ -21,6 +21,18 @@ def init(dev=False):
""" """
return network.init(dev) 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): def grs(data):
"""Load a grs stored in a file """Load a grs stored in a file
:param data: either a file name or a Grew string representation of a grs :param data: either a file name or a Grew string representation of a grs
......
...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh: ...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name='grew', name='grew',
version='0.4.0', version='0.5.0',
packages=['grew',], packages=['grew',],
license='LICENSE/Licence_CeCILL_V2-en.txt', license='LICENSE/Licence_CeCILL_V2-en.txt',
description="A binding to the Grew software", description="A binding to the Grew software",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment