Python的具有偏见的舰队API客户端
项目描述
Python的具有偏见的舰队API客户端。
使用方法
import fleetpy
client = fleetpy.Client('https://fleet.myenv.com')
unit = client.unit('consul', from_file='consul.service')
# Submit the unit, but keep it inactive
unit.submit()
# Start the unit
unit.start()
# Stop the unit
unit.stop()
# List the state of all units
state = client.state()
# List the machines
machines = client.machines()
# List the units
units = client.units()
# Get the state of a remote unit
unit = client.unit('remote.service')
unit.refresh()
print(unit.state)
项目详情
下载文件
为您的平台下载文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源代码分发
fleetpy-0.2.3.tar.gz (4.3 kB 查看哈希值)
构建分发
fleetpy-0.2.3-py2.py3-none-any.whl (6.3 kB 查看哈希值)
关闭
fleetpy-0.2.3.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 49188fb79e922c0f9669a33bc9d68bff9a8b7394a1de5591dcd5e35893ec12d4 |
|
MD5 | 4acddb3402c4c9f797b54dbef74f7e3d |
|
BLAKE2b-256 | fb4432f41393a0b10a5bbcc509e80a3cfc292e4b84a7fc8c78fa80fcec5ee75d |