frozen-soup
Frozen Soup is a Python library for creating a single-file version of an HTML file by pulling in required external resources and in-lining them.
Built with Python using:
Inspired by (but not based on) SingleFile.
Created by Jim Winstead in March 2024.
Installation
Install this library using pip:
pip install frozen-soup
Usage
python -mfrozen_soup https://www.example.com
import frozen_soup
output = freeze_to_string("https://www.example.com")
This will serve up a single-file HTML version of the URL supplied. (This is not even vaguely appropriate for production use, but handy for testing.)
$ python -mfrozen_soup.server
Server started http://localhost:8080
$ curl -s http://localhost:8080/https://www.example.com
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd frozen-soup
python -m venv .venv
source .venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for frozen-soup 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| frozen-soup-0.5.tar.gz | 11.3 kB | Without provenance | Details for frozen-soup-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| frozen_soup-0.5-py3-none-any.whl | Python 3 | none | any | Details for frozen_soup-0.5-py3-none-any.whl |
Total release size: 21.8 kB
Release files / frozen-soup-0.5.tar.gz
| Download URL | frozen-soup-0.5.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d668302b8f0ed0e203ad5a85a4c49425df3ec22d047cd59fe5985bea1f9e3bc5
|
|
BLAKE2b-256 checksum How to use checksums |
a62ac3342461ea9641143cb51d7964f24474fa9e770acd2143e5a8aefd622ea0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / frozen_soup-0.5-py3-none-any.whl
| Download URL | frozen_soup-0.5-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
751abecd9028132f25fe23c0a17b6c4fbf21dcb5f2ca819745c925f683f853ed
|
|
BLAKE2b-256 checksum How to use checksums |
a1e3347395ed6f95824a0e8490c15c4380d1fa37b79b755195f481cd1042ae1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for frozen-soup 0.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.