Skip to main content

prop-tool logo

The *.properties file checker and syncing tool


master branch: Unit tests codecov Code lint MD Lint

development branch: Unit tests codecov Code lint MD Lint


Table of contents


Introduction

prop-tool is a small but powerful utility aimed at your projects' *.properties files. It looks like text based INI file, but it is even simpler and because to its simplicity, this file format is often used to keep the configurations or translations (i.e. in Java world). Example file:

# Example of *.properties file
programTitle = Prop-Tool v1.3
okButton = "OK"

The main role of prop-tool is to help you keep your *.properties files in order, ensuring all files are syntactically correct and all the translation files are in sync with base (main language) file. It also comes with huge set of various linters and checkers to guard quality of the files' contents. It can check for missing or dangling keys, inproper punctuation, open brackets, quotation marks and more. It can also automatically sync translation files quickly providing fresh template for your translators to work on.

$ prop-tool -b mark -l pl -v
Base: mark.properties
  Warnings: 1
    Brackets
      W: Line 3:16: No closing bracket for "<"
  PL: brackets_pl.properties
    Errors: 8, warnings: 3
      Sentence starts with different letter case.
        E: Line 8: "missingClosing" starts with lower-cased character. Expected UPPER-cased.
      Trailing white characters
        W: line 2: In comment: 2
        E: line 4: In "question" entry: 1
      Punctuation mismatch
        E: line 3: "exclamation" ends with " ". Expected "!".
        E: line 4: "newline" ends with "". Expected "\n".
      Bracket mismatch
        E: Line 2:1: "missingClosing": No closing bracket for "(".
        W: Line 3:16: No closing bracket for "<"
        E: Line 4:4: "missingOpening": No opening bracket matching ")".
      Quotation marks
        E: Line 12:5: "missingSingle": Quotation mark mismatch. Expected ", found `.
        E: Line 13:5: "remaining": Quotation mark mismatch. Expected ", found `.
        W: Line 14:11: No closing mark for ".

License

  • Written and copyrighted ©2021 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
  • prop-tool is open-sourced software licensed under the MIT license

Metadata

Release files for prop-tool 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for prop-tool 2.0.0
File Interpreter ABI Platform Actions
prop_tool-2.0.0-py3-none-any.whl Python 3 none any Details for prop_tool-2.0.0-py3-none-any.whl

Release files / prop_tool-2.0.0-py3-none-any.whl

Download URL prop_tool-2.0.0-py3-none-any.whl
Size 120.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bfe195992bb60c963a1339c13997ff47299a78a7efdf4d5f042a8b36627b676
BLAKE2b-256 checksum
How to use checksums
615fd3318d6b605031164a064a6f53431cf7cb372c31d3edb7e29e5c7ccc4837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.14

Security for prop-tool 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page