Simple Python interface for the Varnish management port
Project description
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
File details
Details for the file python-varnish-0.1.tar.gz
.
File metadata
- Download URL: python-varnish-0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48f1eaa527c94da6dadcb98352c30df9f234b40e72665ab9bc9971bbd8b10685 |
|
MD5 | 805cecc62783f7230f584ce4dbad4d84 |
|
BLAKE2b-256 | ddfff4683deb4bc7f2849c656b8970246491b30c2d22346b2c06f4ecf5533245 |