A lightweight BOD parsing library for CMP
Project description
CMP Paris Parser (Light)
Une bibliothèque légère et optimisée pour le parsing de documents BOD (Business Object Documents) Infor M3.
Cette version est une extraction de la librairie principale cmpparis, conçue pour être utilisée dans des environnements contraints comme AWS Lambda.
Fonctionnalités
- Parsing XML vers CSV : Transforme les flux XML complexes en structures plates.
- Configuration Flexible : Utilise des fichiers YAML/JSON pour définir les mappings XPath.
- Transformers : +40 fonctions de transformation de données (dates, nombres, chaînes).
- Zéro Dépendance Lourde : Ne dépend que de
pyyaml. Pas de pandas, boto3, ou drivers DB.
Installation
pip install cmpparis-parser
Utilisation Rapide
from cmpparis_parser import BODParser, BODConfigLoader
# 1. Charger la configuration
config = BODConfigLoader.from_yaml("config.yaml")
# 2. Parser le contenu XML
parser = BODParser()
csv_output = parser.parse_and_convert(xml_content, config)
# 3. Utiliser le CSV
print(csv_output)
Documentation
Documentation complète disponible sur : http://cmp-docs-internal.s3-website.eu-west-3.amazonaws.com/parser
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cmpparis_parser-0.1.1.tar.gz.
File metadata
- Download URL: cmpparis_parser-0.1.1.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
768a6128ae0aa332a5077d9068f0ec9ff2309811e79d8941a3584338ed14db38
|
|
| MD5 |
5cc3457b48e808220de3670f51d43f4a
|
|
| BLAKE2b-256 |
e77239cc878d7cea6da0f2dd7bbe9cfa0250d8dc65a75c5dfa8aa32cab624df7
|
File details
Details for the file cmpparis_parser-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cmpparis_parser-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e8d93ed56bef37348740c28e392bf1ed9e0c5870ae781ede3e02a6cd9117c26
|
|
| MD5 |
4e6592be7dfb2afd97e894b964f96166
|
|
| BLAKE2b-256 |
6213ea96eb1e947f8baa6176e037c5a1fec651b88302ec174b1cd9ecf06ab4b9
|