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

Uploaded Python 3

File details

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

File metadata

  • Download URL: yamlcleaner-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 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.2.tar.gz
Algorithm Hash digest
SHA256 b071ab10c6faf3a5a835732d169872c244838b907f486c200b74734902972471
MD5 862e4c05618ecf4246a57ae9515a513a
BLAKE2b-256 8e33c6c177149d2947df57517b27b872e4f379b48dea2774e80dfd32e1a39e97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yamlcleaner-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 228e2a6ff792d1e4e32ccde61ea0223142ffbb7489ae7bb464a7ea7c5004149f
MD5 7c91e4072e8ffbeff86db5f06c7c0379
BLAKE2b-256 fd9d72a1aeeaf40372c38e25b61272b1f562f980c0863b9310bb16f16305c440

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