Skip to main content

Command-line manipulation of Java .properties files

Project description

Project Status: Active - The project has reached a stable, usable state and is being actively developed. https://travis-ci.org/jwodder/javaproperties-cli.svg?branch=master https://codecov.io/gh/jwodder/javaproperties-cli/branch/master/graph/badge.svg https://img.shields.io/pypi/pyversions/javaproperties-cli.svg MIT License https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg

GitHub | PyPI | Documentation | Issues | Changelog

javaproperties-cli is a wrapper around the javaproperties package (from which it was split off) that provides programs for basic command-line manipulation of .properties files, including getting, setting, & deleting values and converting to & from JSON.

Installation

Just use pip (You have pip, right?) to install javaproperties-cli and its dependencies:

pip install javaproperties-cli

Quickstart

javaproperties get    <file> <key> ...

Output the values of the given keys in the given .properties file

javaproperties select <file> <key> ...

Output the key-value pairs for the given keys in the given .properties file

javaproperties set    <file> <key> <value>

Set <key> in <file> to <value> and output the result

javaproperties delete <file> <key> ...

Output the given .properties file with the given keys deleted

javaproperties format [<file>]

Reformat the given .properties file, removing comments & extraneous whitespace and putting keys in sorted order

json2properties [<infile> [<outfile>]]

Convert a JSON object to a .properties file

properties2json [<infile> [<outfile>]]

Convert a .properties file to a JSON object

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

javaproperties-cli-0.5.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

javaproperties_cli-0.5.0-py2.py3-none-any.whl (10.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file javaproperties-cli-0.5.0.tar.gz.

File metadata

  • Download URL: javaproperties-cli-0.5.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

File hashes

Hashes for javaproperties-cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 37adf418191f42dac785caebe748949d6cfb6a72d8a424507511283b4023c381
MD5 434456997a359083748c150eee0e8f3e
BLAKE2b-256 adb84e4b799100dc46d907f5652b2bd5249e01ef713fe1e26c6af600e647b6d3

See more details on using hashes here.

Provenance

File details

Details for the file javaproperties_cli-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: javaproperties_cli-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

File hashes

Hashes for javaproperties_cli-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 928dcee2733352fb84804a2b1e23e97867864470e407e043142e7bd8f69bf14b
MD5 fbffe405af61af477a155546a7fa4561
BLAKE2b-256 befaab3c5cb52197c990dd36d2375150bb5fcd2ee38c489b47e73c8aabc02f4b

See more details on using hashes here.

Provenance

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