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.5

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.5
File Size Uploaded Provenance Actions
bravoclient-0.1.5.tar.gz 17.5 kB With provenance Details for bravoclient-0.1.5.tar.gz

Built distribution (wheel)

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

Total release size: 33.9 kB

Release files / bravoclient-0.1.5.tar.gz

Download URL bravoclient-0.1.5.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b4cc1339a4e02e8a361b49a9ec754b42199e1539e712998924f7a3b3f46903b8
BLAKE2b-256 checksum
How to use checksums
a3a17eb59b4a0d3a0497667d55340e00737aa29df45260677a1ff0d204ffbabc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 27, 2026.

Transparency log

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

Download URL bravoclient-0.1.5-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b558b585f855c63035bba4c2240f944f3375dd6f62223ed68c232968a70c072
BLAKE2b-256 checksum
How to use checksums
3145af60d09b1c92b3c702481106f08208d53bc4977d48b14da8571f7bd16973
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 27, 2026.

Transparency log

Security for BRAVOClient 0.1.5

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bravoclient-0.1.5.tar.gz

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 Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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