javaproperties
Read & write Java .properties files
Decision gist · record as of 2026-08-14
Yes. javaproperties is a focused, well-maintained library with zero dependencies, permissive licensing, and active upstream support. Install it if you need to read or write Java .properties files from Python; it solves that problem cleanly without friction. No known security issues.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or higher.
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained as of 2026-07-20 with support across Python 3.8–3.13 and both CPython and PyPy.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2024-12-01 (621 days) · last repo commit 2026-07-20 · 32 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,895,523 downloads/mo, #2,016 on PyPI
Alternatives
Verify before relying
import javaproperties
properties = {"key": "value", "host:port": "127.0.0.1:80"}
print(javaproperties.dumps(properties))
loaded = javaproperties.loads("key=value\nhost\\:port=127.0.0.1:80")
print(loaded)- Whether XML parsing handles all Java .properties DTD variants without loss of fidelity
- Performance characteristics when handling large .properties files (thousands of keys)
What it is and what it does
javaproperties is a library for reading and writing Java .properties configuration files from Python. It handles both the standard line-oriented format (key=value pairs with escape sequences) and the XML variant, and provides a json-like API with load/loads/dump/dumps functions. It also includes an optional Properties class that mimics Java's java.util.Properties behavior for developers migrating from Java or needing close compatibility.
The package handles Unicode properly, including escape sequences like \uXXXX, and supports common .properties features such as comments, whitespace, and colon/equals delimiters. It has no runtime dependencies and works on modern Python versions (3.8+) across CPython and PyPy, making it suitable for configuration interchange between Java and Python systems.
Use it for
- Load Java application configuration files into Python for testing or tooling without manual parsing
- Export Python configuration dictionaries to .properties format for consumption by Java applications
- Convert between .properties line format and XML format for compatibility with different Java tools
- Build Python utilities that manipulate Java .properties files while preserving formatting and comments
- Interoperate with legacy Java systems that use .properties for configuration management
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
javaproperties is a focused, well-maintained library with zero dependencies, permissive licensing, and active upstream support. Install it if you need to read or write Java .properties files from Python; it solves that problem cleanly without friction. No known security issues.
Install
javaproperties on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained as of 2026-07-20 with support across Python 3.8–3.13 and both CPython and PyPy.
Requires Python 3.8 or higher.
License in practice
MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
import javaproperties
properties = {"key": "value", "host:port": "127.0.0.1:80"}
print(javaproperties.dumps(properties))
loaded = javaproperties.loads("key=value\nhost\\:port=127.0.0.1:80")
print(loaded)
Verify before relying
- Whether XML parsing handles all Java .properties DTD variants without loss of fidelity
- Performance characteristics when handling large .properties files (thousands of keys)
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 621 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,895,523 / month, #2,016 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software DevelopmentTopic :: Software Development :: Libraries :: Java LibrariesTopic :: UtilitiesTyping :: Typed |
Evidence: javaproperties-0.8.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “java configuration files python”
- javapropertiesReads and writes Java .properties files in both line-oriented and XML…
- jpropertiesParses and writes Java Property files in Python, providing…
- ResourceBundleResourceBundle manages internationalization and localization of…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also dict2xml · in-place · mpxj · numpyencoder · dicttoxml · java-manifest · py-serializable · read-version · typing-json · bioc