Skip to main content
Introduction
============

Salut is a Gevent based wrapper around the pybonjour library to facilitate
the use of bonjour in a cleaner way.

Salut is composed of two main classes, the Announcer and the Browser. Each have
a set of callbacks to respond to events without locking the main greenlet.


Example
=======

```python
class AnnouncerExample(object):
def run(self):
self._announcer = salut.Announcer(
'ServiceName',
'_regtype._tcp',
5000,
self._registered_callback)

while True:
gevent.sleep(1)

def stop(self):
self._announcer.stop()

def _registered_callback(self, domain, regtype, name):
print('announcing: %s%s%s' % (domain, regtype, name))
```

```python
class BrowseExample(object):
def run(self):
self._browser = salut.Browser(
'ServiceName',
'_regtype._tcp',
self._resolved_callback,
self._unresolved_callback)

while True:
gevent.sleep(1)

def stop(self):
self._browser.stop()

def _resolved_callback(self, ip, port):
print('resolved service to %s:%s' % (ip, port))

def _unresolved_callback(self):
print('lost service %s' % self._service_name)

```


License
=======

Salut is licensed under Apache License 2.0

http://www.apache.org/licenses/LICENSE-2.0

Metadata

Release files for salut 0.1.6

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

Source distribution (sdist)

Source distribution for salut 0.1.6
File Size Uploaded Provenance
salut-0.1.6.tar.gz 7.2 kB Without provenance Details

Release files / salut-0.1.6.tar.gz

Download URL salut-0.1.6.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e80cb56b33baddef6e17fef78b9dd2f012bb3ece8e23dada299703bcf69675a6
BLAKE2b-256 checksum
How to use checksums
04aae1c93171dd092e7fba70cad0fb980a85e7268c08751de451226ead24e279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for salut 0.1.6

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.

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