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.1.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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yamlcleaner-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e45c54f0c38876dd7d4ce91881f2551b812bef7efcfb97e65f211816aedbc9dc
MD5 75d5c7f676c18eecfc58ca7ee30e87f9
BLAKE2b-256 a3f2acf7011fb94d465e89f76b17deabfe8968cf069f0b796f341436ba876cd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yamlcleaner-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa52f80e7e407ae1e2daa0c15cbe01920413507ef537ec7f9cd9c55e6b9cfd1d
MD5 c3e41596855c03e00715769169777069
BLAKE2b-256 44b656e835cef83d39cfab67bf6d58e396ce83fc8b378eec566d387e9c709a07

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