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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xtxt-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 53745a214b9a401564ed9143b9f196c82633dc9445e22226fb40598b4624dd36
MD5 ae52ebf1328df6231997b2c44f7c832f
BLAKE2b-256 440fe2dfb68802af519108b58d72d32d7eb185e1e49ab3c0198e3feaae969c4a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xtxt-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 faabf44278546db58e639028018efe673b963b355e37ee578f1d0c0ef1561c30
MD5 24e2945e7e06f11a2d2d449e53725b3e
BLAKE2b-256 234603cbec25de04bf27205f109f18f7e7e4349acf9f0cc14705b66aee96d9a1

See more details on using hashes here.

Provenance

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