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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pawser-0.3.1.tar.gz
  • Upload date:
  • Size: 3.4 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.1.tar.gz
Algorithm Hash digest
SHA256 0cf35585bbb3238bacb992b0a93e06bd9e9314b5a1ca8154111d5b2fc40cac83
MD5 a5f3400cc4c91fc6aff461c8d523ea37
BLAKE2b-256 a815e5aad8cd447cb9d85325a73d9b6d735528ef278a607bac0e7bcbe128157b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pawser-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20d22dd268735592507ad68d876f34bf86ebea28b7a4dfb3f041eb9673c7842f
MD5 7683ff6eaba21a9eb5306050c9651588
BLAKE2b-256 fb7fca30ced04a346ffcabd3136bfa695c574ecc76ec75363f8ba301ae683b6a

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