1. Server-side Python API¶
The py_cerebro package is used to access server components utilizing Python language. There are two versions of this package: for Python 2.x and Python 3.x. They are supplied with service-tools (https://cerebrohq.com/distribs/service-tools.zip) distribution.
The py_cerebro2 package (for Python 2.x version) uses third-party package psycopg2 (http://initd.org/psycopg/) in order to access the PosgreSQL database. You might need to install this package.
The py_cerebro package (for Python 3.x version) uses third-party package psycopg2 (http://initd.org/psycopg/) in order to access the PosgreSQL database. You might need to install this package.
The py-site-packages folder contains a pre-built psycopg2 for all OS types.
py_cerebro package contains modules that provide program interface for file storage (Cargador) and database.
The package includes the following modules:
py_cerebro.database
– access to the database to execute SQL-queries.py_cerebro.dbtypes
– describes the data tuples of the bit flags used when working with the database.py_cerebro.cargador
– Access to the Cargador file storage.py_cerebro.cclib
– Contains auxiliary functions for handling hashes and bit flags.