Skip to main content

Python client and module for querying .well-known/security.txt files

Give it a domain, it tries to fetch the security.txt file

Installation

pip install pysecuritytxt

Usage

Command line

You can use the pysecuritytxt command:

usage: pysecuritytxt [-h] [-p] url_or_domain

Try to get a security.txt file

positional arguments:
  url_or_domain  Try to get the file from there.

options:
  -h, --help     show this help message and exit
  -p, --parse    Parse the response, returns dict

Library

See API Reference

Metadata

Release files for pysecuritytxt 1.4.0

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

Source distribution (sdist)

Source distribution for pysecuritytxt 1.4.0
File Size Uploaded Provenance Actions
pysecuritytxt-1.4.0.tar.gz 4.8 kB With provenance Details for pysecuritytxt-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysecuritytxt 1.4.0
File Interpreter ABI Platform Actions
pysecuritytxt-1.4.0-py3-none-any.whl Python 3 none any Details for pysecuritytxt-1.4.0-py3-none-any.whl

Total release size: 10.8 kB

Release files / pysecuritytxt-1.4.0.tar.gz

Download URL pysecuritytxt-1.4.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ae8cb53bad26f8cc134203b460b7ce7bdc9b3ea9b269f437be500ce23bd262aa
BLAKE2b-256 checksum
How to use checksums
6a5f05821e54ddaa9af1f470bf763b673f62fe16b8bc11604e2cbb42c199e473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / pysecuritytxt-1.4.0-py3-none-any.whl

Download URL pysecuritytxt-1.4.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d956c35c0c10f12393ae08547015c8fb3580d91b23d66af2c8ec14950a90dbac
BLAKE2b-256 checksum
How to use checksums
a568afc12ef905cf516680732bfb83bf2808099b7b2f6e5c19a9850c7e874a0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for pysecuritytxt 1.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pysecuritytxt-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

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.

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