Python client for Eagle Eye Networks APIv3
Project description
EagleEyev3
Summary
This is a python package for working with the Eagle Eye Networks APIv3. It takes some liberties with the API to make it more pythonic. There is plenty of sugar sprinkled in to make it a little easier to use.
Getting Started
Start by import the package and the config from settings (see the Settings File section below)
from EagleEyev3 import *
from settings import config
Make a new instance
een = EagleEyev3(config)
If you are going to use the Oauth2 login flow, construct the login url
base_url = "https://auth.eagleeyenetworks.com/oauth2/authorize"
path_url = f"?client_id={een.client_id}&response_type=code&scope=vms.all&redirect_uri={een.redirect_uri}"
login_url = f"{base_url}{path_url}" }
Handle the callback from Oauth2 including the code, proceed to get access and refresh tokens
oauth_object = een.login_tokens(code)
You'll probably want to get a list of cameras
een.get_list_of_cameras()
There are helpers to get online cameras
[i for i in een.cameras if i.is_online()]
and offline
[i for i in een.cameras if i.is_offline()]
You can get a live preview image
camera.get_live_preview()
You can get a list of all feeds
een.get_list_of_feeds()
Settings File
There is file settings.py that is needed to run. It should look similar to this:
config = {
# Set up your application and get client id/secrete first
# https://developerv3.eagleeyenetworks.com/page/my-application
"client_id": "",
"client_secret": "",
# you will need to add approved redirect_uris in your application
# this examples assumes you've added http://127.0.0.1:3333/login_callback
# change the following variables if you did something different
# Note: do not use localhost for server_host, use 127.0.0.1 instead
"server_protocol": "http",
"server_host": "127.0.0.1",
"server_port": "3333",
"server_path": "login_callback",
}
You can create your application and setup credentials at: [https://developerv3.eagleeyenetworks.com/page/my-application-html](my applications). You can also reach out to api_support@een.com for help.
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 eagleeyev3-0.0.15.tar.gz.
File metadata
- Download URL: eagleeyev3-0.0.15.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.29.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
144d60d3541b6215d10b312cb8e6ae47095ba53ae120d34ca781a8a89faf3c3c
|
|
| MD5 |
c9150a369fd4efd59ead3e791159139c
|
|
| BLAKE2b-256 |
1f49268343ba758c3e153916beccfdbce795ae72d3db672055c54804baff31b9
|
File details
Details for the file eagleeyev3-0.0.15-py2.py3-none-any.whl.
File metadata
- Download URL: eagleeyev3-0.0.15-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.29.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72676c5a20adf9c2f4e12e7086ff312f890f9ad37c59e7992667ae9eb1f436a5
|
|
| MD5 |
243380e9d638b10f68a34cf07f6a79a7
|
|
| BLAKE2b-256 |
041c0eb078108337f58ed77d7493b6f4ea4721d47a6eff1fa31b043d152a7040
|