Skip to main content

BRAVOClient

Python and MATLAB clients for the Brain Recording Analysis and Visualization Online (BRAVO) platform.

BRAVOClient provides a convenient interface for interacting with a BRAVO server from Python and MATLAB. It exposes a BRAVOPlatformRequest client for querying participant and study information, retrieving neural time-series and analysis data, uploading recordings, managing surveys, and accessing platform configuration defaults. The project also includes a MATLAB API client implementation for equivalent access to the same BRAVO platform services.

Overview

The BRAVO platform is designed for the storage, review, and analysis of brain-recording data, participant metadata, therapeutic histories, and signal-processing outputs. This SDK wraps the BRAVO REST API so that researchers and developers can programmatically access the platform without building raw HTTP requests by hand. It is available in both Python and MATLAB client implementations for cross-language research workflows.

The package includes:

  • user and participant profile queries
  • study creation and participant assignment
  • time-series and neural activity analysis access
  • therapeutic effect and chronic data queries
  • survey form management and response submission
  • data uploads for MAT and Medtronic JSON files
  • built-in default processing configuration presets

Installation

Python

Install from PyPI:

pip install BRAVOClient

Or install directly from this repository:

git clone https://github.com/JCagle95/BRAVOPlatformAPI
cd BRAVOPlatformAPI
pip install .

MATLAB

To use the MATLAB client, add the matlab directory to your MATLAB path:

addpath('path/to/BRAVOPlatformAPI/matlab');

Then instantiate the client:

requester = BRAVOPlatformRequest('YOUR_API_KEY', 'http://localhost:27286');
profile = requester.GetUserInfo();

Requirements

Python

  • Python 3.8+
  • requests
  • numpy
  • zstandard

MATLAB

  • MATLAB R2020b or later
  • Network access to the BRAVO server
  • Valid BRAVO API key

Quick Start

from BRAVOClient import BRAVOPlatformRequest, DefaultConfigurations

client = BRAVOPlatformRequest(
    api_key="YOUR_API_KEY",
    server="http://localhost:27286",
)

# Fetch the authenticated user profile
profile = client.GetUserInfo()
print(profile)

# Query participants
Participants = client.QueryParticipants()
Participant = [participant for participant in Participants if participant["Name"] == "Demo Patient"][0]

The constructor automatically validates the API key by requesting profile information from the BRAVO server.

Querying Time-Series Analysis

The client includes default processing configuration presets for common analysis workflows:

from BRAVOClient import BRAVOPlatformRequest, DefaultConfigurations

client = BRAVOPlatformRequest(api_key="YOUR_API_KEY")

Recordings = client.QueryTimeSeriesAnalysis(Participant["Id"])
Recording = [recording for recording in Recordings if recording["Id"] == "RECORDING_UID"][0]
Data = client.QueryTimeSeriesAnalysis(Participant["Id"], Recording["Id"])

This is useful for requesting processed recordings, metadata, and analysis outputs from the platform.

Common API Features

The client exposes methods for the most common BRAVO operations, including:

  • GetUserInfo()
  • QueryParticipants()
  • QueryParticipantInformation(participant_uid)
  • UpdateParticipantInformation(participant_uid, info)
  • ListAllStudies()
  • CreateNewStudy(study_name)
  • AddParticipantToStudy(study_id, participant_uid)
  • QueryTherapyHistory(participant_uid)
  • QueryTimeSeriesAnalysis(participant_uid, recording_uid=None, config=None, refresh=False)
  • QueryNeuralActivitySnapshot(participant_uid, config=None)
  • QuerySurveyForms(form_link=None, version=None)
  • CreateSurveyForm(institute, form_name)
  • SubmitSurveyResponse(form_uid, version, responder_code, result, date=None)
  • UploadMATFile(participant, file, metadata={})
  • UploadMedtronicJSON(participant, file, metadata={})

License

This project is distributed under the MIT License.

Project URL

Support

If you are using this client against a BRAVO deployment, make sure the server is reachable from your environment and that your API key is valid for the target instance.

Metadata

Release files for BRAVOClient 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BRAVOClient 0.1.4
File Size Uploaded
bravoclient-0.1.4.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for BRAVOClient 0.1.4
File Interpreter ABI Platform
bravoclient-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 32.5 kB

Release files / bravoclient-0.1.4.tar.gz

Download URL bravoclient-0.1.4.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ab0a55e567b3ea64b57b89e8315cb882d88540baf4e606d48c3efc54060f7e42
BLAKE2b-256 checksum
How to use checksums
438425e3bc9393fedb66cb47dfc2749fbe344cee1fd1ca74297ebd84477aa42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / bravoclient-0.1.4-py3-none-any.whl

Download URL bravoclient-0.1.4-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
077f80c840b0bf0dbedc9b24be72d43d03bf253f9aa92c70a11143bc54ade50a
BLAKE2b-256 checksum
How to use checksums
fe4eae6f4c0efaf854343c5e7123c09e4c937e861b3f11808ecf7d32da5c5ab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page