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. For example, if you are using BrainFrame version 0.26.1:

pip3 install brainframe-api==0.26.1

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.27.0.dev1.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

brainframe_api-0.27.0.dev1-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file brainframe-api-0.27.0.dev1.tar.gz.

File metadata

  • Download URL: brainframe-api-0.27.0.dev1.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.6.11 Linux/4.15.0-1077-aws

File hashes

Hashes for brainframe-api-0.27.0.dev1.tar.gz
Algorithm Hash digest
SHA256 023341c565d05ca32679c3d53119717665a3d823775aa219a52173923d7c73a6
MD5 784ebf0346bd43243a9f608f6575e533
BLAKE2b-256 a4c6248e1a96a7745f799c0fe8b706b772484c2051f1a7ae7564f380abe69e3b

See more details on using hashes here.

File details

Details for the file brainframe_api-0.27.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for brainframe_api-0.27.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 534013fcc3069405a3d573af7346f52ce03356731cdc1e029abfa6e70b5a7102
MD5 982034d9e61c90ec20404af6a84df4df
BLAKE2b-256 cfd651e3a49be090d38e03a94b8b167aa372ba904e26c0fd859dff93b3a46e3f

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