Welcome to PlantDBLink
OverviewLink
PlantDB is a library for the ROMI (Robotics for Microfarms) plant database ecosystem. It is designed for plant and agricultural research facilities and robotics labs that require lightweight plant data management infrastructure.
It consists of three components:
plantdb.commons
: provides a Python API for interacting with plant dataplantdb.server
: provides the server-side REST API to interact with plant dataplantdb.client
: provides the client-side REST API to interact with plant data
For comprehensive documentation of the PlantImager project, visit: https://docs.romi-project.eu/plant_imager/
plantdb.commons
Link
Core shared library for the ROMI plant database ecosystem.
This package provides common utilities and base functionality used by both server and client components.
Features include: - Data management - Common data models and schemas - File system operations and validation - Logging and debugging tools - Data format specifications and validators
plantdb.server
Link
Server-side component of the ROMI plant database system.
Provides a robust REST API server implementation for managing plant phenotyping data.
Features include: - File system database management - Data synchronization services - Command-line tools for database management
plantdb.client
Link
Client-side database library for the ROMI plant database ecosystem.
This package provides a Python interface for interacting with ROMI's plant database system, enabling efficient storage, retrieval, and management of plant-related data.
Features include: - REST API integration - Data validation - Streamlined access to plant phenotyping data.
Environment SetupLink
We strongly recommend using isolated environments to install ROMI libraries.
This documentation uses conda
as both an environment and package manager.
If you don't haveminiconda3
installed, please refer to the official documentation.
The plantdb
packages are available through:
pip
: from PyPIconda
: from theromi-eu
channel on anaconda.org
To create a new conda environment for PlantDB:
conda create -n plantdb 'python=3.10' ipython
InstallationLink
For UsersLink
Activate your environment and install the packages using either pip
or conda
:
Using pip:Link
conda activate plantdb # activate your environment first!
pip install plantdb.commons plantdb.server plantdb.client
Using conda:Link
conda activate plantdb # activate your environment first!
conda install -c romi-eu plantdb plantdb.server plantdb.client
Getting startedLink
Set up a local databaseLink
- You need to create a directory where to put the data, e.g.
/data/ROMI_DB
and add a file calledromidb
:mkdir -p /data/ROMI_DB touch /data/ROMI_DB/romidb
- Then define its location in an environment variable
ROMI_DB
:export ROMI_DB=/data/ROMI_DB
Info:
To make this setting permanent, add the export command to your
~/.bashrc
or~/.profile
file.