Simple client for A10 load balancers
Project description
WARNING - This is beta 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. 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
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
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')
# Or, use the client as a context manager!
with client.disabled_context('app1.example.com'):
install_my_project('app1.example.com')
See the docs for more information.
Code
The source code is available at https://github.com/smarter-travel-media/warthog
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for warthog-0.7.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74a9e141fd7bf3a35a400410414fa6b6b75ba32e7f8daaa88932e1da75e275f5 |
|
MD5 | f238f34f0e3f3eecb3b2df7ea945d744 |
|
BLAKE2b-256 | d91a74353cd4d859ffa986ae46bc38599f7217d672f759f0355253e1475084a9 |