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.2.2.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.2-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for fleetpy-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8a41409afaa2c2e31c8e4944e41f5871314ea666ce681677732ceff2ba1224e8
MD5 05b9fb9d7b82d5d0f1cbd07d6f9c9595
BLAKE2b-256 9f0c9ca553eda6781939b82435d70d7adfccd0615deb05da6cda63e1e99df686

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fleetpy-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ab9527083c5986c2dda60ff872ff7004015e6590b0e09d25432161fa8895214d
MD5 a671bb7bf73abd8e3c0e558c5b3ef251
BLAKE2b-256 a8f9cae8228fdb8bafce28c21871e94512eb274c542267e5ca537f415dd325e4

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