An async python api for Blue Iris
Project description
README
Blue Iris Python Library
An async python library for the Blue Iris JSON API.
Overview
For more in-depth documentation, visit the documentation.
Creating a BlueIris object requires you provide an async web session for it.
import pyblueiris
from aiohttp import ClientSession
PROTOCOL = 'http'
HOST = 192.168.1.5
USER = 'pyserv'
PASS = 'secret-password'
def main():
async with ClientSession(raise_for_status=True) as sess:
blue = pyblueiris.BlueIris(sess, USER, PASS, PROTOCOL, HOST)
if __name__ == '__main__':
main()
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.
def main():
async with ClientSession(raise_for_status=True) as sess:
blue = pyblueiris.BlueIris(sess, USER, PASS, PROTOCOL, HOST)
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.10.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for pyblueiris-0.2.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51cc765f92c0f1486e0e2abea7ca1b12b23650669a480b87dc79c4b29335cf39 |
|
MD5 | 89cadf223eaf67f3301e1062268c3ad9 |
|
BLAKE2b-256 | cefc2e149f497d0ab684617ec90c99face895efb3677013dce0faaeac54ea955 |