Skip to content

Commit a60699b

Browse files
authored
Release 0.2.8
2 parents 1307e69 + 6a3e8df commit a60699b

6 files changed

Lines changed: 45 additions & 12 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div align="center">
44
<a href="https://app.codacy.com/gh/nirsimetri/onvif-python/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img src="https://app.codacy.com/project/badge/Grade/bff08a94e4d447b690cea49c6594826d"/></a>
55
<a href="https://deepwiki.com/nirsimetri/onvif-python"><img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg"></a>
6-
<a href="https://pypi.org/project/onvif-python/"><img alt="PyPI Version" src="https://img.shields.io/badge/PyPI-0.2.7-orange?logo=archive&color=yellow"></a>
6+
<a href="https://pypi.org/project/onvif-python/"><img alt="PyPI Version" src="https://img.shields.io/badge/PyPI-0.2.8-orange?logo=archive&color=yellow"></a>
77
<a href="https://pepy.tech/projects/onvif-python"><img alt="Pepy Total Downloads" src="https://img.shields.io/pepy/dt/onvif-python?label=Downloads&color=red"></a>
88
<br>
99
<a href="https://github.com/nirsimetri/onvif-python/actions/workflows/python-app.yml"><img alt="Build" src="https://github.com/nirsimetri/onvif-python/actions/workflows/python-app.yml/badge.svg?branch=main"></a>
@@ -319,7 +319,7 @@ usage: onvif [-h] [--host HOST] [--port PORT] [--username USERNAME] [--password
319319
[--cache {all,db,mem,none}] [--health-check-interval HEALTH_CHECK_INTERVAL] [--output OUTPUT] [--version]
320320
[service] [method] [params ...]
321321

322-
ONVIF Terminal Client — v0.2.7
322+
ONVIF Terminal Client — v0.2.8
323323
https://github.com/nirsimetri/onvif-python
324324

325325
positional arguments:
@@ -400,7 +400,7 @@ Examples:
400400
<summary><b>2. Interactive Shell</b></summary>
401401

402402
```bash
403-
ONVIF Interactive Shell — v0.2.7
403+
ONVIF Interactive Shell — v0.2.8
404404
https://github.com/nirsimetri/onvif-python
405405

406406
Basic Commands:

README_ID.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div align="center">
44
<a href="https://app.codacy.com/gh/nirsimetri/onvif-python/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img src="https://app.codacy.com/project/badge/Grade/bff08a94e4d447b690cea49c6594826d"/></a>
55
<a href="https://deepwiki.com/nirsimetri/onvif-python"><img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg"></a>
6-
<a href="https://pypi.org/project/onvif-python/"><img alt="PyPI Version" src="https://img.shields.io/badge/PyPI-0.2.7-orange?logo=archive&color=yellow"></a>
6+
<a href="https://pypi.org/project/onvif-python/"><img alt="PyPI Version" src="https://img.shields.io/badge/PyPI-0.2.8-orange?logo=archive&color=yellow"></a>
77
<a href="https://pepy.tech/projects/onvif-python"><img alt="Pepy Total Downloads" src="https://img.shields.io/pepy/dt/onvif-python?label=Downloads&color=red"></a>
88
<br>
99
<a href="https://github.com/nirsimetri/onvif-python/actions/workflows/python-app.yml"><img alt="Build" src="https://github.com/nirsimetri/onvif-python/actions/workflows/python-app.yml/badge.svg?branch=main"></a>
@@ -319,7 +319,7 @@ usage: onvif [-h] [--host HOST] [--port PORT] [--username USERNAME] [--password
319319
[--cache {all,db,mem,none}] [--health-check-interval HEALTH_CHECK_INTERVAL] [--output OUTPUT] [--version]
320320
[service] [method] [params ...]
321321

322-
ONVIF Terminal Client — v0.2.7
322+
ONVIF Terminal Client — v0.2.8
323323
https://github.com/nirsimetri/onvif-python
324324

325325
positional arguments:
@@ -401,7 +401,7 @@ Examples:
401401

402402

403403
```bash
404-
ONVIF Interactive Shell — v0.2.7
404+
ONVIF Interactive Shell — v0.2.8
405405
https://github.com/nirsimetri/onvif-python
406406

407407
Basic Commands:

examples/check_device.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
77
This script connects to an ONVIF-compliant device and retrieves basic
88
information such as device details and scopes using the Core (Device Management) service.
9+
And using to_dict() (>= v0.2.8 patch) function to convert the response to a dictionary.
910
"""
1011

12+
import json
1113
from onvif import ONVIFClient
1214

1315
HOST = "192.168.1.3"
14-
PORT = 80
16+
PORT = 8000
1517
USERNAME = "admin"
1618
PASSWORD = "admin123"
1719

@@ -20,9 +22,9 @@
2022
device = client.devicemgmt()
2123

2224
# print device information
23-
print(device.GetDeviceInformation())
25+
print(json.dumps(device.GetDeviceInformation().to_dict(), indent=4))
2426

2527
# print device scopes
26-
print(device.GetScopes())
28+
print(json.dumps(device.GetScopes().to_dict(), indent=4))
2729
except Exception as e:
2830
print(e)

onvif/__init__.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

onvif/utils/service.py

Lines changed: 32 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "onvif-python"
7-
version = "0.2.7"
7+
version = "0.2.8"
88
description = "A modern Python library for ONVIF-compliant devices"
99
readme = "README.md"
1010
requires-python = ">=3.9"

0 commit comments

Comments
 (0)