Create a single-file version of an HTML file
Project description
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")
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
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
frozen-soup-0.1.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for frozen_soup-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24979f5b7def949ed38fa6ad654f5af0c5a032877a75c8b1d1d2df3f09dcc576 |
|
MD5 | 37b231bcccca930fd81a6b8b2d2c51a9 |
|
BLAKE2b-256 | 5570780b098f76965f16e4555c78113af006599396e1cdb081b97d9f61b3b369 |