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.3.4.tar.gz (4.9 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.3.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pawser-0.3.4.tar.gz
Algorithm Hash digest
SHA256 35b951b4207a141dced8d8ed7360c914e5c45a230f9002de0b4fc64573c7a197
MD5 9cc15d9d515035fe70e21857f0e84806
BLAKE2b-256 ebe63a24413fcbeed2156095cab1b44af2dfa8b698025b670902be7eea3281dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pawser-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3ff54e496f927fa768dd910fe9b74e670dd3d443533bf9596d63a64f0053aa6d
MD5 d97389adf1b09eebec6d1505a09d9651
BLAKE2b-256 64f05c320046939664a959202381982f492b137a70562f00c56d7ff1712212b6

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