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
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
py2nacos-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
246a9355a3671e5c2855a4e8d704f3e291caa8eb132af0e909ace99f91ab2d93
|
|
| MD5 |
b133bb12b5984a587dc5f17178e3497a
|
|
| BLAKE2b-256 |
269514e768a03fa5319a1836fcc686048816bd1dcb894abf7c13096a841924bf
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35c28cdf658f90d3f09864323e7c6f5fba7c33d5b9abe10078bd69cdfe31c410
|
|
| MD5 |
b5ba63a082a23ffe46f30909c1ec24f3
|
|
| BLAKE2b-256 |
5a72436aeda195d6b0eae37a4934b1b2cd785e742b841833b65afd27c178d032
|