【文件属性】:
文件名称:short-circuit:Python中的断路器模式示例
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-10 18:51:20
Python
短路
Python中的示例。 使用库。
设置
$ git clone git@github.com:danriti/short-circuit.git
$ cd short-circuit
$ virtualenv .env
$ source .env/bin/activate
$ pip install -r requirements.txt
运行示例
在单独的终端中分别运行以下命令:
$ cd short-circuit
$ source .env/bin/activate
$ python app.py
$ cd short-circuit
$ source .env/bin/activate
$ python service_time.py
$ cd short-circuit
$ source .env/bin/activate
$ python service_user.py
【文件预览】:
short-circuit-master
----app.py(1KB)
----service_time.py(466B)
----templates()
--------hello.html(175B)
----johnny-five.jpg(13KB)
----listener.py(689B)
----LICENSE(1KB)
----service_user.py(237B)
----requirements.txt(143B)
----.gitignore(721B)
----README.md(862B)