# hstspreload
[![Version](https://img.shields.io/pypi/v/hstspreload)](https://pypi.org/project/hstspreload)
[![Downloads](https://pepy.tech/badge/hstspreload)](https://pepy.tech/project/hstspreload)
![CI](https://img.shields.io/github/workflow/status/sethmlarson/hstspreload/CI/master)
Chromium HSTS Preload list as a Python package.
Install via `python -m pip install hstspreload`
See https://hstspreload.org for more information regarding the list itself.
## API
The package provides a single function: `in_hsts_preload()` which takes an
IDNA-encoded host and returns either `True` or `False` regarding whether
that host should be only accessed via HTTPS.
## Changelog
This package is built entirely by an automated script running once a month.
If you need a release sooner of the package please reach out and I'll trigger a release manually.
This script gathers the HSTS Preload list by monitoring
[this file in the Chromium repository](https://chromium.googlesource.com/chromium/src/+/main/net/http/transport_security_state_static.json). Changes to the HSTS Preload list can be seen in the history of that file.
## License
BSD-3
Raw data
{
"_id": null,
"home_page": "https://github.com/sethmlarson/hstspreload",
"name": "hstspreload",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Seth Michael Larson",
"author_email": "sethmichaellarson@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/6e/8b/ab15856d5074acc26782994ee35b27a822738d3c8d84995a2ab0a085931a/hstspreload-2025.1.1.tar.gz",
"platform": null,
"description": "# hstspreload\n\n\n[![Version](https://img.shields.io/pypi/v/hstspreload)](https://pypi.org/project/hstspreload)\n[![Downloads](https://pepy.tech/badge/hstspreload)](https://pepy.tech/project/hstspreload)\n![CI](https://img.shields.io/github/workflow/status/sethmlarson/hstspreload/CI/master)\n\nChromium HSTS Preload list as a Python package.\n\nInstall via `python -m pip install hstspreload`\n\nSee https://hstspreload.org for more information regarding the list itself.\n\n## API\n\nThe package provides a single function: `in_hsts_preload()` which takes an\nIDNA-encoded host and returns either `True` or `False` regarding whether\nthat host should be only accessed via HTTPS.\n\n## Changelog\n\nThis package is built entirely by an automated script running once a month.\nIf you need a release sooner of the package please reach out and I'll trigger a release manually.\n\nThis script gathers the HSTS Preload list by monitoring\n[this file in the Chromium repository](https://chromium.googlesource.com/chromium/src/+/main/net/http/transport_security_state_static.json). Changes to the HSTS Preload list can be seen in the history of that file.\n\n## License\n\nBSD-3\n",
"bugtrack_url": null,
"license": "BSD-3",
"summary": "Chromium HSTS Preload list as a Python package",
"version": "2025.1.1",
"project_urls": {
"Homepage": "https://github.com/sethmlarson/hstspreload"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "76c387beb45b57c9c418d32aa773a9d0adcf3b91422b7ad1fcc46f9d2b691eed",
"md5": "42851d8e8fc78af60e9e265b970d858a",
"sha256": "02bd5b0885b62f0d5239ca6c6876ffcad8d9c08dc97cee54292598141a16e9dc"
},
"downloads": -1,
"filename": "hstspreload-2025.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "42851d8e8fc78af60e9e265b970d858a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 1303636,
"upload_time": "2025-01-01T00:27:44",
"upload_time_iso_8601": "2025-01-01T00:27:44.510014Z",
"url": "https://files.pythonhosted.org/packages/76/c3/87beb45b57c9c418d32aa773a9d0adcf3b91422b7ad1fcc46f9d2b691eed/hstspreload-2025.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6e8bab15856d5074acc26782994ee35b27a822738d3c8d84995a2ab0a085931a",
"md5": "7e5103f10d23f11b41450eba8d45394e",
"sha256": "346552a807b3a1762376de8ecce097544e7fcd64fb64231b4652da52f86fa6f1"
},
"downloads": -1,
"filename": "hstspreload-2025.1.1.tar.gz",
"has_sig": false,
"md5_digest": "7e5103f10d23f11b41450eba8d45394e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 1301763,
"upload_time": "2025-01-01T00:27:46",
"upload_time_iso_8601": "2025-01-01T00:27:46.306627Z",
"url": "https://files.pythonhosted.org/packages/6e/8b/ab15856d5074acc26782994ee35b27a822738d3c8d84995a2ab0a085931a/hstspreload-2025.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-01 00:27:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sethmlarson",
"github_project": "hstspreload",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "hstspreload"
}