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.2.0.tar.gz (11.1 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.2.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xtxt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 713d17021c81de3437f699b31f531bfdc3ec6c9a387b79295ead639aaa834a0b
MD5 29e8732d71277a1f78fb9bb2167dd21e
BLAKE2b-256 691c019a7815d1dc4cab05997172b9f63c21c5bd7a0f42af35e76384f6fd37a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtxt-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: xtxt-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce25a247121193072adf1c77cfa7a8c9da57d4db9a956f9ff8cf482dc33deb4a
MD5 f5eeee282c197257264d0bb9163d1566
BLAKE2b-256 ee35691d1a84f21ca65bc633cd4665130230dc7f97a2dddbbf3fd7fb3cd7a7f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for xtxt-0.2.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