{ "info": { "author": "Jerome Leclanche", "author_email": "jerome@leclan.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Internationalization", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Java Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "python-jproperties\n==================\n[![Build Status](https://travis-ci.org/translate/python-jproperties.svg)](https://travis-ci.org/translate/python-jproperties)\n\nA python library for parsing and handling Java .properties files.\n\n\nInstallation\n------------\n```\n $ pip install jproperties3\n```\n\nTest\n----\n\n```\n $ python setup.py test\n```\n\nBuild\n-----\n\n```\n $ python setup.py build\n```\n\nUsage\n-----\n\nA Properties object is, on the outside, a simple key-value store.\n\nInitialize it as such:\n\n```python\nfrom jproperties import Properties\n\np = Properties()\n\n# Or with default values:\np2 = Properties({\"foo\": \"bar\"})\nprint(p2[\"foo\"])\n```\n\nThe usual dictionary interfaces are available:\n\n```python\np2[\"key\"] = \"value\"\nfor key in p2.keys():\n\tprint(key, p2[key])\n```\n\nNote that keys and values are all expected to be and be treated as strings.\n\nTo serialize the object into the .properties format, turn it into a string:\n\n```python\nwith open(\"out.properties\", \"w\") as f:\n\tf.write(str(p2))\n```\n\nTo read an existing properties file, create the instance using the `stream`\nkeyword parameter\n\n```python\nwith open(\"out.properties\", \"r\") as f:\n\tp = Properties(stream=f)\n```\n\nNote that comments and blank lines are loaded into the Properties object's\nnodes when using load(), and will be serialized in str().\n\nIf comments and blank lines are unimportant and you want to get rid of them,\nyou can create a new Properties object from an existing one's keys:\n\n```python\np3 = Properties(p2.keys())\n```\n\n\n### License\n\nThis project is licensed under the MIT license. The full license text is\navailable in the LICENSE file.\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Leibniz137/python-jproperties3/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Leibniz137/python-jproperties3", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "jproperties3", "package_url": "https://pypi.org/project/jproperties3/", "platform": "", "project_url": "https://pypi.org/project/jproperties3/", "project_urls": { "Download": "https://github.com/Leibniz137/python-jproperties3/tarball/master", "Homepage": "https://github.com/Leibniz137/python-jproperties3" }, "release_url": "https://pypi.org/project/jproperties3/0.5.2/", "requires_dist": null, "requires_python": "", "summary": "Python library for Java .properties file parsing", "version": "0.5.2" }, "last_serial": 2708272, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "f5e143a923b68a9c4871097777666500", "sha256": "e488f2cd22f5be7d6c82100f6901d053f7f1ed6d05bbaccdff99f65e8b3540d9" }, "downloads": -1, "filename": "jproperties3-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f5e143a923b68a9c4871097777666500", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5552, "upload_time": "2017-03-12T17:19:51", "url": "https://files.pythonhosted.org/packages/b5/cd/b5ab0f785f3f01070e2e3b2f70cd5fcbe6be229a74867dd0341b9029bf60/jproperties3-0.3-py2.py3-none-any.whl" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "d621fed62422b4041e05f1509a25fa46", "sha256": "6a70e785e4807b5b0c8e55ea597516930b3249aba282ae6150d0da620ddd0e4c" }, "downloads": -1, "filename": "jproperties3-0.4.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d621fed62422b4041e05f1509a25fa46", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5518, "upload_time": "2017-03-12T20:06:45", "url": "https://files.pythonhosted.org/packages/dd/4a/dade0fbbedf4aaa1264f72677953d3670a4bd387f02f6e19a534240b46f3/jproperties3-0.4.2-py2.py3-none-any.whl" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "a8eec3bc55d7c216fa885fbe231908b9", "sha256": "a737d911d57c645221cfd5a9427e9b32d9de10648292f532d58c602b19c38a6a" }, "downloads": -1, "filename": "jproperties3-0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a8eec3bc55d7c216fa885fbe231908b9", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5575, "upload_time": "2017-03-14T23:13:39", "url": "https://files.pythonhosted.org/packages/c6/dc/a40859d34a57f7ba90489bd71e1f41658145da90cb5a0d65859f61f4ca87/jproperties3-0.5-py2.py3-none-any.whl" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "66b0de0cf53160028a56c93572699368", "sha256": "dd7d71bb1ea29a5a4d5c70bb8c7baa67e12db461b933f2fc6d3d348e3b6d53ff" }, "downloads": -1, "filename": "jproperties3-0.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "66b0de0cf53160028a56c93572699368", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5630, "upload_time": "2017-03-15T19:42:25", "url": "https://files.pythonhosted.org/packages/e8/a9/7e51a93abe0d95ee656274a8f3167192670e57a052c1b7e93dd8cf58a79b/jproperties3-0.5.1-py2.py3-none-any.whl" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "4318d74b396f4b0fbab96ef24a3aa63f", "sha256": "015ac509a85d8d9af9dca0d82383f58c1827c8bce4b9b105da36504467f81f9d" }, "downloads": -1, "filename": "jproperties3-0.5.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4318d74b396f4b0fbab96ef24a3aa63f", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5620, "upload_time": "2017-03-15T19:44:12", "url": "https://files.pythonhosted.org/packages/9d/f4/6f30e3d98eaadf6994d85dfb1f57dca63d7e76319a9d34e8807fb50facf9/jproperties3-0.5.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4318d74b396f4b0fbab96ef24a3aa63f", "sha256": "015ac509a85d8d9af9dca0d82383f58c1827c8bce4b9b105da36504467f81f9d" }, "downloads": -1, "filename": "jproperties3-0.5.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4318d74b396f4b0fbab96ef24a3aa63f", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5620, "upload_time": "2017-03-15T19:44:12", "url": "https://files.pythonhosted.org/packages/9d/f4/6f30e3d98eaadf6994d85dfb1f57dca63d7e76319a9d34e8807fb50facf9/jproperties3-0.5.2-py2.py3-none-any.whl" } ] }