Skip to main content

Brayns python API

Project description

Brayns

The brayns package provides a python API to the brayns application.

Documentation

Brayns documentation is built and hosted on readthedocs.

Installation

It is recommended that you use pip to install Brayns into a virtualenv. The following assumes a virtualenv named venv has been set up and activated. We will see three ways to install Brayns

1. From the Python Package Index

(venv)$ pip install brayns

2. From git repository

(venv)$ pip install git+https://github.com/BlueBrain/Brayns.git#subdirectory=python

3. From source

Clone the repository and install it:

(venv)$ git clone https://github.com/BlueBrain/Brayns.git
(venv)$ pip install -e ./Brayns/python

This installs Brayns into your virtualenv in "editable" mode. That means changes made to the source code are seen by the installation. To install in read-only mode, omit the -e.

Connect to running Brayns instance

>>> from brayns import Client

>>> brayns = Client('localhost:8200')
>>> print(brayns)
Brayns version 0.7.0.c52dd4b running on http://localhost:8200/

Examples

Please find some examples how to interact with Brayns from python on Read the Docs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brayns-0.7.0.dev0.tar.gz (12.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page