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.

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

Uploaded Source

Built Distribution

brainframe_api-0.26.0.dev12-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file brainframe-api-0.26.0.dev12.tar.gz.

File metadata

  • Download URL: brainframe-api-0.26.0.dev12.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10

File hashes

Hashes for brainframe-api-0.26.0.dev12.tar.gz
Algorithm Hash digest
SHA256 700a20dcf77d8d2f27eeb49d3c0a153b28adc62ed98dea2d9bb6db26f4ec0a5b
MD5 6a7a663a20d151bbaac3711664f0e84c
BLAKE2b-256 cb01b89911077ce038bf618fa523a0aaa190d7f3740e1f3110f3fe2116b8a6b4

See more details on using hashes here.

File details

Details for the file brainframe_api-0.26.0.dev12-py3-none-any.whl.

File metadata

  • Download URL: brainframe_api-0.26.0.dev12-py3-none-any.whl
  • Upload date:
  • Size: 40.6 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/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10

File hashes

Hashes for brainframe_api-0.26.0.dev12-py3-none-any.whl
Algorithm Hash digest
SHA256 ae4aafce169339f7851ec66afd0b130a592233d534b38ff515956ba0d6a2a491
MD5 ccbaf8735bfa1d08250efe325a5f9961
BLAKE2b-256 14b88913cb6af3a4902a45ca45f3c12a67cb4722b244be6f62e0a086b0656ebd

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