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.2.tar.gz (4.7 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.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pawser-0.3.2.tar.gz
  • Upload date:
  • Size: 4.7 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.2.tar.gz
Algorithm Hash digest
SHA256 a8fe3382a4eeee2d3e05b9110c34f6efc8c79242ec2fda0f1683859786469cf8
MD5 2d9cf4c9ffbee777b7c8094f903c7059
BLAKE2b-256 6394072b3f979124b517c85a1df16502fd98b6510f5070928b83027ff4f76fb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pawser-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aee0a4e0239fe502032ffe1c24e8bd01dd1e4bf5d0558733010c07d1b184d7f3
MD5 483d16f851eec8ee152763f3904baa6b
BLAKE2b-256 05c9bc15f393f8dce20c66f64a27a82e1ef25984c0613197aefd3539fb3f7b4d

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