Skip to main content

xtxt (Python)

Parser, validator, extractor and HTML renderer for the XTXT plain-text document format. Pure Python, no dependencies.

import xtxt

res = xtxt.parse_file("notes.xtxt")
for issue in xtxt.validate(res.doc):
    print(issue.line, issue.severity, issue.message)

data = xtxt.extract(res.doc)      # outline, tasks, blocks, links, media, code
html = xtxt.render_html(res.doc, full=True)
python -m xtxt extract notes.xtxt

This is a port of the Go reference implementation, not a binding. Both are checked against the same fixtures in conformance/.

Download files

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

Source Distribution

xtxt-0.3.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

xtxt-0.3.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file xtxt-0.3.0.tar.gz.

File metadata

  • Download URL: xtxt-0.3.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xtxt-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b3cd6084a0e6edb02a02c2fab2ffa249251715f219eb5acc19a0705b70423420
MD5 599a68bd9bfb6a038ac81537856bd104
BLAKE2b-256 ff8a88a2802b950176e8e56742d5f63f90f82fb419d5c2850516bc53127da059

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtxt-0.3.0.tar.gz:

Publisher: release.yml on SaiMouli3/xtxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xtxt-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: xtxt-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xtxt-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 704cc00f5f3d5771ae0385baa681d5bef5c348c38a7dbe4ad24d4e345c811591
MD5 a309c6354bab588dbf8f0d5be01c46f4
BLAKE2b-256 e93e7b9e33c0f831c7ead32f567dd4c3b3f1ba4548074e3535ed56504716dff6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtxt-0.3.0-py3-none-any.whl:

Publisher: release.yml on SaiMouli3/xtxt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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