Skip to main content

A small command line library for daily tasks.

Project description

build

pip install -r requirements.txt
rm -rf dist
python -m build
python -m twine upload dist/* -u __token__ -p {token}

pypi-AgEIcHlwaS5vcmcCJDkwYTBjZTY5LWU5NGQtNDNhYS05ZWIxLTBiZjdjMzJlMmUyZQACDFsxLFsiY21kdSJdXQACLFsyLFsiNmQ2NWI5ZmQtZDAzYS00YzE4LTgwNjYtOTdlZTBkY2UwMGZiIl1dAAAGIJKby55lo8IXSuyaedbHLVaGOx6K1Wp_SdWeBXwcF3O9

Commands

|-- cmdu
|   |-- json2json
|   |-- json2yaml
|   |-- yaml2json

json2yaml

convert a json input (from stdin) as json output (to stdout)

  1. with raw json python -m cmdu json2json
  2. with pretty format python -m cmdu json2json --pretty
  3. with pretty format and indentation as 2 python -m cmdu json2json --pretty --indent 2

json2yaml

convert a json input (from stdin) as yaml output (to stdout)

  1. python -m cmdu json2yaml

yaml2json

convert a yaml input (from stdin) as json output (to stdout)

  1. with raw json python -m cmdu yaml2json
  2. with pretty format python -m cmdu yaml2json --pretty
  3. with pretty format and indentation as 2 python -m cmdu yaml2json --pretty --indent 2

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

cmdu-0.0.2.tar.gz (7.1 MB view hashes)

Uploaded Source

Built Distribution

cmdu-0.0.2-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page