Skip to main content

Simple client for A10 load balancers

Project description

A simple Python client for A10 load balancers

WARNING - This is pre-alpha software and subject to breaking changes and/or bugs.

Warthog is a simple Python client for interacting with A10 load balancers. The target use case is for safely removing servers from pools in a load balancer during a deployment.

Since the target use case is only aimed at deployments, Warthog supports far fewer types of operations than something like the official client.

Features

  • Waiting for servers to finish all requests when being disabled

  • Graceful handling of transient errors with optional retry logic

  • Support for interacting with the load balancer API using SSL

  • Python 2.6 – 3.4

  • Thread safety

Installation

To install Warthog, simply run:

$ pip install warthog

Usage

Using the client is easy!

from warthog.api import WarthogClient

client = WarthogClient('https://lb.example.com', 'user', 'password')

client.disable_server('app1.example.com')
# Install something on the server or restart your application
client.enable_server('app1.example.com')

# Or, use the client as a context manager!

with client.disabled_context('app1.example.com'):
    # install something on the server or restart your application
    pass

See the docs for more information.

Documentation

Documentation is available at https://warthog.readthedocs.org/

Changes

The change log is available at https://warthog.readthedocs.org/en/latest/changes.html

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

warthog-0.1.0.tar.gz (19.9 kB view hashes)

Uploaded Source

Supported by

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