
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
The Python xmlmicroparser module is a small OOP based XML Parser without DTD / XSLT / SAX functionality.
Documentation including examples can be found at either ./doc or https://pythondocs.webcodex.de/xml-microparser.
# 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
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-packages
flag.
Do this for a pip system where --break-system-packages
is not needed.
# install local pip
sudo pip3 install ./xmlmicroparser-1.0rc1.tar.gz
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
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
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
# install via pip
sudo pip3 install ./dist/xmlmicroparser-1.0rc1.tar.gz --break-system-packages
# run pytest
pytest
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.
FAQs
A tiny xml parser without DTD/XSLT/SAX functionality.
We found that xmlmicroparser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.