Skip to main content

An opinionated fleet API client for Python

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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.1.0.tar.gz (4.0 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.1.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fleetpy-0.1.0.tar.gz.

File metadata

  • Download URL: fleetpy-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fleetpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ce045b0c8cfea841c36781d22d4a77503ab3f8498924c8e6f5408c83d9010ce
MD5 e21d22807e7317b826864f8fc1ae9a75
BLAKE2b-256 8eae999d7f2681b7e700977db9ddf5749e3e8ffb7ae533bdc4aefc733ac61007

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fleetpy-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 489c89152772987399e9ae0d1311229fd03a979c7efe24656123dbce5439132a
MD5 31e637f2583e073a4c38a5ac6bde03de
BLAKE2b-256 e20f07447ecd348590a925c59607d2e47709474f2f411f94ea01e1b4f42ebfed

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