onvif-python
Advanced tools
| Metadata-Version: 2.4 | ||
| Name: onvif-python | ||
| Version: 0.2.7 | ||
| Version: 0.2.8 | ||
| Summary: A modern Python library for ONVIF-compliant devices | ||
@@ -49,3 +49,3 @@ Author-email: Nirsimetri Technologies® <open@nirsimetri.com> | ||
| <a href="https://deepwiki.com/nirsimetri/onvif-python"><img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg"></a> | ||
| <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> | ||
| <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> | ||
| <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> | ||
@@ -366,3 +366,3 @@ <br> | ||
| ONVIF Terminal Client — v0.2.7 | ||
| ONVIF Terminal Client — v0.2.8 | ||
| https://github.com/nirsimetri/onvif-python | ||
@@ -448,3 +448,3 @@ | ||
| ```bash | ||
| ONVIF Interactive Shell — v0.2.7 | ||
| ONVIF Interactive Shell — v0.2.8 | ||
| https://github.com/nirsimetri/onvif-python | ||
@@ -451,0 +451,0 @@ |
| # onvif/__init__.py | ||
| __version__ = "0.2.7" | ||
| __version__ = "0.2.8" | ||
@@ -5,0 +5,0 @@ from .client import ONVIFClient |
| # onvif/utils/service.py | ||
| import logging | ||
| import zeep.helpers | ||
| from .exceptions import ONVIFOperationException | ||
@@ -10,2 +11,32 @@ | ||
| class ONVIFResponse: | ||
| """Transparent wrapper that adds to_dict() to zeep objects.""" | ||
| def __init__(self, wrapped_object): | ||
| object.__setattr__(self, "_wrapped", wrapped_object) | ||
| def __getattr__(self, name): | ||
| return getattr(self._wrapped, name) | ||
| def __setattr__(self, name, value): | ||
| if name == "_wrapped": | ||
| object.__setattr__(self, name, value) | ||
| else: | ||
| setattr(self._wrapped, name, value) | ||
| def __repr__(self): | ||
| return repr(self._wrapped) | ||
| def __str__(self): | ||
| return str(self._wrapped) | ||
| def to_dict(self): | ||
| """Convert zeep object to Python dictionary.""" | ||
| return ( | ||
| {} | ||
| if self._wrapped is None | ||
| else zeep.helpers.serialize_object(self._wrapped) | ||
| ) | ||
| def _is_zeep_object(obj): | ||
@@ -108,3 +139,3 @@ """Check if an object is a Zeep-generated object. | ||
| logger.debug(f"ONVIF method {name} completed successfully") | ||
| return result | ||
| return ONVIFResponse(result) if result is not None else result | ||
| except ONVIFOperationException as oe: | ||
@@ -111,0 +142,0 @@ # Re-raise ONVIF exceptions as-is |
+4
-4
| Metadata-Version: 2.4 | ||
| Name: onvif-python | ||
| Version: 0.2.7 | ||
| Version: 0.2.8 | ||
| Summary: A modern Python library for ONVIF-compliant devices | ||
@@ -49,3 +49,3 @@ Author-email: Nirsimetri Technologies® <open@nirsimetri.com> | ||
| <a href="https://deepwiki.com/nirsimetri/onvif-python"><img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg"></a> | ||
| <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> | ||
| <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> | ||
| <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> | ||
@@ -366,3 +366,3 @@ <br> | ||
| ONVIF Terminal Client — v0.2.7 | ||
| ONVIF Terminal Client — v0.2.8 | ||
| https://github.com/nirsimetri/onvif-python | ||
@@ -448,3 +448,3 @@ | ||
| ```bash | ||
| ONVIF Interactive Shell — v0.2.7 | ||
| ONVIF Interactive Shell — v0.2.8 | ||
| https://github.com/nirsimetri/onvif-python | ||
@@ -451,0 +451,0 @@ |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "onvif-python" | ||
| version = "0.2.7" | ||
| version = "0.2.8" | ||
| description = "A modern Python library for ONVIF-compliant devices" | ||
@@ -10,0 +10,0 @@ readme = "README.md" |
+3
-3
@@ -6,3 +6,3 @@ <h1 align="center">ONVIF Python</h1> | ||
| <a href="https://deepwiki.com/nirsimetri/onvif-python"><img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg"></a> | ||
| <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> | ||
| <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> | ||
| <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> | ||
@@ -323,3 +323,3 @@ <br> | ||
| ONVIF Terminal Client — v0.2.7 | ||
| ONVIF Terminal Client — v0.2.8 | ||
| https://github.com/nirsimetri/onvif-python | ||
@@ -405,3 +405,3 @@ | ||
| ```bash | ||
| ONVIF Interactive Shell — v0.2.7 | ||
| ONVIF Interactive Shell — v0.2.8 | ||
| https://github.com/nirsimetri/onvif-python | ||
@@ -408,0 +408,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
85184197
010983
0.21%