Metadata-Version: 2.0
Name: fleetpy
Version: 0.2.2
Summary: An opinionated fleet API client for Python
Home-page: http://fleetpy.readthedocs.org
Author: Gavin M. Roy
Author-email: gavinmroy@gmail.com
License: BSD
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Communications
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: requests

fleetpy
=======
An opinionated fleet API client for Python.

Usage
-----

.. code:: python

    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)


