Skip to content

📦 Read and write Java property files from Python, including comments and location info.

License

Notifications You must be signed in to change notification settings

jhermann/javaprops

Repository files navigation

“javaprops” Python Package

logo

Read and write Java property files, including comments and location info.

GroupsApache 2.0 licensedTravis CI

Project Goals

This library allows you to read Java property files including all the lesser known formatting details, like Unicode escaping. What sets it apart from similar projects are these requirements:

  • Modification of property files with minimal differences due to normalization.
  • Comments are parsed and associated with their property key.
  • Location information is available, mostly to improve diagnostics for humans.
  • The property set can be exposed as a dict-like object with attribute semantics, mainly for use in template engines; stemmed values are supported.
  • Provide an optional inclusion mechanism via special comments.

Installation

To create a development environment, use these commands:

git clone "https://github.com/Feed-The-Web/javaprops.git"
cd javaprops; deactivate; /usr/bin/virtualenv .venv/$(basename $PWD)
. .venv/$(basename $PWD)/bin/activate
pip install -U pip; pip install -r "dev-requirements.txt"
invoke build --docs

See CONTRIBUTING.md for details on how to give back your improvements and fixes to upstream, so every user can benefit from them.

Usage

Reading

TODO

Writing

TODO

Property Mapper

TODO

Includes

TODO

javaprops command line tool

TODO

Similar Projects

Python

Go

Acknowledgements

1&1  Project sponsored by 1&1.

About

📦 Read and write Java property files from Python, including comments and location info.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages