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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for brainframe-api-0.27.0.tar.gz
Algorithm Hash digest
SHA256 7aa7c72647a85a8d98d6f0d6600719a3a402a73d2eca5e72eed0fe50cdd3d253
MD5 30f4e30681c5897574f52712fbad18ff
BLAKE2b-256 42d0ba1b6f5d1048adfee2414df6f7fe44886d940b03dd70c12166eb8866a147

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for brainframe_api-0.27.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc4ff8b8f7c64fb5a6aceb28541c4c18083646077c6f6ea34088265b9b6cf61
MD5 158b014531cc9fe3bf2a06df91338d38
BLAKE2b-256 eb394c1f1b11caac34258a3bd090832df59e45959cda5c59f80ca36d7351e8ce

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