Skip to main content

A tool that allows an app registers itself with Nacos

Project description

Py2nacos

A tool that allows an app registers itself with Nacos.

Fetures

Register the app when it starts.

Send the heartbeat to nacos every 5 seconds.

Usages

pip install py2nacos
NACOS_SERVER_URL='http://localhost:8848/nacos'
SERVICE_NAME='myapp'
SERVICE_IP=127.0.0.1
PORT=5000
from py2nacos import register_to_nacos
register_to_nacos(NACOS_SERVER_URL, SERVICE_NAME, SERVICE_IP, PORT)

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

py2nacos-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

py2nacos-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file py2nacos-0.1.0.tar.gz.

File metadata

  • Download URL: py2nacos-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for py2nacos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 246a9355a3671e5c2855a4e8d704f3e291caa8eb132af0e909ace99f91ab2d93
MD5 b133bb12b5984a587dc5f17178e3497a
BLAKE2b-256 269514e768a03fa5319a1836fcc686048816bd1dcb894abf7c13096a841924bf

See more details on using hashes here.

File details

Details for the file py2nacos-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py2nacos-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for py2nacos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35c28cdf658f90d3f09864323e7c6f5fba7c33d5b9abe10078bd69cdfe31c410
MD5 b5ba63a082a23ffe46f30909c1ec24f3
BLAKE2b-256 5a72436aeda195d6b0eae37a4934b1b2cd785e742b841833b65afd27c178d032

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