Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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)
Metadata
Release files for fleetpy 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fleetpy-0.2.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fleetpy-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / fleetpy-0.2.0.tar.gz
| Download URL | fleetpy-0.2.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f02727e2aea696dd92adeda25cd105d1328481e84cbabe739f8cf728adfc0f73
|
|
BLAKE2b-256 checksum How to use checksums |
0cfab4124c740398c730c2fd13fd183f86240158388e7f362df8639b3fc5b1aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fleetpy-0.2.0-py2.py3-none-any.whl
| Download URL | fleetpy-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
78f53d7cf0bbea1fbf37c6b5219cfb393e6f380b8f9556b7d7992bd3a1377122
|
|
BLAKE2b-256 checksum How to use checksums |
a995e01f65769c002a17b90ea5ff9ff81413a37b444e9d11f20074921bd388a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |