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-2.1.0.tar.gz (125.1 kB view details)

Uploaded Source

Built Distribution

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

pagesmith-2.1.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pagesmith-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a0f327bc7c753fc67cc8470cbfb342c8a696dfcd15d22518ed7541da21922282
MD5 b8d814d4a4ad25c900dc7c35ed1a9a05
BLAKE2b-256 bbfe2fb302418861b2f33eb70a7bfc041e8393b6c9a75dc8ecb1dcb29cd4c377

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pagesmith-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f562f857685f9e6df599212e46b2bad2cf2f058de9fc3b716cb981444f47d9
MD5 e7a632dfc66ab5670e1e290ab3d1ecff
BLAKE2b-256 757dc0633dbe70c57bc67a818417c65491d212e1c49faac8accd49d157989d82

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