Skip to main content

Guard

https://travis-ci.org/dstufft/guard.png?branch=master https://coveralls.io/repos/dstufft/guard/badge.png?branch=master

Guard is a collection of generic WSGI middlewares and utilities for improving the security of a web application.

Content Security Policy

guard.ContentSecurityPolicy provides a WSGI middleware that can be used to provide a content security policy for a web application.

Usage

import guard, wsgi_app

# Default Policy
app = guard.ContentSecurityPolicy(wsgi_app.application)

# Custom Directives
app = guard.ContentSecurityPolicy(wsgi_app.application, {"img-src": ["*"]})

# Report Only
app = guard.ContentSecurityPolicy(wsgi_app.application, report_only=True)

Metadata

Release files for guard 1.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 guard 1.0.1
File Size Uploaded Provenance
guard-1.0.1.tar.gz 3.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / guard-1.0.1.tar.gz

Download URL guard-1.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cce6ce567dabf58bb51215766ac82dfcdb7bd8ac0474917d60d7d6d7f0082bce
BLAKE2b-256 checksum
How to use checksums
d16b1bb7366192cd0b169823fda849811b1b35e2cdec052c66e6c138a7a06a87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / guard-1.0.1-py2.py3-none-any.whl

Download URL guard-1.0.1-py2.py3-none-any.whl
Size 3.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
311c3bccad87dbd87619dd38dd7784129be3687ac9dafadf30a849d9978e1718
BLAKE2b-256 checksum
How to use checksums
6224488dbf2bbb56596ce62580ce9676bb2081fef8fcbe22c953cbdda76e2abf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for guard 1.0.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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