Provides decorator to announce the presence of a server to a host machine.
Go to file
2023-03-19 18:06:06 -06:00
src/announce_server fix print statement 2023-03-19 18:06:06 -06:00
tests improve tests 2023-03-19 18:02:11 -06:00
.gitignore cleanup of tests 2023-03-19 17:04:40 -06:00
Makefile adding makefile 2023-03-19 18:02:11 -06:00
README.md backwards-compatible renaming 2023-03-19 18:02:11 -06:00
setup.cfg updated instructions for build, new pkgs 2023-03-19 17:10:52 -06:00
setup.py adding (nonfunctional) tests 2023-03-19 13:52:46 -06:00
what_didnt_work.txt committing what didn't work 2023-03-19 17:05:24 -06:00

Announce Server

A Python library that announces a server to a host.

Installation

pip install announce-server

Development

To install the developer dependencies required for testing and publishing:

pip install -e .[dev,pub]

Build

To build the package, run:

rm -rf dist/ build/ .eggs/ .pytest_cache/ src/announce_server.egg-info/
python -m build --sdist --wheel

To publish:

twine upload dist/*

Test

To run the tests, call:

pytest

Usage

from announce_server import register_service

@register_service(name="server_name", ip="server_ip", port=8000, host_ip="host_server_ip", host_port=5000, retry_interval=5)
def your_function():
    pass