fleetpy-0.2.3
توضیحات
An opinionated fleet API client for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fleetpy-0.2.3 |
| نام | fleetpy |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gavin M. Roy |
| ایمیل نویسنده | gavinmroy@gmail.com |
| آدرس صفحه اصلی | http://fleetpy.readthedocs.org |
| آدرس اینترنتی | https://pypi.org/project/fleetpy/ |
| مجوز | BSD |
fleetpy
=======
An opinionated fleet API client for Python.
Usage
-----
.. code:: python
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)
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
نحوه نصب
نصب پکیج whl fleetpy-0.2.3:
pip install fleetpy-0.2.3.whl
نصب پکیج tar.gz fleetpy-0.2.3:
pip install fleetpy-0.2.3.tar.gz