GitHunt
SE

sethmlarson/hstspreload

Chromium HSTS Preload list as a Python package and updated daily.

hstspreload

Version
Downloads
CI

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. Changes to the HSTS Preload list can be seen in the history of that file.

License

BSD-3

Languages

Python97.2%Shell2.8%

Contributors

BSD 3-Clause "New" or "Revised" License
Created July 25, 2019
Updated March 1, 2026
sethmlarson/hstspreload | GitHunt