Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xmlmicroparser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlmicroparser

A tiny xml parser without DTD/XSLT/SAX functionality.

  • 1.0rc1
  • PyPI
  • Socket score

Maintainers
1

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

# pip install xmlmicroparser

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

[!NOTE] Since Python 3.3 (PEP 405) Virtual Environments are proposed.

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 prohibit this by default. 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 ./xmlmicroparser-1.0rc1.tar.gz

2.3. Restrictive PIP Install

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

# sudo pip3 install ./xmlmicroparser-1.0rc1.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-1.0rc1.tar.gz.

# python3 setup.py sdist

3.2. Install As Root-User

# sudo pip3 install ./dist/xmlmicroparser-1.0rc1.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.

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc