项目作者: jjj999

项目描述 :
Hot-reloader for TCP/IP servers.
高级语言: Python
项目地址: git://github.com/jjj999/stove.git
创建时间: 2021-04-15T09:08:48Z
项目社区:https://github.com/jjj999/stove

开源协议:MIT License

下载


stove (alpha)

Installing

  • python: >= 3.7
  1. python -m pip install git+ssh://git@github.com/athnomedical/mygit.git

Usage

Writeing your configuration file

  1. # glm_config.py
  2. import subprocess
  3. from stove import StoveGileum
  4. def launch_app(host: str, port: int) -> None:
  5. subprocess.run(["gunicorn", "e2e.app:app", "-b", f"{host}:{port}"])
  6. glm = StoveGileum(fireable=launch_app)

Launching with the hot-loader

  1. # stove [PATH OF CONFIGURATION]
  2. stove glm_config.py