Skip to main content

Discover devices on your local network

Project description

NetDisco

NetDisco is a Python 3 library to discover local devices and services. It allows to scan on demand or offer a service that will scan the network in the background in a set interval.

Current methods of scanning:

  • mDNS (includes Chromecast, Homekit)
  • uPnP
  • Plex Media Server using Good Day Mate protocol
  • Logitech Media Server discovery protocol
  • Daikin discovery protocol
  • Web OS discovery protocol

It is the library that powers the device discovery within Home Assistant.

We are no longer accepting PRs that implement custom discovery protocols. Only PRs that use mDNS or uPnP are supported. See this issue

Installation

Netdisco is available on PyPi. Install using pip3 install netdisco.

Example

From command-line:

python3 -m netdisco
# To see all raw data:
python3 -m netdisco dump

In your script:

from netdisco.discovery import NetworkDiscovery

netdis = NetworkDiscovery()

netdis.scan()

for dev in netdis.discover():
    print(dev, netdis.get_info(dev))

netdis.stop()

Will result in a list of discovered devices and their most important information:

DLNA ['http://192.168.1.1:8200/rootDesc.xml', 'http://192.168.1.150:32469/DeviceDescription.xml']
google_cast [('Living Room.local.', 8009)]
philips_hue ['http://192.168.1.2:80/description.xml']
belkin_wemo ['http://192.168.1.10:49153/setup.xml']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netdisco-2.3.0.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

netdisco-2.3.0-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

Details for the file netdisco-2.3.0.tar.gz.

File metadata

  • Download URL: netdisco-2.3.0.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

File hashes

Hashes for netdisco-2.3.0.tar.gz
Algorithm Hash digest
SHA256 2571fc094f3bf8c60be211e90474515f565f3ef1c92e857176daab8577493a3b
MD5 6649c1058796cf9514c5945eccb1ec26
BLAKE2b-256 51a246b1b4e969ebd824cc55200e75b091faa19df2d5c378851122980a9fae71

See more details on using hashes here.

File details

Details for the file netdisco-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: netdisco-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 43.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

File hashes

Hashes for netdisco-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e760feae5646f001fd0b1521a0e649a92d10abfc118b9105624c1a8544daeb2
MD5 47d7c4de346abb325f24421da56ec9fe
BLAKE2b-256 145f18fdf13b85fc3c31f6c28f900494a9308aadcdefd2a29959a6ec5c7d719b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page