Skip to main content

autodiscovery

autodiscovery is a Python library designed to facilitate the discovery of Python applications across a network. This tool makes it easy to locate and interact with other instances of Python-based services or applications within a defined network range.

Features

  • Seamless autodiscovery: Automatically detects Python applications on the same network.
  • Lightweight and easy to use: Minimal setup required.
  • Cross-platform: Works on Windows, macOS, and Linux.

Installation

Install autodiscovery via pip:

pip install autodiscovery

Quick Start

Here’s how to get started with autodiscovery in your Python application:

Setting Up a Discoverable Application

from autodiscovery import AutoDiscovery

auto = AutoDiscovery()
auto.run_announcement()

Discovering Applications on the Network

from autodiscovery import AutoDiscovery

auto = AutoDiscovery()
auto.run_announcement()

print(auto.peers)
{"127.0.0.1": 1733868108.392893}

Peers are removed after 10 seconds when the peer stops broadcasting


Example Use Case

Use Case: Connecting Microservices

Imagine you have a distributed system with multiple microservices running in your local network. Using autodiscovery, you can:

  1. Start a AutoDiscovery announcement in each microservice to announce its presence.
  2. Use a AutoDiscovery discovery in your central service to find and communicate with all active microservices.

Contributing

Contributions are welcome! If you'd like to contribute to autodiscovery, please:

  1. Fork the repository on GitHub.
  2. Create a new feature branch.
  3. Commit your changes and submit a pull request.

License

autodiscovery is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for autodiscovery 0.0.2

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

Source distribution (sdist)

Source distribution for autodiscovery 0.0.2
File Size Uploaded
autodiscovery-0.0.2.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autodiscovery 0.0.2
File Interpreter ABI Platform
autodiscovery-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / autodiscovery-0.0.2.tar.gz

Download URL autodiscovery-0.0.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f4e3d21fbbc4b8ed920f302fc95002452dc8ffa14ddcee78e2b763789b6854d
BLAKE2b-256 checksum
How to use checksums
a1943458be11f82842ebab93c5291907990cf4a1e8f541eead72e14adfb61dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / autodiscovery-0.0.2-py3-none-any.whl

Download URL autodiscovery-0.0.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
262c33fc85dc808dd2a852f643567e54014bbad1b68e39a06b2d40d2c8f8e038
BLAKE2b-256 checksum
How to use checksums
5b216ab5b2d07eec2c1a70236f0966bec9b08da037f0081725027b3c3450732d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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