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.com/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.7.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

javaproperties_cli-0.7.0-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for javaproperties-cli-0.7.0.tar.gz
Algorithm Hash digest
SHA256 22407180914cac2bb535554b0eefa1ac3a18185a6fa1fe335c696b1f47b388fc
MD5 fddf38d58df5d3931161d5f0a6131e24
BLAKE2b-256 8126824f2069176c2198bfe8593dc4d2b45a8a2f2f03af2782258aecb024bf5c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: javaproperties_cli-0.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 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/49.1.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9

File hashes

Hashes for javaproperties_cli-0.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 65cc2b2e4badf80f0a9c221d1ac26e598d95ca49d7f166c2cec62e09affe4e01
MD5 03525b41bfa18d4fce8f8d691399f39e
BLAKE2b-256 d153012bc534964ceed3c2917021c5404988154029eaf16c154d79822db21d9c

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