Skip to main content

Simple client for A10 load balancers

Project description

https://travis-ci.org/smarter-travel-media/warthog.png?branch=master https://img.shields.io/pypi/v/warthog.svg

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. It is available under the MIT license.

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
  • Works with Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6+
  • Thread safety

Installation

To install Warthog, simply run:

$ pip install warthog

Dependencies

  • requests by Kenneth Reitz, version 2.6 or higher
  • click by Armin Ronacher, version 3.3 or higher

Usage

Using the client is easy!

from warthog.api import WarthogClient

def install_my_project(server):
    pass

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

client.disable_server('app1.example.com')
install_my_project('app1.example.com')
client.enable_server('app1.example.com')

See the docs for more information.

Documentation

The latest documentation is available at https://warthog.readthedocs.io/en/latest/

Source

The source code is available at https://github.com/smarter-travel-media/warthog

Download

Python packages are available at https://pypi.python.org/pypi/warthog

Changes

The change log is available at https://warthog.readthedocs.io/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.

Filename, size & hash SHA256 hash help File type Python version Upload date
warthog-2.0.1-py2.py3-none-any.whl (30.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jul 20, 2017
warthog-2.0.1.tar.gz (180.1 kB) Copy SHA256 hash SHA256 Source None Jul 20, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page