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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for fleetpy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 817b22524669ab57412dc186e2fed610baf267a91c492c3a273d46ab8d45fa66
MD5 6adcbeff7b8a4988b062a546d0b29ffa
BLAKE2b-256 3eb7b4898affff1eb766a1574b9aa04c0297aa89945c6d24a4ead9df59c99f84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fleetpy-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c6250358a91e5022c776ac17a9a1cfe9bba5cacc20aedbdfbc0b1e22d1dcbacb
MD5 08de2830fc0fe0fa801be67a7f01f920
BLAKE2b-256 38e3278d358ddd5fa8a7f3b90b31ccf9b2cb19b90b8bd2a568c29accc9f6aedc

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