Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmpparis_parser-0.1.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmpparis_parser-0.1.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file cmpparis_parser-0.1.0.tar.gz.

File metadata

  • Download URL: cmpparis_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for cmpparis_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 89a551a03701458959ad8e4ea3c085d792329fe513a8d07a313b7c3bac26a54c
MD5 7e33f7b2f13d8ce59ce5b35eb73ff566
BLAKE2b-256 324eec9c71b541405394c04c21db33ef07c7a4db39c764570bf349c5c12bcda5

See more details on using hashes here.

File details

Details for the file cmpparis_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cmpparis_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c210a36639dcf618422791c556f45d1193507b6c779f44ed875be63cf30443f
MD5 db7d30af084ca1b3702ef20e358749b9
BLAKE2b-256 2ae25f2e01f60b2199d632c66821b3ce962573d5de5390449773e94ec05df59b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page