Skip to main content

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


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.1rc3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

announce_server-0.0.1rc3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file announce-server-0.0.1rc3.tar.gz.

File metadata

  • Download URL: announce-server-0.0.1rc3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for announce-server-0.0.1rc3.tar.gz
Algorithm Hash digest
SHA256 e67d541a60f438eb2f84062876ef981a38695dc848337d39f48597e09fcdc9d4
MD5 1cf18999f12a7a1b480fe6cfe7933d9c
BLAKE2b-256 4a93eb982c200fa2ad1c70f5645fbe721d8df393b1e3fa70e438284fc6fc82af

See more details on using hashes here.

File details

Details for the file announce_server-0.0.1rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for announce_server-0.0.1rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 28a3de9312a6f9ee13ba889ac0405c51d9e7eb78ca66f3bf14a721fe0422168f
MD5 602ecb5f7eef34ef4e6418b04d824fd3
BLAKE2b-256 ac3fbe75fe2c28807ff6a98499eaf6ddf87f6298637effb8af6bddc8bb055920

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page