Skip to main content

Simple client for A10 load balancers

Project description

https://travis-ci.org/smarter-travel-media/warthog.png?branch=master

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

  • Works with Python 2.6, 2.7, 3.3, and 3.4+

  • 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.org/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.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.10.0.tar.gz (177.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

warthog-0.10.0-py2.py3-none-any.whl (29.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file warthog-0.10.0.tar.gz.

File metadata

  • Download URL: warthog-0.10.0.tar.gz
  • Upload date:
  • Size: 177.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for warthog-0.10.0.tar.gz
Algorithm Hash digest
SHA256 0def00a1267df35d815742d0abf8b3595f68248c2373ef25b19185c2780916bb
MD5 4d591cb2190691a3d485ad9fcbab9f02
BLAKE2b-256 18c6ddb2577654ae1a3418b3b36fdfc2e499e4ff230416ce98b909e4f5f98b41

See more details on using hashes here.

File details

Details for the file warthog-0.10.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for warthog-0.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 75dfb2ecb7b55212c19f5f06e94f1e988946de658421d91c5bf1c2bd562cd73c
MD5 8d98260a3850504bfb36cfa78e0369e4
BLAKE2b-256 db2e0d2895727727a9fd85231ba9b7d276f47440bc69be8470831e147d8dc0d3

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