Skip to main content

Interact with the MindBridge API

Project description

MindBridge API Python Client

Logo of MindBridge

Interact with the MindBridge API using this Python SDK. Please see The MindBridge API for more information about the MindBridge API. You can also Access MindBridge Customer Support or Contact us.

Installation

MindBridge API Python Client can be installed with pip:

pip install mindbridge-api-python-client

It is recommended to install and run MindBridge API Python Client from a virtual environment, for example, using the Python standard library's venv or using uv.

Usage

Before you begin, create an API token within your tenant by following Create an API token. There are several methods to securely store your API token and use it with your Python process, for this short example it's assumed that the following have been set as environment variables:

  • MINDBRIDGE_API_URL: Your MindBridge tenant URL, like subdomain.mindbridge.ai
  • MINDBRIDGE_API_TOKEN: Your API token

This script connects to your MindBridge tenant and calls the /v1/users/current endpoint to retrieve information about the authenticated user:

import os
import mindbridgeapi as mbapi

url = os.environ.get("MINDBRIDGE_URL", "")
token = os.environ.get("MINDBRIDGE_API_TOKEN", "")

server = mbapi.Server(url=url, token=token)

user = server.users.get_current()
print(f"Name: {user.first_name} {user.last_name}")
print(f"Role: {user.role}")
print(f"ID:   {user.id}")

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

mindbridge_api_python_client-26.5.0.tar.gz (128.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mindbridge_api_python_client-26.5.0-py3-none-any.whl (205.2 kB view details)

Uploaded Python 3

File details

Details for the file mindbridge_api_python_client-26.5.0.tar.gz.

File metadata

  • Download URL: mindbridge_api_python_client-26.5.0.tar.gz
  • Upload date:
  • Size: 128.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mindbridge_api_python_client-26.5.0.tar.gz
Algorithm Hash digest
SHA256 37f632a14935e7e53cb2ecb9e4b8040734a98855fbe8b483f6bed4ade0a11d44
MD5 1bc1fbcc8cf0622f02b3065bf1452242
BLAKE2b-256 c26b297694a20a0ab113a691e0ca51cf324c1823f7cefd93cb690ff4fe601849

See more details on using hashes here.

File details

Details for the file mindbridge_api_python_client-26.5.0-py3-none-any.whl.

File metadata

  • Download URL: mindbridge_api_python_client-26.5.0-py3-none-any.whl
  • Upload date:
  • Size: 205.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mindbridge_api_python_client-26.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fabcbc54344fbbdbfe98325299fbea3efcc975b25cbe47573d7855c76b4fa0d
MD5 9d5b958ecc7b368b78bc3adf573f2949
BLAKE2b-256 15e44647fbd7f1d386185bfbe72058f3f6ff5522f01f98855a9e28e1965f9593

See more details on using hashes here.

Supported by

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