zeroconf-1.0.0
1.0.0
0.99.0
0.98.0
0.97.0
0.96.0
0.95.0
0.94.0
0.93.1
0.93.0
0.92.0
0.91.1
0.91.0
0.90.0
0.89.0
0.88.0
0.87.0
0.86.0
0.85.0
0.84.0
0.83.1
0.83.0
0.82.1
0.82.0
0.81.0
0.80.0
0.79.0
0.78.0
0.77.0
0.76.0
0.75.0
0.74.0
0.73.0
0.72.3
0.72.2
0.72.1
0.72.0
0.71.5
0.71.4
0.71.3
0.71.2
0.71.1
0.71.0
0.70.0
0.69.0
0.68.1
0.68.0
0.67.0
0.66.0
0.65.0
0.64.1
0.64.0
0.63.0
0.62.0
0.61.0
0.60.0
0.59.0
0.58.2
0.58.1
0.58.0
0.57.0
0.56.0
0.55.0
0.54.0
0.53.1
0.53.0
0.52.0
0.51.0
0.50.0
0.49.0
0.48.0
0.47.4
0.47.3
0.47.2
0.47.1
0.47.0
0.46.0
0.45.0
0.44.0
0.43.0
0.42.0
0.41.0
0.40.1
0.39.4
0.39.3
0.39.2
0.39.1
0.39.0
0.38.7
0.38.6
0.38.5
0.38.4
0.38.3
0.38.1
0.38.0
0.37.0
0.36.9
0.36.8
0.36.7
0.36.6
0.36.5
0.36.4
0.36.3
0.36.2
0.36.13
0.36.12
0.36.11
0.36.1
0.36.0
0.35.1
0.35.0
0.34.3
0.34.2
0.34.1
0.34.0
0.33.4
0.33.3
0.33.2
0.33.1
0.33.0
0.32.1
0.32.0
0.31.0
0.30.0
0.29.0
0.28.8
0.28.7
0.28.6
0.28.5
0.28.4
0.28.3
0.28.2
0.28.1
0.28.0
0.27.1
0.27.0
0.26.3
0.26.2
0.26.1
0.26.0
0.25.1
0.25.0
0.24.5
0.24.4
0.24.3
0.24.2
0.24.1
0.24.0
0.23.0
0.22.0
0.21.3
0.21.2
0.21.1
0.21.0
0.20.0
0.19.1
0.19.0
0.18.0
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.0
0.15.1
0.15
0.148.0
0.147.3
0.147.2
0.147.1
0.147.0
0.146.5
0.146.4
0.146.3
0.146.2
0.146.1
0.146.0
0.145.1
0.145.0
0.144.3
0.144.2
0.144.1
0.144.0
0.143.1
0.143.0
0.142.0
0.141.0
0.140.1
0.140.0
0.14
0.139.0
0.138.1
0.138.0
0.137.2
0.137.1
0.137.0
0.136.2
0.136.1
0.136.0
0.135.0
0.134.0
0.133.0
0.132.2
0.132.1
0.132.0
0.131.0
0.130.0
0.129.0
0.128.5
0.128.4
0.128.3
0.128.2
0.128.1
0.128.0
0.127.0
0.126.0
0.125.0
0.124.0
0.123.0
0.122.3
0.122.2
0.122.1
0.122.0
0.121.0
0.120.0
0.119.0
0.118.1
0.118.0
0.117.0
0.116.0
0.115.2
0.115.1
0.115.0
0.114.0
0.113.0
0.112.0
0.111.0
0.110.0
0.109.0
0.108.0
0.107.0
0.106.0
0.105.0
0.104.0
0.103.0
0.102.0
0.101.0
0.100.0
1.0.0
0.99.0
0.98.0
0.97.0
0.96.0
0.95.0
0.94.0
0.93.1
0.93.0
0.92.0
0.91.1
0.91.0
0.90.0
0.89.0
0.88.0
0.87.0
0.86.0
0.85.0
0.84.0
0.83.1
0.83.0
0.82.1
0.82.0
0.81.0
0.80.0
0.79.0
0.78.0
0.77.0
0.76.0
0.75.0
0.74.0
0.73.0
0.72.3
0.72.2
0.72.1
0.72.0
0.71.5
0.71.4
0.71.3
0.71.2
0.71.1
0.71.0
0.70.0
0.69.0
0.68.1
0.68.0
0.67.0
0.66.0
0.65.0
0.64.1
0.64.0
0.63.0
0.62.0
0.61.0
0.60.0
0.59.0
0.58.2
0.58.1
0.58.0
0.57.0
0.56.0
0.55.0
0.54.0
0.53.1
0.53.0
0.52.0
0.51.0
0.50.0
0.49.0
0.48.0
0.47.4
0.47.3
0.47.2
0.47.1
0.47.0
0.46.0
0.45.0
0.44.0
0.43.0
0.42.0
0.41.0
0.40.1
0.39.4
0.39.3
0.39.2
0.39.1
0.39.0
0.38.7
0.38.6
0.38.5
0.38.4
0.38.3
0.38.1
0.38.0
0.37.0
0.36.9
0.36.8
0.36.7
0.36.6
0.36.5
0.36.4
0.36.3
0.36.2
0.36.13
0.36.12
0.36.11
0.36.1
0.36.0
0.35.1
0.35.0
0.34.3
0.34.2
0.34.1
0.34.0
0.33.4
0.33.3
0.33.2
0.33.1
0.33.0
0.32.1
0.32.0
0.31.0
0.30.0
0.29.0
0.28.8
0.28.7
0.28.6
0.28.5
0.28.4
0.28.3
0.28.2
0.28.1
0.28.0
0.27.1
0.27.0
0.26.3
0.26.2
0.26.1
0.26.0
0.25.1
0.25.0
0.24.5
0.24.4
0.24.3
0.24.2
0.24.1
0.24.0
0.23.0
0.22.0
0.21.3
0.21.2
0.21.1
0.21.0
0.20.0
0.19.1
0.19.0
0.18.0
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.0
0.15.1
0.15
0.148.0
0.147.3
0.147.2
0.147.1
0.147.0
0.146.5
0.146.4
0.146.3
0.146.2
0.146.1
0.146.0
0.145.1
0.145.0
0.144.3
0.144.2
0.144.1
0.144.0
0.143.1
0.143.0
0.142.0
0.141.0
0.140.1
0.140.0
0.14
0.139.0
0.138.1
0.138.0
0.137.2
0.137.1
0.137.0
0.136.2
0.136.1
0.136.0
0.135.0
0.134.0
0.133.0
0.132.2
0.132.1
0.132.0
0.131.0
0.130.0
0.129.0
0.128.5
0.128.4
0.128.3
0.128.2
0.128.1
0.128.0
0.127.0
0.126.0
0.125.0
0.124.0
0.123.0
0.122.3
0.122.2
0.122.1
0.122.0
0.121.0
0.120.0
0.119.0
0.118.1
0.118.0
0.117.0
0.116.0
0.115.2
0.115.1
0.115.0
0.114.0
0.113.0
0.112.0
0.111.0
0.110.0
0.109.0
0.108.0
0.107.0
0.106.0
0.105.0
0.104.0
0.103.0
0.102.0
0.101.0
0.100.0
توضیحات
A pure python implementation of multicast DNS service discovery
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | zeroconf-1.0.0 |
| نام | zeroconf |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Paul Scott-Murphy |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/zeroconf/ |
| مجوز | - |
python-zeroconf
===============
.. image:: https://github.com/python-zeroconf/python-zeroconf/workflows/CI/badge.svg
:target: https://github.com/python-zeroconf/python-zeroconf?query=workflow%3ACI+branch%3Amaster
.. image:: https://img.shields.io/pypi/v/zeroconf.svg
:target: https://pypi.python.org/pypi/zeroconf
.. image:: https://codecov.io/gh/python-zeroconf/python-zeroconf/branch/master/graph/badge.svg
:target: https://codecov.io/gh/python-zeroconf/python-zeroconf
.. image:: https://img.shields.io/endpoint?url=https://codspeed.io/badge.json
:target: https://codspeed.io/python-zeroconf/python-zeroconf
:alt: Codspeed.io status for python-zeroconf
.. image:: https://readthedocs.org/projects/python-zeroconf/badge/?version=latest
:target: https://python-zeroconf.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
`Documentation <https://python-zeroconf.readthedocs.io/en/latest/>`_.
This is fork of pyzeroconf, Multicast DNS Service Discovery for Python,
originally by Paul Scott-Murphy (https://github.com/paulsm/pyzeroconf),
modified by William McBrine (https://github.com/wmcbrine/pyzeroconf).
The original William McBrine's fork note::
This fork is used in all of my TiVo-related projects: HME for Python
(and therefore HME/VLC), Network Remote, Remote Proxy, and pyTivo.
Before this, I was tracking the changes for zeroconf.py in three
separate repos. I figured I should have an authoritative source.
Although I make changes based on my experience with TiVos, I expect that
they're generally applicable. This version also includes patches found
on the now-defunct (?) Launchpad repo of pyzeroconf, and elsewhere
around the net -- not always well-documented, sorry.
Compatible with:
* Bonjour
* Avahi
Compared to some other Zeroconf/Bonjour/Avahi Python packages, python-zeroconf:
* isn't tied to Bonjour or Avahi
* doesn't use D-Bus
* doesn't force you to use particular event loop or Twisted (asyncio is used under the hood but not required)
* is pip-installable
* has PyPI distribution
* has an optional cython extension for performance (pure python is supported as well)
Python compatibility
--------------------
* CPython 3.9+
* PyPy 3.9+
Versioning
----------
This project uses semantic versioning.
Status
------
This project is actively maintained.
Traffic Reduction
-----------------
Before version 0.32, most traffic reduction techniques described in https://datatracker.ietf.org/doc/html/rfc6762#section-7
where not implemented which could lead to excessive network traffic. It is highly recommended that version 0.32 or later
is used if this is a concern.
IPv6 support
------------
IPv6 support is relatively new and currently limited, specifically:
* `InterfaceChoice.All` is an alias for `InterfaceChoice.Default` on non-POSIX
systems.
* Dual-stack IPv6 sockets are used, which may not be supported everywhere (some
BSD variants do not have them).
* Listening on localhost (`::1`) does not work. Help with understanding why is
appreciated.
How to get python-zeroconf?
===========================
* PyPI page https://pypi.org/project/zeroconf/
* GitHub project https://github.com/python-zeroconf/python-zeroconf
The easiest way to install python-zeroconf is using pip::
pip install zeroconf
How do I use it?
================
Here's an example of browsing for a service:
.. code-block:: python
from zeroconf import ServiceBrowser, ServiceListener, Zeroconf
class MyListener(ServiceListener):
def update_service(self, zc: Zeroconf, type_: str, name: str) -> None:
print(f"Service {name} updated")
def remove_service(self, zc: Zeroconf, type_: str, name: str) -> None:
print(f"Service {name} removed")
def add_service(self, zc: Zeroconf, type_: str, name: str) -> None:
info = zc.get_service_info(type_, name)
print(f"Service {name} added, service info: {info}")
zeroconf = Zeroconf()
listener = MyListener()
browser = ServiceBrowser(zeroconf, "_http._tcp.local.", listener)
try:
input("Press enter to exit...\n\n")
finally:
zeroconf.close()
.. note::
Discovery and service registration use *all* available network interfaces by default.
If you want to customize that you need to specify ``interfaces`` argument when
constructing ``Zeroconf`` object (see the code for details).
If you don't know the name of the service you need to browse for, try:
.. code-block:: python
from zeroconf import ZeroconfServiceTypes
print('\n'.join(ZeroconfServiceTypes.find()))
See examples directory for more.
Changelog
=========
`Changelog <CHANGELOG.md>`_
License
=======
LGPL, see COPYING file for details.
نیازمندی
| مقدار | نام |
|---|---|
| - | ifaddr>=0.1.7 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl zeroconf-1.0.0:
pip install zeroconf-1.0.0.whl
نصب پکیج tar.gz zeroconf-1.0.0:
pip install zeroconf-1.0.0.tar.gz