Skip to main content

HTML page splitter (preserves tags), text page splitter (natural breaks), and chapter detector for pure text.

Project description

Build Status Coverage

pagesmith

Splitting HTML into pages, preserving HTML tags while respecting the original document structure. Utilize blazingly fast lxml parser.

Splitting pure text into pages at natural break points such as paragraphs or sentences.

Detect chapters in pure text to create a Table of Contents.

Documentation

Pagesmith

Developers

Do not forget to run . ./activate.sh.

For work it need uv installed.

Use pre-commit hooks for code quality:

pre-commit install

Allure test report

Scripts

Install invoke preferably with pipx:

pipx install invoke

For a list of available scripts run:

invoke --list

For more information about a script run:

invoke <script> --help

Coverage report

Created with cookiecutter using template

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

pagesmith-1.5.0.tar.gz (115.7 kB view details)

Uploaded Source

Built Distribution

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

pagesmith-1.5.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file pagesmith-1.5.0.tar.gz.

File metadata

  • Download URL: pagesmith-1.5.0.tar.gz
  • Upload date:
  • Size: 115.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pagesmith-1.5.0.tar.gz
Algorithm Hash digest
SHA256 526cc08d0da100fa476c017c11a85fcd9b97d6bfb976f5a3dcbc32010019a1ba
MD5 462bd3b0dc3568318cd1464cf80300bd
BLAKE2b-256 090f55fedaaa4e2ad3250b0f097e96fda8f1656370c1e24cb6967ee5b1ce5371

See more details on using hashes here.

File details

Details for the file pagesmith-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: pagesmith-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pagesmith-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d90f755ed8ccbc5ac41ac63c5dc8938492323617589c91d9c0e6581b182f51ff
MD5 8428249cbb5192c8077668464164ff9b
BLAKE2b-256 46769d9e70e55ba33f9c7a00203fbc29e18ad479340e79a3b2faef70fc173460

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