Skip to main content
Author:

Justin Quick <justquick@gmail.com>, Sandy Walsh <github@darksecretsoftware.com>

Version:
0.2
pip install python-varnish==0.2.1

If you are running a version of varnish older than 3.0 then install python-varnish==0.1.2 instead.

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('ping')
manager.run('ban.url ^/secret/$')
manager.run('ban.list')
manager.run('purge.url', 'http://mydomain.com/articles/.*')
manager.close()

Testing:

python runtests.py

Metadata

Release files for python-varnish 0.2.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 python-varnish 0.2.1
File Size Uploaded Provenance
python-varnish-0.2.1.tar.gz 6.2 kB Without provenance Details

Release files / python-varnish-0.2.1.tar.gz

Download URL python-varnish-0.2.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
320ac8f6172c942a8e67efa4e75759b9be2969c7ead0b81d0a255bacec96c370
BLAKE2b-256 checksum
How to use checksums
0ea345f1844d028fb13242eedb32920b84f5e1966bd1b3745d097ab7e1970fc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-varnish 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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