Eubrewnet Wiki
Eubrewnet Documentation
Eubrewnet Documentation
This is an old revision of the document!
The Brewer JSON Python Module provides the functions to connect to the RBCC-E database and to download data of the different Brewer equipments.
We describe here the functions and data structured implemented in brewerjson.py module. The last version of the python module is available from rbcce subversion repository.
Brewer JSON library can be imported from python code adding the path to brewer.py module to the Python path (list of directories Python goes through to search for modules and files):
import sys sys.path.append("/home/to/module/")
Alternatively, you can download brewer.py file to the standard location for third-party Python modules. This location varies by platform and by how you built/installed Python itself. Typical locations are shown in the following table:
Platform | Standard installation location |
---|---|
Windows | C:\PythonXY\Lib\site-packages |
Unix | /usr/local/lib/pythonX.Y/site-packages |