Skip to main content

Provides a Python wrapper around the BrainFrame REST API.

Project description

Documentation Status Publish Packages CI Status

This library is a Python wrapper around the BrainFrame REST API. It allows for easy interaction with a BrainFrame server.

from brainframe.api import BrainFrameAPI, bf_codecs

# Connect to the server
api = BrainFrameAPI("http://localhost")
# Create a new IP camera stream
stream_config = api.set_stream_configuration(
    bf_codecs.StreamConfiguration(
        name="New Stream",
        connection_type=bf_codecs.ConnType.IP_CAMERA,
        connection_options={"url": "rtsp://192.168.1.100"},
        runtime_options={},
    ))
api.start_analyzing(stream_config.id)
# Get results
analysis_results = api.get_latest_zone_statuses()

Installation

The BrainFrame Python API is available on PyPI and can be installed with pip. Install the version of the library that matches the version of BrainFrame that you are using.

pip3 install brainframe-api==0.26.0

Documentation

Documentation for this library is available on ReadTheDocs.

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

brainframe-api-0.26.0.dev18.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

brainframe_api-0.26.0.dev18-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file brainframe-api-0.26.0.dev18.tar.gz.

File metadata

  • Download URL: brainframe-api-0.26.0.dev18.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10

File hashes

Hashes for brainframe-api-0.26.0.dev18.tar.gz
Algorithm Hash digest
SHA256 0615936ad97bba523e37c7e5f081325374f847d0769daca82ad92e540cbd2959
MD5 987736e0c2b8f11e352274e0c3e27a15
BLAKE2b-256 ba8f037c3c64e111ba551dab991f9904f980da36e60c562688f5f248333de8b7

See more details on using hashes here.

File details

Details for the file brainframe_api-0.26.0.dev18-py3-none-any.whl.

File metadata

  • Download URL: brainframe_api-0.26.0.dev18-py3-none-any.whl
  • Upload date:
  • Size: 41.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10

File hashes

Hashes for brainframe_api-0.26.0.dev18-py3-none-any.whl
Algorithm Hash digest
SHA256 ba2fea80c14b96ebae5db76c4e9f1f47ea5975c0919420aafc119954ae6ca31b
MD5 d67dcd160b6428d5900e4ca066e19fcb
BLAKE2b-256 c7d4be558f9e734a1e0ac8739084d0820343f9d619c161e646730ff1582e1ac2

See more details on using hashes here.

Supported by

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