Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 2.0.5 instead.
Reason given by maintainers: bug

XML Rollbase To GIT

Transforme un export XML d'application Rollbase / Infinite Blue en dépôt git lisible (Markdown, scripts, HTML, fichiers décodés), un commit daté de l'export et un tag de version par génération.

Fonctionnalités

  • conversion de l'export XML en arborescence de fichiers (48 extracteurs, lecture en streaming : la mémoire ne dépend pas de la taille de l'export)
  • historique git relatif à la date de création du fichier XML, tag de version
  • push vers le dépôt distant (par défaut avec -g)
  • création d'une branche par client avec le paramètre -c

Architecture, extracteurs et ajout d'un élément : docs/ARCHITECTURE.md. Éléments de l'export non encore extraits : docs/COVERAGE_GAPS.md.

Requires

Python 3.10 ou plus. Dépendances installées automatiquement : lxml, GitPython, Unidecode, Pillow (voir pyproject.toml).

Installation

pip install xmlib-to-git (ou pip install --upgrade xmlib-to-git depuis la 1.x)

Développement : pip install -e ".[dev]" puis pytest.

Usage

$ xmlib-to-git \
    -f <fichier-xml> \
    -o <dossier-de-sortie> \
    -n <nom-de-l-application> \
    [-g <depot-distant-ssh> [-b <branche> | -c <id-client>] [--no-push]] \
    [--clean] [-V]

xmlib-to-git -h détaille chaque option, avec des exemples. -g pousse par défaut (--no-push pour seulement commiter et tagguer).

Complétion des chemins dans le shell

Avec la forme collée (-o/home/...), le shell ne peut pas compléter le chemin : utiliser la forme séparée (-o /home/...) ou --out-folder=/home/.... Pour activer la complétion des options et des chemins (-f, -o) :

pip install "xmlib-to-git[completion]"          # ou : pip install argcomplete
eval "$(register-python-argcomplete xmlib-to-git)"   # à mettre dans ~/.bashrc
Option Rôle
-f, --file export XML (obligatoire)
-o, --out-folder dossier parent de la sortie (défaut : .) ; la sortie est écrite dans <o>/<n>, créé si besoin
-n, --name nom du sous-dossier de sortie (obligatoire)
-g, --git-repository-ssh dépôt git distant : initialise/récupère le dépôt, commite (daté de l'export), tague la version et pousse ; implique --clean
--no-push avec -g : commite et tague sans pousser
-b, --branch branche cible (défaut master), exclusif avec -c
-c, --customer-id branche nommée d'après le client (annuaire livré, ou --customers-file)
--clean vide la sortie (hors fichiers cachés) avant la génération
-V, --version affiche la version

python -m xmlib_to_git ... est équivalent à xmlib-to-git .... L'option --push de la 2.0.0 est toujours acceptée mais n'a plus d'effet (-g pousse par défaut).

Migration depuis la 1.x

  • -g pousse toujours par défaut, comme en 1.x : utilisez --no-push pour ne pas pousser.
  • Le dossier de sortie <o>/<n> est créé automatiquement.
  • -c <id> fonctionne (il était inutilisable en 1.x).
  • Nouveaux fichiers générés (rôles, listes partagées, rapports, modèles d'interface, fichiers joints des graines seeds/<objet>_files/, etc.) : la première génération après la mise à jour produira donc un commit plus gros. Détail : docs/MIGRATION_DIFFS.md.

Développement

pip install -e . pytest
pytest

Metadata

Release files for xmlib-to-git 2.0.0

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

Source distribution (sdist)

Source distribution for xmlib-to-git 2.0.0
File Size Uploaded Provenance Actions
xmlib_to_git-2.0.0.tar.gz 61.9 kB Without provenance Details for xmlib_to_git-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xmlib-to-git 2.0.0
File Interpreter ABI Platform Actions
xmlib_to_git-2.0.0-py3-none-any.whl Python 3 none any Details for xmlib_to_git-2.0.0-py3-none-any.whl

Total release size: 184.1 kB

Release files / xmlib_to_git-2.0.0.tar.gz

Download URL xmlib_to_git-2.0.0.tar.gz
Size 61.9 kB
Tags Source
SHA-256 checksum
How to use checksums
150075e5a55449613e9dfcb057e6a1a96819b4c1968d0ca56ba8b5d165aca9bf
BLAKE2b-256 checksum
How to use checksums
4444b15f07e4411dc913d05d394b781efd7766deb518329d39f0cecd57ca09ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / xmlib_to_git-2.0.0-py3-none-any.whl

Download URL xmlib_to_git-2.0.0-py3-none-any.whl
Size 122.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb0008fcfb6224a3125c5518ffd3c9463d989804911ac476b611805c23c2dc94
BLAKE2b-256 checksum
How to use checksums
390b0924dec6b1b59ade13861a30cb7bc2ef9c26e2746e59ac4b05e84947c706
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for xmlib-to-git 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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