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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: announce-server-0.0.1rc2.tar.gz
  • Upload date:
  • Size: 5.0 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.1rc2.tar.gz
Algorithm Hash digest
SHA256 8400c1651a4bf43cb898277198394f93373e8503ce895d33d35eb250dde02220
MD5 80c9964345de2a4c41a94eebe8639f01
BLAKE2b-256 e4c138e60822f827cc1b33b2ea5bd7e1cab2b67924ddc9d5acfe4ed2d20dce3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for announce_server-0.0.1rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 3fa0e2f88e8b0d4979808263a00e9fe08c5857c8ff2e8de54a5f54886e7d2921
MD5 d84adadd3e9065452024f7743affa6ff
BLAKE2b-256 4754037d697728ad9a367741919aa4ebb5da5d6b37e7acfb9c893fa0301a7bdd

See more details on using hashes here.

Supported by

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