Skip to main content

A simple tool to set values in yaml files preserving format and comments

Project description

A simple tool to set values in yaml files preserving format and comments. This command line tool is based on ruamel.yaml

Install:

Ytool can be installed simply by running:

$ pip install ytool

Example:

$ ytool -f some.yaml -s some.string.key value -d float_key 9.9  -i int.key.path 10

Help:

$ usage: ytool [-h] --file FILE [--set-string path value] [--set-int path value]
         [--set-float path value] [--output OUTPUT] [--edit-file]
         [--verbose]

Set values in yaml file preserving format and comments.

optional arguments:
  -h, --help            show this help message and exit
  --file FILE, -f FILE  Name of the chart file to change
  --set-string path value, -s path value
                        Set string value for path
  --set-int path value, -i path value
                        Set integer value for path
  --set-float path value, -d path value
                        Set float value for path
  --output OUTPUT, -o OUTPUT
                        Name of output file
  --edit-file, -e       Edit input file directly
  --verbose, -v         Print debug information to stdout

What is Codacy?

Codacy is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.

Among Codacy’s features:

  • Identify new Static Analysis issues

  • Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)

  • Auto-comments on Commits and Pull Requests

  • Integrations with Slack, HipChat, Jira, YouTrack

  • Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories

Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.

Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.

Free for Open Source

Codacy is free for Open Source projects.

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

ytool-0.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

ytool-0.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ytool-0.2.0.tar.gz.

File metadata

  • Download URL: ytool-0.2.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for ytool-0.2.0.tar.gz
Algorithm Hash digest
SHA256 12ed05415c37c01aed0573cb2cac477b64a57e33e2e3fb489237b8c48b7ac9ee
MD5 65d2bb66e1b219b9971b84ba39a7479e
BLAKE2b-256 802e090bc4ecf239effd9d82bc4054c8564c823c3225bd8d906d9da7a0178778

See more details on using hashes here.

File details

Details for the file ytool-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ytool-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for ytool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c690cabab95c8edec4581d1de5341868db05b66af89740d8953483a77be0f4e5
MD5 a337f45342ebf65ebaf72b331e3b9f0c
BLAKE2b-256 a2bca1e2fff552be5297c2dc53c7aa4c833eda0a66a4ba4329c362f5ebd6beac

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