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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pawser-0.2.0.tar.gz.
File metadata
- Download URL: pawser-0.2.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22dc59a2b6e98de27b1d8c797d7eec805e155ba2878883c7df409b9adb4b068b
|
|
| MD5 |
c7a3afb26af89493bb98c7f8b658eb6c
|
|
| BLAKE2b-256 |
3d8747c1e01ed913f3e23605ad53dc67f70cfef044c3dbd20011e6a265e5ddfc
|
File details
Details for the file pawser-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pawser-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bced2e5473f5e85c862944ca3d6e46c23145478cecad0fb07bdf1c73b54c5e13
|
|
| MD5 |
e4fc82038620e45d2c0f531845ab3cee
|
|
| BLAKE2b-256 |
06cea062229415938a5b2cb21dd134c6de8b18fb0324a18c574ff91f3bdf0393
|