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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xtxt-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8e4a8d9080346b97c3bcf6018eee62d347f9e51c522c1654e2e2a9ef5c5e61f7
MD5 73333175afd0e7c18b6691a3a080f99e
BLAKE2b-256 c81d7376442af53e2f43b17d3bd5ff53e38e8ed0a731c245c1850e5cd101be35

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtxt-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37a77e0da4db883ea79fd505304f82f86614f19683ad16503fdf64c4a236f793
MD5 bfdd4ccde7262275b478a052977e832f
BLAKE2b-256 9adae86ba5033c6080284fe61b03e146ecb50fd2b33667682c91c1bcc3d2f945

See more details on using hashes here.

Provenance

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