# Python client and module for querying .well-known/security.txt files
Give it a domain, it tries to fetch the security.txt file
## Installation
```bash
pip install pysecuritytxt
```
## Usage
### Command line
You can use the `pysecuritytxt` command:
```bash
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](https://pysecuritytxt.readthedocs.io/en/latest/api_reference.html)
Raw data
{
"_id": null,
"home_page": "https://github.com/Lookyloo/pysecuritytxt",
"name": "pysecuritytxt",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Rapha\u00ebl Vinot",
"author_email": "raphael.vinot@circl.lu",
"download_url": "https://files.pythonhosted.org/packages/c8/0f/a265421f2b2fd2f09e0eace134c8d5e4f9aec8f57548648aee647777f6cb/pysecuritytxt-1.3.0.tar.gz",
"platform": null,
"description": "# Python client and module for querying .well-known/security.txt files\n\nGive it a domain, it tries to fetch the security.txt file\n\n## Installation\n\n```bash\npip install pysecuritytxt\n```\n\n## Usage\n\n### Command line\n\nYou can use the `pysecuritytxt` command:\n\n```bash\nusage: pysecuritytxt [-h] [-p] url_or_domain\n\nTry to get a security.txt file\n\npositional arguments:\n url_or_domain Try to get the file from there.\n\noptions:\n -h, --help show this help message and exit\n -p, --parse Parse the response, returns dict\n```\n\n### Library\n\nSee [API Reference](https://pysecuritytxt.readthedocs.io/en/latest/api_reference.html)\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Python CLI and module for querying security.txt files on domains.",
"version": "1.3.0",
"project_urls": {
"Documentation": "https://pysecuritytxt.readthedocs.io/en/latest/index.html",
"Homepage": "https://github.com/Lookyloo/pysecuritytxt",
"Repository": "https://github.com/Lookyloo/pysecuritytxt"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fae7427d0392400c29cae55b847ecf23eef1b6cfc8076d01e880b4381bc31373",
"md5": "0a0938e760161c6e5f13b2ecd3e1a176",
"sha256": "9e4eb6b4fdca8f8471c80696c4d7642be24d44c8c3f627870ca9b7bd3f221cd5"
},
"downloads": -1,
"filename": "pysecuritytxt-1.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0a0938e760161c6e5f13b2ecd3e1a176",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 5757,
"upload_time": "2024-03-02T23:29:01",
"upload_time_iso_8601": "2024-03-02T23:29:01.375246Z",
"url": "https://files.pythonhosted.org/packages/fa/e7/427d0392400c29cae55b847ecf23eef1b6cfc8076d01e880b4381bc31373/pysecuritytxt-1.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c80fa265421f2b2fd2f09e0eace134c8d5e4f9aec8f57548648aee647777f6cb",
"md5": "b6d56747c9c7481220956f26cf9d52e9",
"sha256": "3669be69e90672ed0d448b385e5fef49cb3a6a611d7e386d673c4f0e1cc3e83b"
},
"downloads": -1,
"filename": "pysecuritytxt-1.3.0.tar.gz",
"has_sig": false,
"md5_digest": "b6d56747c9c7481220956f26cf9d52e9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 4830,
"upload_time": "2024-03-02T23:29:03",
"upload_time_iso_8601": "2024-03-02T23:29:03.068933Z",
"url": "https://files.pythonhosted.org/packages/c8/0f/a265421f2b2fd2f09e0eace134c8d5e4f9aec8f57548648aee647777f6cb/pysecuritytxt-1.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-02 23:29:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Lookyloo",
"github_project": "pysecuritytxt",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pysecuritytxt"
}