Skip to content

relidaning/py2nacos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

request service from nacos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages