Skip to main content

Provides a Python wrapper around the BrainFrame REST API.

Project description

BrainFrame Python API

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()

# Build brainframe-api wheel

poetry build

The output will be in dist/. Check the README format if it is updated,

pip install readme-renderer
python -m readme_renderer README.rst

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

Or local build,

pip3 install dist/{file name.whl}

Documentation

pip install sphinx sphinx-rtd-theme
cd docs
make html

Read the generated docs,

firefox _build/html/index.html

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brainframe_api-0.30.4-py3-none-any.whl (45.5 kB view details)

Uploaded Python 3

File details

Details for the file brainframe_api-0.30.4.tar.gz.

File metadata

  • Download URL: brainframe_api-0.30.4.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for brainframe_api-0.30.4.tar.gz
Algorithm Hash digest
SHA256 2f6f8ca2103a7c07bba7782f0c11da7ce765537c8c16f3b32c70ff70038f6a8a
MD5 6b75c9a144c3166234e3a0c6367a80a0
BLAKE2b-256 6eef1e05d60aa05c69a605f1e0f9fb2935ab446e4d72130b9af83dff6c97d069

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for brainframe_api-0.30.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e690bece5cc3b5a39699f3d719276c4147ff12947219208b80c5cf917949d2ff
MD5 0ef7a637e1bba31c84127f7ba2b0bf05
BLAKE2b-256 3d93a70ae6f8878483bfa8cb062746b79a77029096085f199ccf42a4d59f54ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page