Metadata-Version: 2.1
Name: javaproperties-cli
Version: 0.5.0
Summary: Command-line manipulation of Java .properties files
Home-page: https://github.com/jwodder/javaproperties-cli
Author: John Thorvald Wodder II
Author-email: javaproperties-cli@varonathe.org
License: MIT
Project-URL: Source Code, https://github.com/jwodder/javaproperties-cli
Project-URL: Bug Tracker, https://github.com/jwodder/javaproperties-cli/issues
Project-URL: Documentation, https://javaproperties-cli.readthedocs.io
Project-URL: Say Thanks!, https://saythanks.io/to/jwodder
Keywords: config,configfile,configuration,java,javaproperties,properties
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: OSI Approved :: MIT License
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Java Libraries
Classifier: Topic :: Utilities
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4
Description-Content-Type: text/x-rst
Requires-Dist: click (~=7.0)
Requires-Dist: javaproperties (<0.6,>=0.4.0)
Requires-Dist: six (~=1.1)

.. image:: http://www.repostatus.org/badges/latest/active.svg
    :target: http://www.repostatus.org/#active
    :alt: Project Status: Active - The project has reached a stable, usable
          state and is being actively developed.

.. image:: https://travis-ci.org/jwodder/javaproperties-cli.svg?branch=master
    :target: https://travis-ci.org/jwodder/javaproperties-cli

.. image:: https://codecov.io/gh/jwodder/javaproperties-cli/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/jwodder/javaproperties-cli

.. image:: https://img.shields.io/pypi/pyversions/javaproperties-cli.svg
    :target: https://pypi.org/project/javaproperties-cli

.. image:: https://img.shields.io/github/license/jwodder/javaproperties-cli.svg?maxAge=2592000
    :target: https://opensource.org/licenses/MIT
    :alt: MIT License

.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg
    :target: https://saythanks.io/to/jwodder

`GitHub <https://github.com/jwodder/javaproperties-cli>`_
| `PyPI <https://pypi.org/project/javaproperties-cli>`_
| `Documentation <https://javaproperties-cli.readthedocs.io>`_
| `Issues <https://github.com/jwodder/javaproperties-cli/issues>`_
| `Changelog <https://github.com/jwodder/javaproperties-cli/blob/master/CHANGELOG.md>`_

``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 <https://pip.pypa.io>`_ (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


.. |properties| replace:: ``.properties``
.. _properties: https://en.wikipedia.org/wiki/.properties

.. |javaproperties| replace:: ``javaproperties``
.. _javaproperties: https://github.com/jwodder/javaproperties


