Hayasaka saves the rendered HTML as an image.
Project description
hayasaka
Hayasaka saves the rendered HTML as an image.
Use cases
- Save the slides (an HTML file) using reveal.js as an image
⚠️To Run hayasaka, you currently need to have the Firefox browser installed (Google Chrome will be supported in the future).
Installation
$ pip install hayasaka
Usage
📸Generate an image from URL
$ hayasaka-cli https://ftnext.github.io/2022_slides/pyconjp/python_and_star.html python_and_star.png
📸Generate an image from a local HTML file path
$ hayasaka-cli ../2022_slides/build/revealjs/pyconjp/python_and_star.html python_and_star.png
Development environment
$ git clone git@github.com:ftnext/hayasaka.git
$ cd hayasaka
$ python3.11 -m venv venv --upgrade-deps
$ source venv/bin/activate
(venv) $ pip install -e '.[dev]'
(venv) $ task test
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
hayasaka-0.2.0.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file hayasaka-0.2.0.tar.gz
.
File metadata
- Download URL: hayasaka-0.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 380738e78debe125a6ee9b43b3840b78b400c94a3ecbd245317a1b0614ce0438 |
|
MD5 | ebc654bac8e28831991095988df6c4a2 |
|
BLAKE2b-256 | 7b30d4538cd00797262258fbd080d6fc7a6f9e62a73dece01602187bd25aba8e |
File details
Details for the file hayasaka-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: hayasaka-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d55e04e998f11c6172254c1c75264df70e0f28efb99d5453887b0cb43b5023 |
|
MD5 | cb7e96dbe939ca7421b20f47bf2aade9 |
|
BLAKE2b-256 | cb8f8b3f65affe539d036bab351e042c8acf8b3d989cb0922358b93cb9ff7fe5 |