Skip to content

Commit b729fc5

Browse files
committed
Bump version 0.1.6 → 0.1.7
1 parent 8044280 commit b729fc5

File tree

5 files changed

+48
-15
lines changed

5 files changed

+48
-15
lines changed

README.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Codacy grade](https://img.shields.io/codacy/grade/bff08a94e4d447b690cea49c6594826d?label=Project%20Quality&logo=codacy)](https://app.codacy.com/gh/nirsimetri/onvif-python/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
44
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/nirsimetri/onvif-python)
5-
[![PyPI](https://img.shields.io/badge/PyPI-0.1.6-orange?logo=archive)](https://pypi.org/project/onvif-python/)
5+
[![PyPI](https://img.shields.io/badge/PyPI-0.1.7-orange?logo=archive)](https://pypi.org/project/onvif-python/)
66
[![Downloads](https://img.shields.io/pypi/dm/onvif-python?label=Downloads&color=red)](https://clickpy.clickhouse.com/dashboard/onvif-python)
77
<br>
88
[![Build](https://github.com/nirsimetri/onvif-python/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/nirsimetri/onvif-python/actions/workflows/python-app.yml)
@@ -69,6 +69,10 @@ discovery = ONVIFDiscovery(timeout=5)
6969
# Discover devices
7070
devices = discovery.discover()
7171

72+
# Or with
73+
# Discover with search filter by types or scopes (case-insensitive substring match)
74+
devices = discovery.discover(search="Profile/Streaming")
75+
7276
# Display discovered devices
7377
for device in devices:
7478
print(f"Found device at {device['host']}:{device['port']}")
@@ -194,11 +198,12 @@ This library includes a powerful command-line interface (CLI) for interacting wi
194198
<summary><b>1. Direct CLI</b></summary>
195199

196200
```bash
197-
usage: onvif [-h] [--host HOST] [--port PORT] [--username USERNAME] [--password PASSWORD] [--discover] [--timeout TIMEOUT] [--https] [--no-verify]
198-
[--no-patch] [--interactive] [--debug] [--wsdl WSDL] [--cache {all,db,mem,none}] [--health-check-interval HEALTH_CHECK_INTERVAL] [--version]
201+
usage: onvif [-h] [--host HOST] [--port PORT] [--username USERNAME] [--password PASSWORD] [--discover] [--search SEARCH] [--timeout TIMEOUT] [--https]
202+
[--no-verify] [--no-patch] [--interactive] [--debug] [--wsdl WSDL] [--cache {all,db,mem,none}]
203+
[--health-check-interval HEALTH_CHECK_INTERVAL] [--version]
199204
[service] [method] [params ...]
200205

201-
ONVIF Terminal Client — v0.1.6
206+
ONVIF Terminal Client — v0.1.7
202207
https://github.com/nirsimetri/onvif-python
203208

204209
positional arguments:
@@ -215,6 +220,8 @@ options:
215220
--password PASSWORD, -p PASSWORD
216221
Password for authentication
217222
--discover, -d Discover ONVIF devices on the network using WS-Discovery
223+
--search SEARCH, -s SEARCH
224+
Filter discovered devices by types or scopes (case-insensitive substring match)
218225
--timeout TIMEOUT Connection timeout in seconds (default: 10)
219226
--https Use HTTPS instead of HTTP
220227
--no-verify Disable SSL certificate verification
@@ -234,6 +241,11 @@ Examples:
234241
onvif media GetProfiles --discover --username admin
235242
onvif -d -i
236243

244+
# Discover with filtering
245+
onvif --discover --search ptz --interactive
246+
onvif -d -s "C210" -i
247+
onvif -d -s "audio_encoder" -u admin -p admin123 -i
248+
237249
# Direct command execution
238250
onvif devicemgmt GetCapabilities Category=All --host 192.168.1.17 --port 8000 --username admin --password admin123
239251
onvif ptz ContinuousMove ProfileToken=Profile_1 Velocity={"PanTilt": {"x": -0.1, "y": 0}} --host 192.168.1.17 --port 8000 --username admin --password admin123
@@ -255,7 +267,7 @@ Examples:
255267
<summary><b>2. Interactive Shell</b></summary>
256268

257269
```bash
258-
ONVIF Interactive Shell — v0.1.6
270+
ONVIF Interactive Shell — v0.1.7
259271
https://github.com/nirsimetri/onvif-python
260272

261273
Basic Commands:
@@ -388,6 +400,10 @@ onvif --discover --username admin --password admin123 --interactive
388400
# Short form
389401
onvif -d -u admin -p admin123 -i
390402

403+
# Discover with search filter
404+
onvif --discover --search "C210" --interactive
405+
onvif -d -s ptz -u admin -p admin123 -i
406+
391407
# Discover and interactive (will prompt for credentials)
392408
onvif -d -i
393409
```

README_ID.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Codacy grade](https://img.shields.io/codacy/grade/bff08a94e4d447b690cea49c6594826d?label=Project%20Quality&logo=codacy)](https://app.codacy.com/gh/nirsimetri/onvif-python/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
44
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/nirsimetri/onvif-python)
5-
[![PyPI](https://img.shields.io/badge/PyPI-0.1.6-orange?logo=archive)](https://pypi.org/project/onvif-python/)
5+
[![PyPI](https://img.shields.io/badge/PyPI-0.1.7-orange?logo=archive)](https://pypi.org/project/onvif-python/)
66
[![Downloads](https://img.shields.io/pypi/dm/onvif-python?label=Downloads&color=red)](https://clickpy.clickhouse.com/dashboard/onvif-python)
77
<br>
88
[![Build](https://github.com/nirsimetri/onvif-python/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/nirsimetri/onvif-python/actions/workflows/python-app.yml)
@@ -69,6 +69,10 @@ discovery = ONVIFDiscovery(timeout=5)
6969
# Temukan perangkat
7070
devices = discovery.discover()
7171

72+
# Atau dengan
73+
# Temukan dengan filter pencarian berdasarkan types atau scopes (pencocokan sub-string tanpa memperhatikan huruf besar/kecil)
74+
devices = discovery.discover(search="Profile/Streaming")
75+
7276
# Tampilkan perangkat yang ditemukan
7377
for device in devices:
7478
print(f"Ditemukan perangkat di {device['host']}:{device['port']}")
@@ -194,11 +198,12 @@ Pustaka ini menyertakan antarmuka baris perintah (CLI) yang kuat untuk berintera
194198
<summary><b>1. CLI Langsung</b></summary>
195199

196200
```bash
197-
usage: onvif [-h] [--host HOST] [--port PORT] [--username USERNAME] [--password PASSWORD] [--discover] [--timeout TIMEOUT] [--https] [--no-verify]
198-
[--no-patch] [--interactive] [--debug] [--wsdl WSDL] [--cache {all,db,mem,none}] [--health-check-interval HEALTH_CHECK_INTERVAL] [--version]
201+
usage: onvif [-h] [--host HOST] [--port PORT] [--username USERNAME] [--password PASSWORD] [--discover] [--search SEARCH] [--timeout TIMEOUT] [--https]
202+
[--no-verify] [--no-patch] [--interactive] [--debug] [--wsdl WSDL] [--cache {all,db,mem,none}]
203+
[--health-check-interval HEALTH_CHECK_INTERVAL] [--version]
199204
[service] [method] [params ...]
200205

201-
ONVIF Terminal Client — v0.1.6
206+
ONVIF Terminal Client — v0.1.7
202207
https://github.com/nirsimetri/onvif-python
203208

204209
positional arguments:
@@ -215,6 +220,8 @@ options:
215220
--password PASSWORD, -p PASSWORD
216221
Password for authentication
217222
--discover, -d Discover ONVIF devices on the network using WS-Discovery
223+
--search SEARCH, -s SEARCH
224+
Filter discovered devices by types or scopes (case-insensitive substring match)
218225
--timeout TIMEOUT Connection timeout in seconds (default: 10)
219226
--https Use HTTPS instead of HTTP
220227
--no-verify Disable SSL certificate verification
@@ -234,6 +241,11 @@ Examples:
234241
onvif media GetProfiles --discover --username admin
235242
onvif -d -i
236243

244+
# Discover with filtering
245+
onvif --discover --search ptz --interactive
246+
onvif -d -s "C210" -i
247+
onvif -d -s "audio_encoder" -u admin -p admin123 -i
248+
237249
# Direct command execution
238250
onvif devicemgmt GetCapabilities Category=All --host 192.168.1.17 --port 8000 --username admin --password admin123
239251
onvif ptz ContinuousMove ProfileToken=Profile_1 Velocity={"PanTilt": {"x": -0.1, "y": 0}} --host 192.168.1.17 --port 8000 --username admin --password admin123
@@ -256,7 +268,7 @@ Examples:
256268

257269

258270
```bash
259-
ONVIF Interactive Shell — v0.1.6
271+
ONVIF Interactive Shell — v0.1.7
260272
https://github.com/nirsimetri/onvif-python
261273

262274
Basic Commands:
@@ -389,6 +401,10 @@ onvif --discover --username admin --password admin123 --interactive
389401
# Bentuk singkat
390402
onvif -d -u admin -p admin123 -i
391403

404+
# Temukan dengan filter pencarian
405+
onvif --discover --search "C210" --interactive
406+
onvif -d -s ptz -u admin -p admin123 -i
407+
392408
# Temukan dan interaktif (akan meminta kredensial)
393409
onvif -d -i
394410
```

onvif/cli/interactive.py

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

onvif/cli/main.py

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

pyproject.toml

Lines changed: 2 additions & 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.1.6"
7+
version = "0.1.7"
88
description = "A comprehensive and developer-friendly Python library for working with ONVIF-compliant devices"
99
readme = "README.md"
1010
requires-python = ">=3.9"
@@ -69,5 +69,6 @@ extend-exclude = '''
6969
'''
7070

7171
[project.urls]
72+
Homepage = "https://github.com/nirsimetri/onvif-python"
7273
Documentation = "https://deepwiki.com/nirsimetri/onvif-python"
7374
Changelog = "https://github.com/nirsimetri/onvif-python/releases"

0 commit comments

Comments
 (0)