Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fleetpy-0.2.3-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

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

Hashes for fleetpy-0.2.3.tar.gz
Algorithm Hash digest
SHA256 49188fb79e922c0f9669a33bc9d68bff9a8b7394a1de5591dcd5e35893ec12d4
MD5 4acddb3402c4c9f797b54dbef74f7e3d
BLAKE2b-256 fb4432f41393a0b10a5bbcc509e80a3cfc292e4b84a7fc8c78fa80fcec5ee75d

See more details on using hashes here.

File details

Details for the file fleetpy-0.2.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fleetpy-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 16e1f1287d760ba26875c1ebbb063913a41ab254c825dc4cb1e0370f1e67adf3
MD5 3a3f7c8c33ff2f530fff98a8df3d32cb
BLAKE2b-256 14b9b297547c65363064316a4cb015de89247b241a108aba970b9d6797fd6dde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page