verkada_py package
Submodules
verkada_py.camera module
Camera class. Organization will have a lot of these class
- class verkada_py.camera.Camera(info: dict, api_key: Optional[str] = None, org_id: Optional[str] = None)[source]
Bases:
SharedAttributesCamera class represents a camera in a Verkada Organization.
- IP
- Returns
strIP of the camera. Likely a private IP
- MAC
- Returns
strMAC address of the camera
- cloud_retention
- Returns
intAmount of days of cloud retention
- date_added
- Returns
intEpoch time when the camera was added to Command
- device_retention
- Returns
intAmount of days of storage on the camera
- firmware
- Returns
boolIf the firmware is up to date
- get_footage_link(timestamp: int) str[source]
Get a link to footage for an epoch timestamp :param timestamp:
intEpoch timestamp to get footage for :return:strURL to the footage
- get_object_count(start_time: Optional[int] = None, end_time: Optional[int] = None) Dict[str, int][source]
Gets the number of detected people and vehicles for a camera :param start_time:
intThe epoch time to start getting the count for :param end_time:intThe end epoch time to get the count for :return:dictthat contains “people” and “vehicles” with an int for each one.
- get_thumbnail_link(timestamp: int) str[source]
Get the thumbnail for an epoch time :param timestamp:
intEpoch time to get a thumbnail for :return:strURL to the thumbnail
- id
- Returns
strcamera ID
- last_online
- Returns
intEpoch time of when the camera was last online
- location
- Returns
strStreet address of the camera
- model
- Returns
strModel of the camera
- name
- Returns
strName of the camera
- serial
- Returns
Serial number of the camera
- site
- Returns
strSite that the camera is in
- status
- Returns
strStatus of the camera
verkada_py.organization module
Organization Class
- class verkada_py.organization.Organization(get_cameras: bool = True, org_id: Optional[str] = None, api_key: Optional[str] = None)[source]
Bases:
SharedAttributesOrganization represents a Verkada organization. It has a api-key and organization ID which is needed to make requests
- create_poi(image: str, label: Optional[str] = None) str[source]
Create a person of interest for the organization :param image:
strPath to a photo of the person :param label:strLabel for the person :return:strPerson ID who was created
- delete_poi(person_id: str) str[source]
Delete a person of interest :param person_id:
strPerson ID to delete :return:strPerson ID that was deleted
- get_notifications(start_time: Optional[int] = None, end_time: Optional[int] = None, include_image: bool = False, notification_types: str = 'person_of_interest,tamper,crowd,motion,camera_offline,camera_online') List[Notification][source]
Get all the notifications for an organization :param start_time:
intStart epoch time :param end_time:int` End epoch time :param include_image: ``boolInclude the image for notifications :param notification_types:strNotification types to query for :return:listNotifications where each notification is a dict
Module contents
__INIT__ File
- class verkada_py.Camera(info: dict, api_key: Optional[str] = None, org_id: Optional[str] = None)[source]
Bases:
SharedAttributesCamera class represents a camera in a Verkada Organization.
- IP
- Returns
strIP of the camera. Likely a private IP
- MAC
- Returns
strMAC address of the camera
- cloud_retention
- Returns
intAmount of days of cloud retention
- date_added
- Returns
intEpoch time when the camera was added to Command
- device_retention
- Returns
intAmount of days of storage on the camera
- firmware
- Returns
boolIf the firmware is up to date
- get_footage_link(timestamp: int) str[source]
Get a link to footage for an epoch timestamp :param timestamp:
intEpoch timestamp to get footage for :return:strURL to the footage
- get_object_count(start_time: Optional[int] = None, end_time: Optional[int] = None) Dict[str, int][source]
Gets the number of detected people and vehicles for a camera :param start_time:
intThe epoch time to start getting the count for :param end_time:intThe end epoch time to get the count for :return:dictthat contains “people” and “vehicles” with an int for each one.
- get_thumbnail_link(timestamp: int) str[source]
Get the thumbnail for an epoch time :param timestamp:
intEpoch time to get a thumbnail for :return:strURL to the thumbnail
- id
- Returns
strcamera ID
- last_online
- Returns
intEpoch time of when the camera was last online
- location
- Returns
strStreet address of the camera
- model
- Returns
strModel of the camera
- name
- Returns
strName of the camera
- serial
- Returns
Serial number of the camera
- site
- Returns
strSite that the camera is in
- status
- Returns
strStatus of the camera
- class verkada_py.Organization(get_cameras: bool = True, org_id: Optional[str] = None, api_key: Optional[str] = None)[source]
Bases:
SharedAttributesOrganization represents a Verkada organization. It has a api-key and organization ID which is needed to make requests
- create_poi(image: str, label: Optional[str] = None) str[source]
Create a person of interest for the organization :param image:
strPath to a photo of the person :param label:strLabel for the person :return:strPerson ID who was created
- delete_poi(person_id: str) str[source]
Delete a person of interest :param person_id:
strPerson ID to delete :return:strPerson ID that was deleted
- get_notifications(start_time: Optional[int] = None, end_time: Optional[int] = None, include_image: bool = False, notification_types: str = 'person_of_interest,tamper,crowd,motion,camera_offline,camera_online') List[Notification][source]
Get all the notifications for an organization :param start_time:
intStart epoch time :param end_time:int` End epoch time :param include_image: ``boolInclude the image for notifications :param notification_types:strNotification types to query for :return:listNotifications where each notification is a dict