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. CI Status coverage pyversions MIT License

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

javaproperties-cli requires Python 3.10 or higher. Just use pip for Python 3 (You have pip, right?) to install javaproperties-cli and its dependencies:

python3 -m 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.8.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

javaproperties_cli-0.8.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file javaproperties_cli-0.8.2.tar.gz.

File metadata

  • Download URL: javaproperties_cli-0.8.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for javaproperties_cli-0.8.2.tar.gz
Algorithm Hash digest
SHA256 ee82ebb6108d2a73b8e07f9f6631faf29e89f29d65227beb6fcb698d10650fa0
MD5 1c062eb5891a69c8a4c91ab435ccb775
BLAKE2b-256 5a129bb197dc0611e42c394deaa1f35bb3c87fe3e535d39ac4d2651eea53b00d

See more details on using hashes here.

File details

Details for the file javaproperties_cli-0.8.2-py3-none-any.whl.

File metadata

File hashes

Hashes for javaproperties_cli-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b94b4ab2db008f22d53e93eb45f5133a8911f25471bf4d6c97e00722774feac7
MD5 f9f5c1fcfbc897b5d7487f604139f344
BLAKE2b-256 b0e5c6a4c97eeb1c9f82d9ed460d97c2ec2f73d8a19885a8e3e89e6aeae4a445

See more details on using hashes here.

Supported by

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