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.0:

pip3 install brainframe-api==0.26.0

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

Uploaded Source

Built Distribution

brainframe_api-0.26.1.dev1-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brainframe-api-0.26.1.dev1.tar.gz
  • Upload date:
  • Size: 32.5 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.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11

File hashes

Hashes for brainframe-api-0.26.1.dev1.tar.gz
Algorithm Hash digest
SHA256 cc541cb3712d31e4984fc80f7eda466e88b1127b179838a250f939e949f3fce7
MD5 c92caea0df0149a81b6f49903bc97c98
BLAKE2b-256 1e4032a80f8c91b192c43e3251d7a00ff1b33b6a54c971230a5e7d60670655b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brainframe_api-0.26.1.dev1-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.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.11

File hashes

Hashes for brainframe_api-0.26.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 becedbd3eaf454269c50a9d4c31c3862553bd98195f3619010d2ac440dda635c
MD5 33d8d5800d78ece5b117d43c6f5f9d80
BLAKE2b-256 91c63ab5763b2aaa6af7f2a3d7f6880a9b10d53f46b8db32a2654a7a5fea1718

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