Skip to main content


Project description



from py_bootstrap import config,get_app_homepage

print(config.get('你的配置')) # config 是由 项目根目录 文件内可json化数据与 spring-config服务获取你的服务配置的合并
print(get_app_homepage("服务名")) # 可通过该方法获取服务ip

bootstrap 文件配置解读

app_name 应用名称 与 eureka注册,config获取挂钩 config_server_name spring-config服务名 eureka_url eureka地址 register 是否注册eureka(该配置可以从远程的config-file覆盖) profile 启动模式(dev|prod) extra_profiles 额外的配置文件加载( 逗号隔开会加载所有spring-config-file中的 application-文件名.yml 配置 )



  • 配置加载
  • 日志初始化
  • eureka注册
  • 服务发现接口

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-bootstrap, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size py_bootstrap-0.0.1-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size py_bootstrap-0.0.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page