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.1.0.tar.gz (85.3 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.1.0-py3-none-any.whl (136.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mindbridge_api_python_client-26.1.0.tar.gz
  • Upload date:
  • Size: 85.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","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.1.0.tar.gz
Algorithm Hash digest
SHA256 79a6e483a240f110cad87aade889144f3dcbc20b4b36ae048f63c038d6767642
MD5 4fdfe52f165cceaadcf97ea06b79c077
BLAKE2b-256 62ea9b682819b747eb0db2b897412c9190e588d3969cb1ea9ed791c630ac2001

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mindbridge_api_python_client-26.1.0-py3-none-any.whl
  • Upload date:
  • Size: 136.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.29 {"installer":{"name":"uv","version":"0.9.29","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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a4bc16dd2816559d5b6010b9825d7417c2efff34ce3316741d54fde6d80b1d
MD5 ebea32a3cbfcda57f8af5cf6a8afb634
BLAKE2b-256 6f65c9dda6f781d9070faed8d6b55f4dc58c2550ba3acb61101959a301d11e9f

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