UPnP library in pure python
Project description
PyUPnP
UPnP library in pure python. Client and server. Typed.
Installation
pip install python-upnp
Usage
CLI Client
$ pyupnp_client --help
usage: pyupnp_client [-h] [--user-agent USER_AGENT] [--friendly-name FRIENDLY_NAME] [--max-delay [1-5]]
[-L ADDRESS[%IFACE]] [-r ADDRESS[:PORT]] [-t TARGET] [--count COUNT]
[--interval INTERVAL] [-u UDN] [-d] [-i [UDN/...]SERVICE_ID/ACTION]
[-a ARG=VALUE [ARG=VALUE ...]] [--quiet]
options:
-h, --help show this help message and exit
--user-agent USER_AGENT
Client user agent string.
--friendly-name FRIENDLY_NAME
Client friendly name.
--max-delay [1-5] Maximum delay for multicast search in seconds.
-L ADDRESS[%IFACE], --local-address ADDRESS[%IFACE]
Local address and interface. Can be specified multiple times.
-r ADDRESS[:PORT], --remote-address ADDRESS[:PORT]
Remote address and port for unicast SSDP discovery.
-t TARGET, --target TARGET
Discovery target.
--count COUNT Count of discovery requests to send.
--interval INTERVAL Interval between discovery requests.
-u UDN, --udn UDN Device UDN. Can be specified multiple times. If not specified, all devices will be processed.
-d, --dump Dump found devices information.
-i [UDN/...]SERVICE_ID/ACTION, --invoke [UDN/...]SERVICE_ID/ACTION
Invoke action on specified service. Arguments are specified by --arg.
-a ARG=VALUE [ARG=VALUE ...], --args ARG=VALUE [ARG=VALUE ...]
Arguments to pass to action. Used with --invoke.
--quiet Suppress console output.
License
MIT License. Full test available in LICENSE file.
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
python_upnp-1.0.0.tar.gz
(20.7 kB
view hashes)
Built Distribution
Close
Hashes for python_upnp-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc773482b5c60b91649c4b46b418466a7937e14d2ad7048286ddc0c806f2ebfb |
|
MD5 | c3856b6e4952779606a7bfd9d298b47e |
|
BLAKE2b-256 | cf332264980c9075e4eb2382d2f57a0290c9b96827a5508c64d873e23329c0b3 |