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.2.tar.gz (18.8 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.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmpparis_parser-0.1.2.tar.gz
  • Upload date:
  • Size: 18.8 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.2.tar.gz
Algorithm Hash digest
SHA256 e8644a5597974df194ae91e2dedb907cceee64cf5ed87347b0ebf413d8f916b3
MD5 8d2d419f41247dc011677b232e364f2c
BLAKE2b-256 2962684e19494ced5fb0be35b62b6e9deb4b4973b613efbf537d439f3e09d9c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cmpparis_parser-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08d32e9d887e4e4028e044b617e48cf4b1c6a85ff8ac8ef50bfb4f268937e74d
MD5 714c3e794e5a9a1ff631672b74fe3f91
BLAKE2b-256 573d6ffd0ec3d338a3663d7ab2ec145bd9e64d2e8cd3f9a94228ea83f8fbeb8e

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