{ "info": { "author": "Taylor C. Richberger", "author_email": "tcr@absolute-performance.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "python-req\n==========\n\nSimple python module for loading and dumping structures in req format, a very\nsimple {string: (string|list(string))} format.\n\nParses a structure like this::\n\n Foo|Bar\n Baz_1|alpha\n Baz_2|beta\n Baz_3|gamma\n\ninto:\n\n.. code-block:: python\n\n {\n 'Foo': 'Bar',\n 'Baz': [\n 'alpha',\n 'beta',\n 'gamma',\n ],\n }\n\nThe load and dump methods will maintain the encoding given and will not correct\non errors. If you pass a utf-8 filehandle to load, you'll get unicode output.\nIf you pass a bytestring filehandle to load, you'll get bytestring output.\nloads is the same, but with either a unicode or bytestring input. dump will try\nto do the same, and dumps will attempt to determine the type. All dicts and\narrays are expected to be entirely homogeneous (either entirely composed of\nunicode strings or entirely composed of byte strings). To not enforce this in\nthe client side is undefined, and may be an explicit error in the future.\nAnother undefined action is to embed newlines in any strings.\n\nThe only truly ambiguous case is dumps when given an empty dict. In this case,\ndumps will return an empty str object, which is unicode on Python 3 and bytes on\nPython 2.\n\nFor structures parsed into lists, the logic is as such:\n\n* Any underscore and non-negative integer ending a key will automatically coerce\n into an list.\n\n* The actual values of the integers aren't important. They will be ordered\n based on their decimal order. Holes and starting index aren't bothered with.\n\n* If a field has an integer index given, but also has a non-indexed field of the\n same name, the non-indexed field will be given top precedence (essentially an\n index of -1)\n\n* Output of lists is 1-indexed by default, but this may be changed via a kwarg.\n If you need holes for whatever reason, you should pre-process the arrays into\n regular dict mappings.\n\nThis format is order-independent by default, but you may use an OrderedDict or\nsomething to maintain order on reading and writing. This does mean that dumping\nand loading an object (or vice versa) aren't guaranteed to yield the exact same\nrepresentation, but doing any 3 alternating operations in a row usually should.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/absperf/python-req", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "req", "package_url": "https://pypi.org/project/req/", "platform": "", "project_url": "https://pypi.org/project/req/", "project_urls": { "Homepage": "https://github.com/absperf/python-req" }, "release_url": "https://pypi.org/project/req/1.0.0/", "requires_dist": [ "six" ], "requires_python": "", "summary": "Simple format for serialization, similar to json. Not useful for most general use.", "version": "1.0.0" }, "last_serial": 3937464, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "24dbaa7446ae6185f39459d84432c1e2", "sha256": "8890795272623ea58996947879eed269c8cbd90d834f506639e44766a18cf759" }, "downloads": -1, "filename": "req-0.0.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "24dbaa7446ae6185f39459d84432c1e2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3093, "upload_time": "2018-06-06T06:33:49", "url": "https://files.pythonhosted.org/packages/f8/dd/01e530e8d9bdc269af1faf4144acc686990b781b835df854f0afac6f4195/req-0.0.1-py2.py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7581d4081d229549641eb53191fe33ff", "sha256": "9cc89038c409a522b81b7e71c4bfc58be52959c3a2f2ac90ec95e9de772a52c7" }, "downloads": -1, "filename": "req-0.0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "7581d4081d229549641eb53191fe33ff", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5187, "upload_time": "2018-06-06T07:19:33", "url": "https://files.pythonhosted.org/packages/e4/db/1a422fb6564c697ae0e6550e6f046c59647f26f10dbcd8548f50f3410e43/req-0.0.2-py2.py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "0df81792585ebe102945b062809e68df", "sha256": "02abc7941fe76d9a0260a155b802b956e19edd2a8dc34b9752bb3a19f1160d5c" }, "downloads": -1, "filename": "req-0.0.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "0df81792585ebe102945b062809e68df", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5184, "upload_time": "2018-06-06T07:22:05", "url": "https://files.pythonhosted.org/packages/7d/1f/e73a4394b852c21fc6c53b8c0c06b4dbbc9fcdd67f209ba8c9a6b50d868c/req-0.0.3-py2.py3-none-any.whl" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "ea4cea74d3f7ae86305db3e8f8547758", "sha256": "9ee30b71347cef7dba1eb4a0132586b88828d8249cf2f7e606de5ac44810367e" }, "downloads": -1, "filename": "req-1.0.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "ea4cea74d3f7ae86305db3e8f8547758", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5925, "upload_time": "2018-06-06T21:05:02", "url": "https://files.pythonhosted.org/packages/78/9f/afc194e1d4c37d259dfeb2330432611d330fe910699ad860da829f348e86/req-1.0.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea4cea74d3f7ae86305db3e8f8547758", "sha256": "9ee30b71347cef7dba1eb4a0132586b88828d8249cf2f7e606de5ac44810367e" }, "downloads": -1, "filename": "req-1.0.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "ea4cea74d3f7ae86305db3e8f8547758", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5925, "upload_time": "2018-06-06T21:05:02", "url": "https://files.pythonhosted.org/packages/78/9f/afc194e1d4c37d259dfeb2330432611d330fe910699ad860da829f348e86/req-1.0.0-py2.py3-none-any.whl" } ] }