Skip to main content

Simple Python interface for the Varnish management port

Project description

Author:

Justin Quick <justquick@gmail.com>,

Version:
0.1
pip install python-varnish==0.1.1

Varnish is a state-of-the-art, high-performance HTTP accelerator. For more information checkout Varnish Site

Varnish provides a simple telnet management interface for doing things like:

  • reloading configurations

  • purging URLs from cache

  • view statistics

  • start and stop the server

This Python API takes full advantage of the available commands and can run across multiple Varnish instances. Here are the features of this python module (compared to python-varnishadm)

  • Uses telnetlib instead of raw sockets

  • Implements threading module

  • Can run commands across multiple Varnish instances

  • More comprehensive methods, closely matching the management API (purge_*, vcl_*, etc.)

  • Unittests

Example:

manager = VarnishManager( ('server1:6082', 'server2:6082') )
manager.run('purge.url', '^/$')
manager.close()

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

python-varnish-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file python-varnish-0.1.1.tar.gz.

File metadata

File hashes

Hashes for python-varnish-0.1.1.tar.gz
Algorithm Hash digest
SHA256 79d94ba8746d26041e9df1170c6cace958f8924dfdfb8da80f59c19d82d304aa
MD5 434185bc39923826610e0860f8fa6ece
BLAKE2b-256 c8aa6acebc1582cac69a0618f0130db0302c1ee68303c96379a777553186751d

See more details on using hashes here.

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