Skip to main content

WS-Discovery in Python

This is WS-Discovery implementation for Python 2 & 3. It allows to discover services and to be discovered.

Authors and maintaining

Original version created by L.A. Fernando. Code was then forked and maintained by Andrei Kopats. Python3 port done by Pieter Jordaan. Packaging & major refactoring by Petri Savolainen. Python2 support fixes by Michael Leinartas.

Usage

A sample use of the module is shown below:

    from wsdiscovery import WSDiscovery, QName, Scope

    wsd = WSDiscovery()
    wsd.start()

    ttype = QName("abc", "def")

    ttype1 = QName("namespace", "myTestService")

    # Note: some devices scope services using onvif:// scheme, not http://
    scope1 = Scope("http://myscope")
    ttype2 = QName("namespace", "myOtherTestService_type1")
    scope2 = Scope("http://other_scope")

    xAddr = "localhost:8080/abc"
    wsd.publishService(types=[ttype], scopes=[scope2], xAddrs=[xAddr])

    #ret = wsd.searchServices(scopes=[scope1], timeout=10)
    ret = wsd.searchServices()

    for service in ret:
        print(service.getEPR() + ":" + service.getXAddrs()[0])

    wsd.stop()

Development state

This is not 100% complete and correct WS-Discovery implementation. It doesn't verify data received from the network. It may crash, and might contain security holes. No guarantees - test it carefully for your use case.

Changelog

1.0.0 (2018-12-18)

  • Improved packaging (petri)
  • Modularize & refactor (petri)
  • Better Python2 support (mleinart)

0.2 (2017-05-19)

  • First release @pypi (petri)

Metadata

Release files for WSDiscovery 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WSDiscovery 1.0.0
File Size Uploaded Provenance Actions
WSDiscovery-1.0.0.tar.gz 14.7 kB Without provenance Details for WSDiscovery-1.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for WSDiscovery 1.0.0
File Interpreter ABI Platform Actions
WSDiscovery-1.0.0-py3-none-any.whl Python 3 none any Details for WSDiscovery-1.0.0-py3-none-any.whl
WSDiscovery-1.0.0-py2-none-any.whl Python 2 none any Details for WSDiscovery-1.0.0-py2-none-any.whl

Total release size: 47.3 kB

Release files / WSDiscovery-1.0.0.tar.gz

Download URL WSDiscovery-1.0.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c91457d55a8b1886c7d747dc07522fb8b8b09a8bdb6e1f607cbe97ed332eca7a
BLAKE2b-256 checksum
How to use checksums
46f1173762381603c2565f466bfb3883b2fb3fedcd8e653825305394f9b31b58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / WSDiscovery-1.0.0-py3-none-any.whl

Download URL WSDiscovery-1.0.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
165366f5e43800fca6b3b926dd78be4ef9a8ef4168fb107882c948053d8946bc
BLAKE2b-256 checksum
How to use checksums
2e5117be500e0700d0294202e30ddecabaf117a92268ee62ef5d88f55178917b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release files / WSDiscovery-1.0.0-py2-none-any.whl

Download URL WSDiscovery-1.0.0-py2-none-any.whl
Size 16.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
94d6667c5c29ce68d63826a3b4ddcf3ac5b79712037c9baf3d269c83d409469f
BLAKE2b-256 checksum
How to use checksums
728c233ebb009c5880a2c953dbbfa0662ac85ea742636ccbcfadc1d67f1414cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Security for WSDiscovery 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page