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

Uploaded Source

Built Distribution

brainframe_api-0.26.2.dev2-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file brainframe-api-0.26.2.dev2.tar.gz.

File metadata

  • Download URL: brainframe-api-0.26.2.dev2.tar.gz
  • Upload date:
  • Size: 36.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.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11

File hashes

Hashes for brainframe-api-0.26.2.dev2.tar.gz
Algorithm Hash digest
SHA256 c5c08b23edbe6a440d2f8a09150ce543834ce2cd82180c56e52f9d79b672cc15
MD5 d570fe7949f4ac5ada51fd0ec60b3847
BLAKE2b-256 a4c01abda2d2f800acfa322b6ac0a1efa30cce4396375990ac12a7fc38515901

See more details on using hashes here.

File details

Details for the file brainframe_api-0.26.2.dev2-py3-none-any.whl.

File metadata

  • Download URL: brainframe_api-0.26.2.dev2-py3-none-any.whl
  • Upload date:
  • Size: 41.4 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.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11

File hashes

Hashes for brainframe_api-0.26.2.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 30423c035531a722fbd34f20f776be5a1d86a7d0d2718695071f30c657d13d2b
MD5 44813b795044a2626d643ba3daeabf9c
BLAKE2b-256 a78609c4515fd8c1da1f7d91fb25e52269087f67f01135d2f5f65e79f17806b6

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