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

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.6
File Size Uploaded Provenance Actions
bravoclient-0.1.6.tar.gz 17.9 kB With provenance Details for bravoclient-0.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 34.3 kB

Release files / bravoclient-0.1.6.tar.gz

Download URL bravoclient-0.1.6.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2d5f8835fc9885b53d5322b327339466918c02232c9ea8a8cfe90619e5fe5c8a
BLAKE2b-256 checksum
How to use checksums
5cda11a5cfcbfcec0a34e5ff2de97f495c6960d689fcf22c224e93416d854888
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 Nov 23, 2026.

Transparency log

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

Download URL bravoclient-0.1.6-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b0aba040f6ee5c0d38eec01f58cb2c6cadf27f02fca06b402d50cf28a647c1a
BLAKE2b-256 checksum
How to use checksums
d6a63b7b9ce3c57df83383af12d718489252e42e09632c0705a55664db691c46
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 Nov 23, 2026.

Transparency log

Security for BRAVOClient 0.1.6

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.6.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 Nov 23, 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