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
announce-server-0.0.1.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file announce-server-0.0.1.tar.gz
.
File metadata
- Download URL: announce-server-0.0.1.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 | d6a6a681f3ee9f5025327af877e5feb1051cb3da4ee17a97443f0ced162ed371 |
|
MD5 | e85e8afe9db734b0bff24c66cfea6f50 |
|
BLAKE2b-256 | b6e580eb1c23118457de7cfa61c6a0d49bf28fc64afe196ae79327400c78f530 |
File details
Details for the file announce_server-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: announce_server-0.0.1-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 | f96da75a9b289214ad444ba2dcb1ae74be1c6f44481884a8385315f15f1b770d |
|
MD5 | 6e36b785bd846307c23b6e9e47ec5275 |
|
BLAKE2b-256 | e3f99c7293e7f92feefd2f5e6625c9449dc7c4ef86cf92864bd29e8c273143f2 |