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

Uploaded Source

Built Distribution

brainframe_api-0.29.1-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brainframe-api-0.29.1.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.6.15 Linux/4.15.0-1106-aws

File hashes

Hashes for brainframe-api-0.29.1.tar.gz
Algorithm Hash digest
SHA256 04ea6110e3ae14a0eebfe1979b5d8d44328517f36d75f7dd5905b942c62c69e5
MD5 e01032b9951bdef8cb4496e58be32376
BLAKE2b-256 6c32013520c69cb94f7db5c9d91a1f89244d9596937a9b6079ddbd948974aa50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brainframe_api-0.29.1-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.10 CPython/3.6.15 Linux/4.15.0-1106-aws

File hashes

Hashes for brainframe_api-0.29.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41cceddb6df18f99ee68b039617003cd3070909d6ce57f67e4e4b283cf7ab140
MD5 25096736daa6d54f9460c3c64984604f
BLAKE2b-256 fad597ecb771715df3308d0e9cc99ee8ce595bfd70b52bfeba70e8209ef5bfde

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