An async python api for Blue Iris
Project description
Blue Iris Python Library
An async python library for the Blue Iris JSON API.
Usage
Creating a BlueIris object requires you provide an async web session for it.
import pyblueiris
from aiohttp import ClientSession
async with ClientSession(raise_for_status=True) as sess:
blue = BI.BlueIris(sess, USER, PASS, PROTOCOL, HOST)
Optionally you can provide a logging.Logger
for it to use, and you can enable debug messages with the debug=True
flag:
async with ClientSession(raise_for_status=True) as sess:
blue = BI.BlueIris(sess, USER, PASS, PROTOCOL, HOST, logger=_LOGGER, debug=True)
From there you can simply call a command you want it to execute. There is a command update_all_information()
which will call all data-gathering commands to fill out information about the server.
await blue.update_all_information()
All of the information the BlueIris object knows about the server is stored in the attributes property (dictionary).
print(blue.attributes)
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
pyblueiris-0.2.4.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for pyblueiris-0.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fa91e33f3bd8f94f9b6d69fa08ef92035ab6cebbd13d66a6f40707e25deb2a7 |
|
MD5 | b059b7c72fb72b92c3e7e4c54b9789f6 |
|
BLAKE2b-256 | 73c54ae72cb1b61cf058dda47ad8e1df5be043dc5954787858d1063134829519 |