Skip to main content

Warthog

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

Metadata

Release files for warthog 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for warthog 2.0.1
File Size Uploaded
warthog-2.0.1.tar.gz 180.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for warthog 2.0.1
File Interpreter ABI Platform
warthog-2.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 210.8 kB

Release files / warthog-2.0.1.tar.gz

Download URL warthog-2.0.1.tar.gz
Size 180.1 kB
Tags Source
SHA-256 checksum
How to use checksums
604033e345e77b6141a86b0664e2adf28fc20c1567b8f82f5836058ea1411848
BLAKE2b-256 checksum
How to use checksums
5481c6d73a00335266b35b3440ef59849f829b16254cfb16c294bb13e473d777
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / warthog-2.0.1-py2.py3-none-any.whl

Download URL warthog-2.0.1-py2.py3-none-any.whl
Size 30.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a4c9bd83bfc344233a8cd33b9f8d4ce75a260171dd9142330343162300985a3b
BLAKE2b-256 checksum
How to use checksums
7e2e7f59475517d3db15c2c761f4ef462b76595e0e92f859f4333cf117a9a868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page