跳转到主要内容

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 查看哈希值)

上传时间: Python 2 Python 3

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面