Python XML-Microparser Module
The Python xmlmicroparser 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
# install via pip
pip install xmlmicroparser
Or download the current Release Zip / Tarball @ Release 1.0rc1 and continue with section 2.2.
[!NOTE] Since Python 3.3 (PEP 405) Virtual Environments are proposed.
# setup virtual-env
python3 -m venv .xml-microparser
#activate virtual-env
source .xml-microparser/bin/activate
# upgrade pip
python3 -m pip install --upgrade pip
# install xmlmicroparser module
pip3 install xmlmicroparser
2.1. Dependencies
You need Python3 setuptools to build the package manually. Pytest / PEP-8 packages are required to run tests.
# install base dependencies
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 prohibit this by default. It is possible to override by providing the
--break-system-packagesflag.
2.2. Non-Restrictive PIP Install
Do this for a pip system where --break-system-packages is not needed.
# install local pip
sudo pip3 install ./xmlmicroparser-1.0rc1.tar.gz
2.3. Restrictive PIP Install
Do this for a pip system where --break-system-packages is needed.
# install local pip
sudo pip3 install ./xmlmicroparser-1.0rc1.tar.gz --break-system-packages
3. Build Manually
Clone git repository and change dir inside.
# clone and cd into repo
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 installable tarball
into ./dist/xmlmicroparser-1.0rc1.tar.gz.
# build source distribution
python3 setup.py sdist
3.2. Install As Root-User
# install via pip
sudo pip3 install ./dist/xmlmicroparser-1.0rc1.tar.gz --break-system-packages
4. Run Tests / Pytest
# run 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.
Metadata
Release files for xmlmicroparser 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xmlmicroparser-1.0.tar.gz | 21.7 kB | Without provenance | Details for xmlmicroparser-1.0.tar.gz |
Release files / xmlmicroparser-1.0.tar.gz
| Download URL | xmlmicroparser-1.0.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c69728997b61d4ada07fc216474505e29eace89c2e2ff34c475f82bdf44ba46
|
|
BLAKE2b-256 checksum How to use checksums |
f1f3fb2e38e99102a10f87a2789b64d1c154c5cbe7c72c135c765ae2037ef6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for xmlmicroparser 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.