Provides decorator to announce the presence of a server to a host machine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Michael Pilosov c71bb5babf adding makefile 2 years ago
src/announce_server backwards-compatible renaming 2 years ago
tests improve tests 2 years ago
.gitignore cleanup of tests 2 years ago
Makefile adding makefile 2 years ago
README.md backwards-compatible renaming 2 years ago
setup.cfg updated instructions for build, new pkgs 2 years ago
setup.py adding (nonfunctional) tests 2 years ago
what_didnt_work.txt committing what didn't work 2 years ago

README.md

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