Skip to main content

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

Release files for cmpparis-parser 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmpparis-parser 0.1.2
File Size Uploaded
cmpparis_parser-0.1.2.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cmpparis-parser 0.1.2
File Interpreter ABI Platform
cmpparis_parser-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 35.7 kB

Release files / cmpparis_parser-0.1.2.tar.gz

Download URL cmpparis_parser-0.1.2.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e8644a5597974df194ae91e2dedb907cceee64cf5ed87347b0ebf413d8f916b3
BLAKE2b-256 checksum
How to use checksums
2962684e19494ced5fb0be35b62b6e9deb4b4973b613efbf537d439f3e09d9c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / cmpparis_parser-0.1.2-py3-none-any.whl

Download URL cmpparis_parser-0.1.2-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08d32e9d887e4e4028e044b617e48cf4b1c6a85ff8ac8ef50bfb4f268937e74d
BLAKE2b-256 checksum
How to use checksums
573d6ffd0ec3d338a3663d7ab2ec145bd9e64d2e8cd3f9a94228ea83f8fbeb8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page