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.9.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for pyblueiris-0.2.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3539177d30f174732c1de7aada04cbe8817bcec713411767305689800c4bc8b7 |
|
MD5 | 214e7a8d3e9ab7c6fd2a12a19e9cda36 |
|
BLAKE2b-256 | d91d1fbc7f23818e6765060ef38b9b8d4277b72c9d0c1c13024901b4bd07fe0f |