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.0.tar.gz (3.5 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.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pawser-0.3.0.tar.gz
  • Upload date:
  • Size: 3.5 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.0.tar.gz
Algorithm Hash digest
SHA256 c1c723de65f8ab16857e925c1d133163f1f4948b6ab9ee16476cd38b819b8702
MD5 986000d41ac665fe8026eeabd70929c3
BLAKE2b-256 e37d299d5d54cbac3764b269b996715c3f3607f3bdcebe5ed340421e5143e366

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pawser-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c230213b1c2785b2deb3404bce457cd219db4afbaf68de956f256aaadbb261c
MD5 c49768160506812726732288371fb7d5
BLAKE2b-256 1529b0449a354ca4dac4286c9ad93b4029442bb1c49348b641c2f74553fdc2a6

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