A library for managing networks. Full documentation can be found here.
pip install hydra-base
The first thing you ened to do when working with Hydra, if you are using a local database is to add some default data to the database. These include:
You can do this using the hydra client.
> pip install hydra-client-python
> hydra-cli intitalise-db
Hydra base can be used in conjunction with a hydra server.
Hydra server relies on web clients sending it requests. Usefully, there is a hydra client libary here with some example on how to use the system.
As Hydra is developed, its database structure is sometimes altered typically to add or modify database columns. If you need to update your DB to the latest version, these steps descibe how to do this.
$ pip install alembic
$ cd /path/to/hydra-base/hydra_base/db/
sqlalchemy.url = mysql+mysqldb://root:root@localhost/hydradb
$ alembic upgrade head
37569 2022-08-08 14:19:58,201 - INFO - Registering data type "SCALAR".
37569 2022-08-08 14:19:58,201 - INFO - Registering data type "ARRAY".
37569 2022-08-08 14:19:58,202 - INFO - Registering data type "DESCRIPTOR".
37569 2022-08-08 14:19:58,202 - INFO - Registering data type "DATAFRAME".
37569 2022-08-08 14:19:58,202 - INFO - Registering data type "TIMESERIES".
37569 2022-08-08 14:19:58,206 - WARNING - Unable to find pylibmc. Defaulting to diskcache.
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Applying 04e4ae80b7b9_project_inheritance.py
alembic upgrade heads
(notice the 'heads' instead if 'head')