Provides a Python wrapper around the BrainFrame REST API.
Project description
BrainFrame Python API
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f6f8ca2103a7c07bba7782f0c11da7ce765537c8c16f3b32c70ff70038f6a8a
|
|
| MD5 |
6b75c9a144c3166234e3a0c6367a80a0
|
|
| BLAKE2b-256 |
6eef1e05d60aa05c69a605f1e0f9fb2935ab446e4d72130b9af83dff6c97d069
|
File details
Details for the file brainframe_api-0.30.4-py3-none-any.whl.
File metadata
- Download URL: brainframe_api-0.30.4-py3-none-any.whl
- Upload date:
- Size: 45.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e690bece5cc3b5a39699f3d719276c4147ff12947219208b80c5cf917949d2ff
|
|
| MD5 |
0ef7a637e1bba31c84127f7ba2b0bf05
|
|
| BLAKE2b-256 |
3d93a70ae6f8878483bfa8cb062746b79a77029096085f199ccf42a4d59f54ae
|