{ "info": { "author": "Heiner Tholen", "author_email": "github@heinertholen.com", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://travis-ci.org/heinzK1X/pylibconfig2.svg\n :target: https://travis-ci.org/heinzK1X/pylibconfig2\n\n\npylibconfig2\n============\n\n\nPure python library for libconfig syntax. IO works via strings, and include \ndirectives.\n\n\nUsage\n-----\n\nScalar types are pythons basic types str, int, long, float, bool. The libconfig\ntypes Array, List, Group are implemented as ConfArray, ConfList, ConfGroup,\nrespectively. A config is setup from a string only, and represented as a string\nautomatically.\n\n\nThe config\n~~~~~~~~~~\n\nConfig represents a libconfig configuration. The string representation is itself\nreadable as a config. Access works via attributes:\n\n >>> import pylibconfig2 as cfg\n >>> c = cfg.Config(\"my_setting = 5;\")\n >>> str(c)\n 'my_setting = 5;'\n >>> c.my_setting\n 5\n\nOr via lookup as in the original libconfig way (no exceptions are raised):\n\n >>> c = Config('my = {nested = {sett = (0, {ng = \"rocks!\"})}}')\n >>> c.lookup('my.nested.sett.[1].ng')\n 'rocks!'\n >>> c.lookup('my.nested.foo', 'bar')\n 'bar'\n\nSetting values should be done by path (but attribution is also possible):\n >>> c = Config('')\n >>> c.setup('foo', 1)\n True\n >>> c.setup('bar', '{hello = \"world\"}')\n True\n >>> c.lookup('bar.hello')\n 'world'\n >>> c.setup('a.nonexisting.group', '\"returns False!\"')\n False\n\nThese functions are given for further convenience:\n\n keys()\n values()\n items()\n get(key, default)\n set(key, value)\n\n\nAn array\n~~~~~~~~\n\nConfArray represents a libconfig array. Access works via the [] operator:\n\n >>> c = cfg.Config(\"my_array = [1, 2, 3];\")\n >>> c.my_array[1]\n 2\n\n\nA list\n~~~~~~\n\nConfList represents a libconfig list. Access works via the [] operator:\n\n >>> c = cfg.Config('my_list = (1.5, 2L, 0xee, \"string\");')\n >>> c.my_list[1]\n 2L\n\n\nA group\n~~~~~~~\n\nConfGroup represents a libconfig group. Access works via attributes:\n\n >>> c = cfg.Config(\"my_group = {my_setting = 5;};\")\n >>> c.my_group.my_setting\n 5\n\nAgain, these functions are given for convenience:\n\n keys()\n values()\n items()\n get(key, default)\n set(key, value)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/heinzK1X/pylibconfig2", "keywords": "libconfig libconfig++ pylibconfig2 pylibconfig config", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "pylibconfig2", "package_url": "https://pypi.org/project/pylibconfig2/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pylibconfig2/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/heinzK1X/pylibconfig2" }, "release_url": "https://pypi.org/project/pylibconfig2/0.2.5/", "requires_dist": null, "requires_python": null, "summary": "Pure python library for libconfig syntax.", "version": "0.2.5" }, "last_serial": 1807631, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "25d9535f74f95e31d0a6b0cb62f3103e", "sha256": "a8d9f265d820d11cfeafcb12804d939c9b868a42e69582fe7bcf90bf171343e5" }, "downloads": -1, "filename": "pylibconfig2-0.1.tar.gz", "has_sig": false, "md5_digest": "25d9535f74f95e31d0a6b0cb62f3103e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3686, "upload_time": "2014-04-29T15:20:06", "url": "https://files.pythonhosted.org/packages/5d/e9/8601b91f5afc8613be402475974298f236df10789e21e61317a4e72309f0/pylibconfig2-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b67c610285127389053679fa661005a2", "sha256": "7fcae273dde50153a45bdf828738cfda52f68bfada468c6a3869a7bab80d8d93" }, "downloads": -1, "filename": "pylibconfig2-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b67c610285127389053679fa661005a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3867, "upload_time": "2014-04-29T18:01:34", "url": "https://files.pythonhosted.org/packages/61/4f/96e7c9f8ac14fa4e614a9f91be9e64345a92c7d874f5a92a41d978d44c47/pylibconfig2-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "06cab8a5a91c3efaa233cf2e695ed515", "sha256": "59f6c5156524ffa245dc5914cc6f92c9acf8897c6c60f98ea6b420ccc0ce2701" }, "downloads": -1, "filename": "pylibconfig2-0.1.2.tar.gz", "has_sig": false, "md5_digest": "06cab8a5a91c3efaa233cf2e695ed515", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4253, "upload_time": "2014-04-29T22:37:39", "url": "https://files.pythonhosted.org/packages/c3/04/7c7cd680ec15a1212d2651b9364889270b92a2fc2102fc7391c4c933aa76/pylibconfig2-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "fda3d12256ce9a27ef26294862336824", "sha256": "f843642efb978dda1a803561e5d5274579e7cd138750e97b93efeccc45e87e04" }, "downloads": -1, "filename": "pylibconfig2-0.1.3.tar.gz", "has_sig": false, "md5_digest": "fda3d12256ce9a27ef26294862336824", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4287, "upload_time": "2014-04-30T06:31:03", "url": "https://files.pythonhosted.org/packages/a4/1e/9451005b3e5557505581ca410ffdafcc6e36345278498ffbf25aa09be224/pylibconfig2-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "b5ddbe3d5e4cbf3d65a32a6a00fa13a7", "sha256": "9b48f43479bf6d0818b40be8bc051f68f5595f01e280ae5b1b2439148c47b322" }, "downloads": -1, "filename": "pylibconfig2-0.1.4.tar.gz", "has_sig": false, "md5_digest": "b5ddbe3d5e4cbf3d65a32a6a00fa13a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4316, "upload_time": "2014-09-23T13:44:38", "url": "https://files.pythonhosted.org/packages/15/71/9afe55be4ea50e238dc4b6b7740477b8bd6d5a84934f0242d22036e7bb03/pylibconfig2-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "08087bda949a8fe5fed776be07827132", "sha256": "089240790c532b9a65b25194512910b37ec6db1588ed10490d5917e6c0de07c6" }, "downloads": -1, "filename": "pylibconfig2-0.1.5.tar.gz", "has_sig": false, "md5_digest": "08087bda949a8fe5fed776be07827132", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4336, "upload_time": "2015-01-14T14:30:33", "url": "https://files.pythonhosted.org/packages/a2/cf/4139dc274f6b22753aeb9323faad05f0487d4541245ca1102038a38eac34/pylibconfig2-0.1.5.tar.gz" } ], "0.1dev": [ { "comment_text": "", "digests": { "md5": "805cd957c64b07e5f3bedce461f5e7f8", "sha256": "a0614c5b7038eb1d7ae5b0324e9490169dde85c82a47d598592945559dd58e28" }, "downloads": -1, "filename": "pylibconfig2-0.1dev.tar.gz", "has_sig": false, "md5_digest": "805cd957c64b07e5f3bedce461f5e7f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3552, "upload_time": "2014-04-29T15:05:50", "url": "https://files.pythonhosted.org/packages/95/5b/2b4b7ce5cba777bdee585e3291fb70f47ee45a602e36d9e8ed20f979d321/pylibconfig2-0.1dev.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "37558ccfc39f25bd6eb7f340b366824e", "sha256": "04788b88e4c57cc9c9561c8b0dc90c14abfb834f1c5f119dd658b784c71529a8" }, "downloads": -1, "filename": "pylibconfig2-0.2.0.tar.gz", "has_sig": false, "md5_digest": "37558ccfc39f25bd6eb7f340b366824e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4699, "upload_time": "2015-01-21T12:25:42", "url": "https://files.pythonhosted.org/packages/f3/4c/e933b3ad8ddc907406bbebd3624bb4b53ac2040e4967a904f278267d049e/pylibconfig2-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "1eea0bbb8be103480e915b1d2b6e28ff", "sha256": "33aa00744a0633b9c5116b405190e2107ac405f3abc42edb033530b9845593a8" }, "downloads": -1, "filename": "pylibconfig2-0.2.1.tar.gz", "has_sig": false, "md5_digest": "1eea0bbb8be103480e915b1d2b6e28ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4711, "upload_time": "2015-03-18T12:42:50", "url": "https://files.pythonhosted.org/packages/b6/54/5ae79a42174fea3b126aa6833e4af3fd63cc57cda870bff09c9fc7df9880/pylibconfig2-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "37bfaa4071c6636b994ff2906525f065", "sha256": "62cafd9b928152c8368691d559eb304ca1202b16dc845452398c0d8b733a97e6" }, "downloads": -1, "filename": "pylibconfig2-0.2.2.tar.gz", "has_sig": false, "md5_digest": "37bfaa4071c6636b994ff2906525f065", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5099, "upload_time": "2015-04-02T14:08:31", "url": "https://files.pythonhosted.org/packages/ed/26/2f6dc518f44707b43692099c280407487baff08c4b79e31cc792903f9c84/pylibconfig2-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "71f8314dba7af1fca6af60e5697d3ca3", "sha256": "52b8a885657072e9d579fc3d8c352b23a0e87863088b22e58fbb54dcce2fdf59" }, "downloads": -1, "filename": "pylibconfig2-0.2.3.tar.gz", "has_sig": false, "md5_digest": "71f8314dba7af1fca6af60e5697d3ca3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5147, "upload_time": "2015-07-08T13:37:45", "url": "https://files.pythonhosted.org/packages/f7/3e/c8f77ac5a2e30dbd9ec02dfe15477a51be18e77c1d64ff94209fd0121da6/pylibconfig2-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "07d42599d3e230978551c53757caa261", "sha256": "0fcf9371a316ea61d28c6e37227c54ac8ab5c84011f6c2a014111ad9e833cf4f" }, "downloads": -1, "filename": "pylibconfig2-0.2.4.tar.gz", "has_sig": false, "md5_digest": "07d42599d3e230978551c53757caa261", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5161, "upload_time": "2015-07-14T20:26:03", "url": "https://files.pythonhosted.org/packages/24/d7/9848f89bb76d46c065f3a0ffc4cc02db75ec0240223f10484821d5e52732/pylibconfig2-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "d3bf6413efb3457c576db3015d479804", "sha256": "186bd2d88356036ac8770195c8a3e9bac3ccdb3b9e6ecf04be62c307760895c7" }, "downloads": -1, "filename": "pylibconfig2-0.2.5.tar.gz", "has_sig": false, "md5_digest": "d3bf6413efb3457c576db3015d479804", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5293, "upload_time": "2015-11-09T10:39:58", "url": "https://files.pythonhosted.org/packages/4f/21/7f8e9c2c9227a7f78106c16583166b6f38701e75cf33e19737397868b81c/pylibconfig2-0.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3bf6413efb3457c576db3015d479804", "sha256": "186bd2d88356036ac8770195c8a3e9bac3ccdb3b9e6ecf04be62c307760895c7" }, "downloads": -1, "filename": "pylibconfig2-0.2.5.tar.gz", "has_sig": false, "md5_digest": "d3bf6413efb3457c576db3015d479804", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5293, "upload_time": "2015-11-09T10:39:58", "url": "https://files.pythonhosted.org/packages/4f/21/7f8e9c2c9227a7f78106c16583166b6f38701e75cf33e19737397868b81c/pylibconfig2-0.2.5.tar.gz" } ] }