Skip to content

HumanBrainProject/hbp-service-client

Repository files navigation

HBP service client

Build Status

This library is intended to help Collaboratory Application developers communicate with the core services of the platform in their Python backends or Jupyter notebooks.

Documentation

For the compiled html documentation visit https://developer.humanbrainproject.eu/docs/hbp-service-client/latest/

Installation

Install the module

pip install hbp_service_client

Development

Install the module in editable mode

Install the requirements first

pip install -r requirements.txt \
  -r test/requirements_tests.txt \
  -r doc/requirements_documentation.txt

In the project root directory execute

pip install -e .

Tests

To run the tests execute the following command from the project root directory.

pytest

Generating documentation

To compile the HTML documentation execute the following command after having the module installed in editable mode.

sphinx-build -d doc/build/doctree doc/source doc/build/html

Some RST files in the doc/source directory are not re-generated if they exist already. This might mean that newly added methods won't get their documentation added to the class's member list. You may have to edit the RST file by hand, or delete it to have sphinx re-generate it. In the latter case, you might want to rearrange the order of the class members.

Acknowledgement

This open source software code was developed in part or in whole in the Human Brain Project, funded from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under Specific Grant Agreements No. 720270 and No. 785907 (Human Brain Project SGA1 and SGA2).