autodiscovery is a Python library that simplifies the discovery of Python applications on a network, allowing seamless connection and interaction between services with minimal configuration.
Project description
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:
- Start a
AutoDiscoveryannouncement in each microservice to announce its presence. - Use a
AutoDiscoverydiscovery 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:
- Fork the repository on GitHub.
- Create a new feature branch.
- Commit your changes and submit a pull request.
License
autodiscovery is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autodiscovery-0.0.2.tar.gz.
File metadata
- Download URL: autodiscovery-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f4e3d21fbbc4b8ed920f302fc95002452dc8ffa14ddcee78e2b763789b6854d
|
|
| MD5 |
3864b1dedb51764ffc6ee8dbbd804b04
|
|
| BLAKE2b-256 |
a1943458be11f82842ebab93c5291907990cf4a1e8f541eead72e14adfb61dbe
|
File details
Details for the file autodiscovery-0.0.2-py3-none-any.whl.
File metadata
- Download URL: autodiscovery-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
262c33fc85dc808dd2a852f643567e54014bbad1b68e39a06b2d40d2c8f8e038
|
|
| MD5 |
c5635b295207d64ef56ef2fa9f797474
|
|
| BLAKE2b-256 |
5b216ab5b2d07eec2c1a70236f0966bec9b08da037f0081725027b3c3450732d
|