Skip to main content

YTool

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.

Release files for ytool 0.4.3

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

Source distribution (sdist)

Source distribution for ytool 0.4.3
File Size Uploaded
ytool-0.4.3.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ytool 0.4.3
File Interpreter ABI Platform
ytool-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / ytool-0.4.3.tar.gz

Download URL ytool-0.4.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f958f0683e63d0f583ce587740d6ed575e01353aa1c9494a51be4a17652137bf
BLAKE2b-256 checksum
How to use checksums
e73db6c69504220273b927d49727cc55fd16cf616a2b1373779804fcb6efe176
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

Release files / ytool-0.4.3-py3-none-any.whl

Download URL ytool-0.4.3-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1ec8d0dc7aebb567ef6f8c62c6d43a562d14fd0887faaa119784f0c9787d7fa
BLAKE2b-256 checksum
How to use checksums
8435da9ba41aa3f7632b5a097c2549a7a75e9fd88d58f329a3baad0730939083
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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