An opinionated fleet API client for Python
Project description
An opinionated fleet API client for Python.
Usage
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fleetpy-0.2.3.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fleetpy-0.2.3.tar.gz.
File metadata
- Download URL: fleetpy-0.2.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49188fb79e922c0f9669a33bc9d68bff9a8b7394a1de5591dcd5e35893ec12d4
|
|
| MD5 |
4acddb3402c4c9f797b54dbef74f7e3d
|
|
| BLAKE2b-256 |
fb4432f41393a0b10a5bbcc509e80a3cfc292e4b84a7fc8c78fa80fcec5ee75d
|
File details
Details for the file fleetpy-0.2.3-py2.py3-none-any.whl.
File metadata
- Download URL: fleetpy-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16e1f1287d760ba26875c1ebbb063913a41ab254c825dc4cb1e0370f1e67adf3
|
|
| MD5 |
3a3f7c8c33ff2f530fff98a8df3d32cb
|
|
| BLAKE2b-256 |
14b9b297547c65363064316a4cb015de89247b241a108aba970b9d6797fd6dde
|