Skip to main content

Static Page Inline Decoder of Choice

Project description

stapidoc

v0.1.0
©2023 Jonas Santoso

static page inline decoder of choice

Install

pip install stapidoc

Usage

stapidoc input_file

Resulting document is written to stdout.

Given a static HTML document ('source'), stapidoc creates another HTML document which contains the source as a percent‑and‑base64‑encoded string, along with an inline script that decodes this string and plugs the source's DOM on‑the‑fly upon loading.

The source's <link> elements are plugged into the resulting DOM's <head> separately in order for linked resources to load.

Tacit assumptions:

  • The source document is entirely static. There are no <script> elements in either head or body.
  • The source document uses UTF-8 encoding.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stapidoc-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stapidoc-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file stapidoc-0.1.0.tar.gz.

File metadata

  • Download URL: stapidoc-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0rc1

File hashes

Hashes for stapidoc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9fd3854f073409af129fd5f74157ca5797763e7458e6bc390c54b8fcd3e105d1
MD5 a00b035c60df4d7144efb95a4024064e
BLAKE2b-256 bde2df5f03f454309aa1df331f3a8a9f2ab108976a961ef45c82ab05ebaa5c42

See more details on using hashes here.

File details

Details for the file stapidoc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: stapidoc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0rc1

File hashes

Hashes for stapidoc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f109dca43d2ce5e2ee1317f8c2057fc5311b5f52d961a2e10746d4bb559a27
MD5 0808e51e74b8d01569d6172bd43eb929
BLAKE2b-256 c7c4fa42fb6d60e87edbf1870182015a9004c31127edb2bca20c6fccdb31a077

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page