Skip to main content

Un outil CLI pour nettoyer les fichiers YAML en supprimant les commentaires

Project description

yamlcleaner

yamlcleaner est un outil en ligne de commande (CLI) pour nettoyer les fichiers YAML en supprimant tous les commentaires.

Installation

Assurez-vous d'avoir Python 3.7 ou supérieur installé.

Installez les dépendances :

pip install -r requirements.txt
# ou, si installé via pyproject.toml :
pip install .

Utilisation

Pour nettoyer un fichier YAML :

yamlcleaner chemin/vers/fichier.yaml

Pour nettoyer tous les fichiers d’un dossier (récursivement) :

yamlcleaner chemin/vers/dossier

Par défaut, les fichiers nettoyés sont enregistrés dans le dossier ./cleaned.
Vous pouvez spécifier un dossier de sortie avec l’option -o :

yamlcleaner chemin/vers/dossier -o dossier_sortie

Exemple

Avant :

# Ceci est un commentaire
nom: Alice # commentaire en ligne
age: 30

Après nettoyage :

nom: Alice
age: 30

Licence

Voir le fichier LICENSE.MD.

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

yamlcleaner-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

yamlcleaner-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yamlcleaner-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for yamlcleaner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d17bd2603b7c125ed3e43a879abedd705a2909eece436451520a17c6bd0cae80
MD5 8938f89619092092961fffd7d8906d7e
BLAKE2b-256 d0b154808635d3d73b0b501a17e0ebb1ec854921d076d7284c3e12fc195d4323

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yamlcleaner-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for yamlcleaner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2afea3cb222beb06e9c174f5af59a4dec337340a7a7341d6355a0258f22767ee
MD5 0e88cd9254ee48cba41085902d26f773
BLAKE2b-256 4e256cc2807baa938591efcda140cbea08343196bf666a0937f3e03044a7eebf

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