Skip to main content

A Python module for parsing and rendering PawML

Project description

Pawser

Pawser is a lightweight Python parser for PAWML (Pawso Markup Language).
It allows you to read, parse, and traverse .pawml files as a tree of nodes.

Installation

Install via pip through PyPI

pip install pawser

This is the most common method, however if you do not have pip and/or would like to download this without or for other reasons, you can;

Clone the repository and install locally:

git clone https://github.com/komoriiwakura/pawser
cd pawser
pip install -e .

Example

from pawser import parsePawml, printTree, pawml2domtree

# Parse and print the PAWML file
tree = parsePawml("example.pawml")
printTree(tree)

# Get the DOM tree for programmatic use
dom = pawml2domtree("example.pawml")

Project details


Download files

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

Source Distribution

pawser-0.2.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

pawser-0.2.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pawser-0.2.1.tar.gz.

File metadata

  • Download URL: pawser-0.2.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pawser-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a852d63598c562b655bf64316cfd524681b2be0000357b041f32320e5cb49084
MD5 8b1f8000f9565050b810ca5c40439688
BLAKE2b-256 d173d1742289db02f6ca3d4b58b1a3049e477a2f995856fb69519f2a457b1768

See more details on using hashes here.

File details

Details for the file pawser-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pawser-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for pawser-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 979a7cedc4899da51f33075c45b0e4c578a390c5c8f9be86c648c7fb5d60fa91
MD5 92282deb749f59a486d72050fe81b745
BLAKE2b-256 0a77eeab591351f96d308a1b9c590b78b868db279c3c49af7292b60799ad98c6

See more details on using hashes here.

Supported by

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