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.1.1.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.1.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xtxt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4c1f0be3dee8826c9923c9f9d25249fd4967281855c2a5a3986785ae46b69525
MD5 68753cb6059baa7882c8c20b90f4135d
BLAKE2b-256 c5e3bc8cd75fbdb15162ce3c4baaff21314e7967a13ce67f30eda3cba1f432d8

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for xtxt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a03104bb5f4b3ed1ef3529df19beb76a0546e4ab11a05bee14a69c4686d2f2d4
MD5 f51dd212145a53f8b162953971a2e74c
BLAKE2b-256 ba7aff2b63c7d9bfb9c7961c2402746f93e34a8d8007d88403743a3944f2b727

See more details on using hashes here.

Provenance

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