Skip to main content

Small, Tiny Python XML Parser Module

Project description

Python XML-Microparser Module

The python-xml-microparser module is a small OOP based XML Parser without DTD / XSLT / SAX functionality.

1. Documentation

Documentation including examples can be found at either ./doc or https://pythondocs.webcodex.de/xml-microparser/.

2. Installation

# pip install xmlmicroparser

Or download the current Relase Zip / Tarball @ Release 0.54Beta and continue with section 2.2.

2.1. Dependencies

You need Python3 setuptools to build the package manually. Pytest / PEP-8 packages are required to run tests.

# apt-get install python3-setuptools python3-pip python3-pytest python3-pytest-pep8

[!IMPORTANT]
The following section describes how to install the XML-Microparser package globally. Newer PIP Package Manager Versions forbid this. It is possible to override by providing the --break-system-packages flag.

2.2. Non-Restrictive PIP Install

Do this for a pip system where --break-system-packages is not needed.

# sudo pip3 install ./python-xml-microparser-0.54beta.tar.gz

2.3. Restrictive PIP Install

Do this for a pip system where --break-system-packages is needed.

# sudo pip3 install ./python-xml-microparser-0.54beta.tar.gz --break-system-packages

3. Build Manually

Clone git repository and change dir.

# git clone https://github.com/clauspruefer/python-xml-microparser.git
# cd python-xml-microparser

3.1. Build As Non-Root-User

Build python-package with setup-tools (as non root user). This will generate the installabe tarball into ./dist/xmlmicroparser-0.55b0.tar.gz.

# python3 setup.py sdist

3.2. Install As Root-User

# sudo pip3 install ./dist/xmlmicroparser-0.55b0.tar.gz --break-system-packages

4. Run Tests / Pytest

# pytest

5. Example Usage / Boost::Python

Using the XML-Microparser Module with Boost Python C++ https://www.boost.org/doc/libs/1_86_0/libs/python/doc/html/index.html makes XML configuration handling in C++ projects easy.

See @ https://github.com/WEBcodeX1/http-1.2/.

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

xmlmicroparser-0.55b0.tar.gz (21.3 kB view details)

Uploaded Source

File details

Details for the file xmlmicroparser-0.55b0.tar.gz.

File metadata

  • Download URL: xmlmicroparser-0.55b0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for xmlmicroparser-0.55b0.tar.gz
Algorithm Hash digest
SHA256 840bdaa590261246d9449b4da94f493962e0f6627f88ba7807fd0b387a835b46
MD5 2180a9f2ec1bf94b9eabc3edde5e6c62
BLAKE2b-256 9845435803c18c000ea4446d22dc1fb46a865ac144cfa873892318a64af36b5d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page