Skip to content

Commit 3139148

Browse files
committed
Merge branch 'master' of github.com:clauspruefer/python-xml-microparser
2 parents 8df9f1d + d973dfd commit 3139148

File tree

5 files changed

+61
-21
lines changed

5 files changed

+61
-21
lines changed

README.md

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1-
# python-xml-microparser
2-
3-
A lightweight XML Parser written in Python for basic XML parsing and manipulation of XML documents.
1+
# Python XML-Microparser Module
2+
3+
The **python-xml-microparser** module is a small OOP based XML Parser without DTD and SAX functionality.
4+
5+
## 1. Documentation
6+
7+
Documentation including examples can be found at either [./doc](./doc) or [https://pythondocs.webcodex.de/xml-microparser/](https://pythondocs.webcodex.de/xml-microparser/).
8+
9+
## 2. Installation
10+
11+
Most Linux Distributions come with already Python3 met dependencies (see **2.1**). Just download the Relase Tarball [link](link) and continue with section **2.2**.
12+
13+
## 2.1. Dependencies
14+
15+
You need the `pip3` Python3 Package Installer, Python3 Setuptools `python3-setuptools` and the downloaded XML-Microparser
16+
Package found under Releases.
17+
18+
```bash
19+
# apt-get install python3-setuptools python3-pip
20+
```
21+
22+
>[!IMPORTANT]
23+
> The following section describes how to install the XML-Microparser package globally. Newer PIP Package Manager Versions forbid this.
24+
> It is possible to override by providing the `--break-system-packages` flag.
25+
26+
## 2.2. Non-Restrictive PIP Install
27+
28+
Do this for a pip system where `--break-system-packages` is not needed.
29+
30+
```bash
31+
# sudo pip3 install dist/xmlmicroparser-0.50b0.tar.gz
32+
```
33+
34+
## 2.3. Restrictive PIP Install
35+
36+
Do this for a pip system where `--break-system-packages` is needed.
37+
38+
```bash
39+
# sudo pip3 install dist/xmlmicroparser-0.50b0.tar.gz --break-system-packages
40+
```
41+
42+
## 3. Boost Python
43+
44+
Using the XML-Microparser Module with Boost Python C++ https://www.boost.org/doc/libs/1_86_0/libs/python/doc/html/index.html
45+
makes XML configuration handling in C++ projects easy.
46+
47+
See @ https://github.com/WEBcodeX1/http-1.2/.

setup.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,26 @@
22

33
setup(
44

5-
name = 'python-xml-microparser',
6-
version = '0.53beta',
5+
name = 'xmlmicroparser',
6+
version = '0.54beta',
77
author = 'Claus Prüfer',
88
author_email = '[email protected]',
99
maintainer = 'Claus Prüfer',
10-
description = 'A tiny, plain xml parser without XSLT/DTD capability.',
11-
url = 'http://python-xml-microparser.docs.webcodex.de',
10+
description = 'A tiny xml parser without DTD/XSLT/SAX functionality.',
1211
license = 'GPLv3',
13-
long_description = open('./README.rst').read(),
12+
long_description = open('./README.md').read(),
1413

1514
packages = [
16-
'xml_microparser'
15+
'xmlmicroparser'
1716
],
1817

1918
package_dir = {
20-
'xml_microparser': 'src/'
19+
'xmlmicroparser': 'src/'
2120
},
2221

22+
install_requires = [
23+
],
24+
2325
zip_safe = True
2426

2527
)

src/helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
# . XML Microparser Python Module .
33
# ]*[ --------------------------------------------------------------------- ]*[
44
# . .
5-
# . Copyright Claus Prüfer 2016-2019 .
5+
# . Copyright Claus Prüfer 2016-2024 .
66
# . .
77
# . XML Parser Helper classes .
88
# . .
99
# ]*[ --------------------------------------------------------------------- ]*[
1010

11-
# -*- coding:utf-8 -*-
12-
1311
import logging
1412

1513

src/microparser.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
# . XML Microparser Python Module .
33
# ]*[ --------------------------------------------------------------------- ]*[
44
# . .
5-
# . Copyright Claus Prüfer 2016-2019 .
5+
# . Copyright Claus Prüfer 2016-2024 .
66
# . .
77
# . Lightweight XML Parser and JSON Transformer Module .
88
# . .
99
# ]*[ --------------------------------------------------------------------- ]*[
1010

11-
# -*- coding:utf-8 -*-
12-
1311
import re
1412
import json
1513
import logging
1614

17-
from xml_microparser.transformer import JSONTransformer
18-
from xml_microparser.helper import Looper
15+
from xmlmicroparser.transformer import JSONTransformer
16+
from xmlmicroparser.helper import Looper
1917

2018

2119
class Parser():

src/transformer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
# . XML Microparser Python Module .
33
# ]*[ --------------------------------------------------------------------- ]*[
44
# . .
5-
# . Copyright Claus Prüfer 2016-2019 .
5+
# . Copyright Claus Prüfer 2016-2024 .
66
# . .
77
# . XML Parser JSON Transformer Module .
88
# . .
99
# ]*[ --------------------------------------------------------------------- ]*[
1010

11-
# -*- coding:utf-8 -*-
12-
1311
import json
1412
import logging
1513

0 commit comments

Comments
 (0)