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.0.0.tar.gz (125.0 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.0.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pagesmith-2.0.0.tar.gz
Algorithm Hash digest
SHA256 eea936e6712760dac3564cd3bf557094d6bebe97e35ddd8d08ab4e4824e99bb9
MD5 9f3b440cc2a26827f1ff6ace44f49920
BLAKE2b-256 c89b5b758a74019c13bed95018fdce55b019634dff90c327ca53ec582d10f8f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pagesmith-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98085d324d1dd90ac73110e31850e0a4c7a604a342672ce101e38ab3dc04f1a1
MD5 a09b86c8b111a877bf811897d8fec101
BLAKE2b-256 2b12d04db2c485ed4f937ebcf0435ecee2c26da77916428e79be82237e1ff35b

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