{ "info": { "author": "Dusan Klinec", "author_email": "dusan.klinec@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP" ], "description": "Nginx Configuration Parser\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nAn nginx configuration parser that uses Pyparsing.\n\nYou can parse a nginx configuration file with ``load`` or ``loads``\nmethod:\n\n.. code:: python\n\n >>> from nginxparser_eb import load\n >>> load(open(\"/etc/nginx/sites-enabled/foo.conf\"))\n\n [['server'], [\n ['listen', '80'],\n ['server_name', 'foo.com'],\n ['root', '/home/ubuntu/sites/foo/']]]]\n\n\nSame as other serialization modules also you can export configuration\nwith\n\n.. code:: python\n\n >>> from nginxparser_eb import load\n >>> load(open(\"/etc/nginx/sites-enabled/foo.conf\"))\n\n [['server'], [\n ['listen', '80'],\n ['server_name', 'foo.com'],\n ['root', '/home/ubuntu/sites/foo/']]]]\n\n\nSame as other serialization modules also you can export configuration\nwith ``dump`` and ``dumps`` methods.\n\n.. code:: python\n\n >>> from nginxparser_eb import dumps\n >>> dumps([['server'], [\n ['listen', '80'],\n ['server_name', 'foo.com'],\n ['root', '/home/ubuntu/sites/foo/']]])\n\n 'server {\n listen 80;\n server_name foo.com;\n root /home/ubuntu/sites/foo/;\n }'\n\n\nInstallation\n------------\n\nThe Nginx parser is now available via pip:\n\n::\n\n pip install nginxparser_eb\n\n\n\nTroubleshooting\n---------------\n\nException like this may occur:\n\n::\n\n ParseException: Expected {Group:({W:(ABCD...) [{Suppress:() !W:({};)}] Suppress:(\";\")}) | Forward: ...} (at char 0), (line:1, col:1)\n\nIt may be caused by importing Cmd2 package which modifies pyparsing globals. In particular, the following code causes\nthe trouble:\n\n.. code:: python\n\n pyparsing.ParserElement.setDefaultWhitespaceChars(' \\t')\n\nIn this setting the pyparser parser stops parsing after a new line.\n\nFrom this reason, importing pyparsing modifies set white space chars back to\n\n.. code:: python\n\n pyparsing.ParserElement.setDefaultWhitespaceChars(\" \\n\\t\\r\")\n\n\nCredits\n-------\n\nBased on the https://github.com/fatiherikli/nginxparser and CertBot Nginx parser.", "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/EnigmaBridge/nginxparser", "keywords": null, "license": "The MIT License (MIT)\n\nCopyright (c) 2014 Fatih Erikli\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "nginxparser_eb", "package_url": "https://pypi.org/project/nginxparser_eb/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nginxparser_eb/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/EnigmaBridge/nginxparser" }, "release_url": "https://pypi.org/project/nginxparser_eb/0.0.9/", "requires_dist": null, "requires_python": null, "summary": "Nginx configuration Parser", "version": "0.0.9" }, "last_serial": 2736243, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "932a813f54526e6fbf25758309deda6e", "sha256": "756bb7907947d092fc6525675af5b226f162d728193c19694afdbd17324b1513" }, "downloads": -1, "filename": "nginxparser_eb-0.0.3.tar.gz", "has_sig": false, "md5_digest": "932a813f54526e6fbf25758309deda6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2422, "upload_time": "2017-02-23T09:37:40", "url": "https://files.pythonhosted.org/packages/8a/13/323086ab2894a44d6d35df0fd5a948dda99ee4f7d79dcbea91aaf2578c48/nginxparser_eb-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "669ee3cabd63d7ae94228386e394fefa", "sha256": "506ddd0f9ef862b2e79ccd1f2482b01d1d0e72d2387aa988e777a0e928b6575d" }, "downloads": -1, "filename": "nginxparser_eb-0.0.4.tar.gz", "has_sig": false, "md5_digest": "669ee3cabd63d7ae94228386e394fefa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3635, "upload_time": "2017-02-23T11:58:10", "url": "https://files.pythonhosted.org/packages/9a/0b/990ebba63d5712c1db638bba0887da34310b19c144232faeffed8d921a61/nginxparser_eb-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "0e2269436dcfc9a3eff3f7896230bc85", "sha256": "b5156ebf1b1a4d93903de03eeb6ff917878a435aedead78984efbf4cc466b9ca" }, "downloads": -1, "filename": "nginxparser_eb-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0e2269436dcfc9a3eff3f7896230bc85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3616, "upload_time": "2017-02-23T12:02:19", "url": "https://files.pythonhosted.org/packages/d8/5a/4bcbd5c1e9ec15d5883c0903ec761d14f526437accbd5d45108d317f71e4/nginxparser_eb-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "026315036ea787a9f157852de6496f17", "sha256": "fb42229f48b5989cc50a7d18398bc26d631523efa95ade1668c404788c487bef" }, "downloads": -1, "filename": "nginxparser_eb-0.0.6.tar.gz", "has_sig": false, "md5_digest": "026315036ea787a9f157852de6496f17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3991, "upload_time": "2017-02-23T13:29:23", "url": "https://files.pythonhosted.org/packages/fa/4c/f7ba45667522f7be6a5023599e12b1929e51f979121bb32581c4db41431c/nginxparser_eb-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "161f96518b3e34eb0448a07df6008055", "sha256": "105485d01c5c1af087f45237ad63dfad5e750523e5a445735174702fe6f7b472" }, "downloads": -1, "filename": "nginxparser_eb-0.0.7.tar.gz", "has_sig": false, "md5_digest": "161f96518b3e34eb0448a07df6008055", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10806, "upload_time": "2017-03-27T13:21:34", "url": "https://files.pythonhosted.org/packages/33/a9/968805286b4512e13fddb08e8927b2c3c0e705aac162dbc09616d6e52472/nginxparser_eb-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "b415a4ca191ae1a294604ed519ab7147", "sha256": "7b9f8e75ca6f2d9a3ce9b57b74bf21bd1bee60c5c67ef2042ecc8b58c19249fb" }, "downloads": -1, "filename": "nginxparser_eb-0.0.8.tar.gz", "has_sig": false, "md5_digest": "b415a4ca191ae1a294604ed519ab7147", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11873, "upload_time": "2017-03-27T16:25:32", "url": "https://files.pythonhosted.org/packages/e8/61/1da3528576d39c34b8eaf6d0e4944b3268fbef20a7665e7d164a1f70539e/nginxparser_eb-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "02e65770ee86263f0cde1df972ab3411", "sha256": "e3fb2a237dd0d3738887a764ade567770d37d2af70409b1c0fda57ff3a6f11b1" }, "downloads": -1, "filename": "nginxparser_eb-0.0.9.tar.gz", "has_sig": false, "md5_digest": "02e65770ee86263f0cde1df972ab3411", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12373, "upload_time": "2017-03-28T14:13:34", "url": "https://files.pythonhosted.org/packages/1f/97/a176ab33d8c6bdcae00d6e20204281f9361941dccfc6cdf2aafc37509334/nginxparser_eb-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "02e65770ee86263f0cde1df972ab3411", "sha256": "e3fb2a237dd0d3738887a764ade567770d37d2af70409b1c0fda57ff3a6f11b1" }, "downloads": -1, "filename": "nginxparser_eb-0.0.9.tar.gz", "has_sig": false, "md5_digest": "02e65770ee86263f0cde1df972ab3411", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12373, "upload_time": "2017-03-28T14:13:34", "url": "https://files.pythonhosted.org/packages/1f/97/a176ab33d8c6bdcae00d6e20204281f9361941dccfc6cdf2aafc37509334/nginxparser_eb-0.0.9.tar.gz" } ] }