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

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

Uploaded Source

Built Distribution

brainframe_api-0.28.1-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file brainframe-api-0.28.1.tar.gz.

File metadata

  • Download URL: brainframe-api-0.28.1.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.6.13 Linux/4.15.0-1092-aws

File hashes

Hashes for brainframe-api-0.28.1.tar.gz
Algorithm Hash digest
SHA256 8fd090197a8058114dbcf714afa15c0451d08a43ccf33057ff40c7830e374bed
MD5 ca8aed9dddf7a7559d30f8af0a154f4f
BLAKE2b-256 35265b19e958e55a595d2c0e6989fc0ec4e666572ab55bcec3eed00d8dd637cf

See more details on using hashes here.

File details

Details for the file brainframe_api-0.28.1-py3-none-any.whl.

File metadata

  • Download URL: brainframe_api-0.28.1-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.6.13 Linux/4.15.0-1092-aws

File hashes

Hashes for brainframe_api-0.28.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5f92f44561362edc21a0af3064c4e8b16239db9352acd36da2acb8fe663becf
MD5 59f662253e81690cbfc1473f152bd4e2
BLAKE2b-256 1f2b9318143f18510b62cf8bad4349cd249f237e76c313dbf76556b51f861268

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