Announces a server to a host
Project description
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
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
File details
Details for the file announce-server-0.0.1rc5.tar.gz
.
File metadata
- Download URL: announce-server-0.0.1rc5.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5b89aabc29e452d2b3b834297f429ee93534b186c608f2dfdae69ab62108c0c |
|
MD5 | fef75f405d459523046554753813b751 |
|
BLAKE2b-256 | 19506cf4dede7113cda1f99b3a324cdc269ad0a4f35a97fad03a59020e842e06 |
File details
Details for the file announce_server-0.0.1rc5-py3-none-any.whl
.
File metadata
- Download URL: announce_server-0.0.1rc5-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b3199e82d747c6018a9627dff7bc271a23fc888ecf4fa24e14f6623c9da8f1b |
|
MD5 | 95d76ac6d4b05b076071a5e432460c9c |
|
BLAKE2b-256 | 0ecbae8f79e76faf7657801556d7e97c6fc55f3559010767522c26579f7d5608 |