A package for finding and parsing security.txt files
Project description
SecurityTXT
SecurityTXT is a simple security.txt library.
>>> from securitytxt import SecurityTXT
>>> sec = SecurityTXT.from_url("adobe.com")
>>> sec.contact
['https://hackerone.com/adobe', 'mailto:psirt@adobe.com']
>>> sec.signature
'iQIzBAEBCAAdFiEEqvs1Pw7pNc/gvcvRX9Oj3XV3pEYFAmEBhSgACgk...'
>>> sec.expired
False
SecurityTXT allows you to easily retrieve, parse and manipulate security.txt files. It tries to follow the latest
draft RFC as closely as possible, while it still
parses security.txt files that contain minor mistakes. The package aims to be well-documented, thereby easy to use in
combination with pydoc.
Installation
SecurityTXT is available on PyPI:
$ python -m pip install wellknown-securitytxt
The package has only been tested with Python 3.6.8+
Supported Features & Best–Practices
The package has been build to support easy and automated retrieval and parsing of security.txt files. Therefore, features include:
- Automated searching for security.txt files on specified host.
- Signature parsing for signed files.
- Allows for parsing unknown fields and comments that are present in security.txt file.
- Automated validity tests for parsed security.txt files.
- Every class and function is fully documented.
Soon to be implemented:
fail_silently: if a file format is invalid, continue parsing the rest of the lines instead of raising an error.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wellknown-securitytxt-0.9.8.tar.gz.
File metadata
- Download URL: wellknown-securitytxt-0.9.8.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4d03fc5f7d2786b7a5f4d45fea53f6535276c47a3348e86c2770185c88c7ec6
|
|
| MD5 |
134849d63bf15f40519722cb627903ef
|
|
| BLAKE2b-256 |
bfebe97cbde4abd199d4d5125064f52fc3e13756776a50deacd13e6593031f45
|
File details
Details for the file wellknown_securitytxt-0.9.8-py3-none-any.whl.
File metadata
- Download URL: wellknown_securitytxt-0.9.8-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d0bfee14ab58366daef99f1dd1c0e51b8657c0b9818f1aafb170d794d1909d3
|
|
| MD5 |
4f9c0af2c886baf90a576c9bb80d4114
|
|
| BLAKE2b-256 |
32db7acd634fc68eb55215427891787b2513720c90ee9e0984703335eec4a243
|