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

GitHub | PyPI | Documentation | Issues

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.4.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

javaproperties_cli-0.4.1-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: javaproperties-cli-0.4.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.5.2

File hashes

Hashes for javaproperties-cli-0.4.1.tar.gz
Algorithm Hash digest
SHA256 8cf45c4dec45ab7e1789740ec86371c8b684f32bd909b3625882af593f695e98
MD5 c2c1420895f3cc3b22ac927cd49b2bb7
BLAKE2b-256 09e1a5542530a7241f55c4a0c845785a27a4d3e8d8de23288049ad1fe2588347

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: javaproperties_cli-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.5.2

File hashes

Hashes for javaproperties_cli-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3d50a8feb04d3703dea7d6499b1efaee278db90cf4223e1fe8495ad0c096b14d
MD5 8b5e2cf6d4e0c8e619a4df2fc7367b73
BLAKE2b-256 e51b83c8feab91646ff6fd43157b2c4331990deee680e2d49fe337c5039bf1af

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