Provides a Python wrapper around the BrainFrame REST API.
Project description
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
Release history Release notifications | RSS feed
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.tar.gz
(32.5 kB
view details)
Built Distribution
File details
Details for the file brainframe-api-0.26.1.tar.gz
.
File metadata
- Download URL: brainframe-api-0.26.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | db33b82459867e419bad09c8fc75b584519937685b40bb483c5db38f7f4f7c23 |
|
MD5 | 6b2e87052bb9f9366f3966bfdaeedc15 |
|
BLAKE2b-256 | b3b82cf96c9d243b2105ad632c064833f11f122bfb4770e27eb451de8307cc8d |
File details
Details for the file brainframe_api-0.26.1-py3-none-any.whl
.
File metadata
- Download URL: brainframe_api-0.26.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b773934bb483c0fd3f51ad4199edb3dc17c9b95d94cc8a8cbdedd88bc8c4cdf0 |
|
MD5 | 0ed4cde618841b84e3518ad92cbe395b |
|
BLAKE2b-256 | 8b68a218871111baf9303170e19ce6802d5eedc7aed2bf0c51116613effa8d0b |