{ "info": { "author": "Ian Lesperance", "author_email": "ian@elliterate.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Text Processing :: Markup :: XML", "Topic :: Utilities" ], "description": "XPath\n=====\n\nXPath is a Python DSL around a subset of XPath 1.0. Its primary purpose is to\nfacilitate writing complex XPath queries from Python code.\n\n|build|_\n\n.. |build| image:: https://secure.travis-ci.org/elliterate/xpath.py.svg?branch=master\n.. _build: http://travis-ci.org/elliterate/xpath.py\n\nGenerating expressions\n----------------------\n\nTo create expressions, use the generators in |xpath.dsl|_::\n\n from xpath import dsl as x\n from xpath.renderer import to_xpath\n\n expression = x.descendant(\"ul\")[x.attr(\"id\") == \"foo\"]\n xpath = to_xpath(expression)\n\n.. |xpath.dsl| replace:: ``xpath.dsl``\n.. _xpath.dsl: https://github.com/elliterate/xpath.py/blob/master/xpath/dsl.py\n\nHTML\n----\n\nXPath comes with a set of premade XPaths for use with HTML documents.\n\nYou can generate these like this::\n\n from xpath.html import button\n from xpath.renderer import to_xpath\n\n to_xpath(button(\"Save\"), exact=True)\n\nSee |xpath.html|_ for all available matchers.\n\n.. |xpath.html| replace:: ``xpath.html``\n.. _xpath.html: https://github.com/elliterate/xpath.py/blob/master/xpath/html.py\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright \u00a9 2010 Jonas Nicklas\n\nCopyright \u00a9 2016 Ian Lesperance\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \u2018Software\u2019), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject 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 \u2018AS IS\u2019, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/elliterate/xpath.py", "keywords": "xpath", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "xpath-py", "package_url": "https://pypi.org/project/xpath-py/", "platform": "", "project_url": "https://pypi.org/project/xpath-py/", "project_urls": { "Homepage": "https://github.com/elliterate/xpath.py" }, "release_url": "https://pypi.org/project/xpath-py/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "Python library for generating XPath expressions", "version": "0.1.2" }, "last_serial": 3162416, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f6af187bfc3991717b1082b870443075", "sha256": "8fa300044e749eaaabbde24b62a5123ce7e981e24000ffe9366278d1cd41188d" }, "downloads": -1, "filename": "xpath-py-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f6af187bfc3991717b1082b870443075", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9694, "upload_time": "2016-08-02T03:43:42", "url": "https://files.pythonhosted.org/packages/24/cd/1903ce60fdbb11d72b6f9cb0873cf666419f35f98d8400a1e474b2f0aa41/xpath-py-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "1d7072e14a49f7516b7068508709a360", "sha256": "ae3b6f05a5ddbcdad9054243fce9f2747894141c04dd2f6949b3e45c9d722e16" }, "downloads": -1, "filename": "xpath-py-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1d7072e14a49f7516b7068508709a360", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10248, "upload_time": "2016-08-08T02:58:08", "url": "https://files.pythonhosted.org/packages/ef/b7/a974bd27a1d8662f70020a265bd518881d71aa6e7f3d4172b80b5f7c0189/xpath-py-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "bd7b805f4a3a31d21ac9296acf679042", "sha256": "99c21c9e0e7f1eda07aea1d568aaa65884f30455dd4aaa0d14284916f6fd7b37" }, "downloads": -1, "filename": "xpath-py-0.0.3.tar.gz", "has_sig": false, "md5_digest": "bd7b805f4a3a31d21ac9296acf679042", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10275, "upload_time": "2016-09-03T22:55:23", "url": "https://files.pythonhosted.org/packages/07/22/e27009aa7ae6702f366ce5af20823bf2f06b7d752758d26ab96163d212ac/xpath-py-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "ae549cea8c44c5e4952ff52e2f7daf31", "sha256": "5fc19157408462417d89df6483cd294a007a287f463aff2f1c2d58fc638c6d4a" }, "downloads": -1, "filename": "xpath-py-0.0.4.tar.gz", "has_sig": false, "md5_digest": "ae549cea8c44c5e4952ff52e2f7daf31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10298, "upload_time": "2016-09-09T04:54:29", "url": "https://files.pythonhosted.org/packages/58/95/8776f74b89b23fb46e1feba407efd0d1b28bb9774414223bf547d35796c6/xpath-py-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "43d928c605c4fbbf1434dac4e98c5450", "sha256": "cd5b96acb40d32c24559681f1a06e23784e09138dbe83ae4e648b6d5b3ef5634" }, "downloads": -1, "filename": "xpath-py-0.0.5.tar.gz", "has_sig": false, "md5_digest": "43d928c605c4fbbf1434dac4e98c5450", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10350, "upload_time": "2017-08-28T17:11:20", "url": "https://files.pythonhosted.org/packages/1f/1a/936fc68948d6b0a9bab9a8b4270ec91189af8581181d1c9f1a151d46d7ea/xpath-py-0.0.5.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "f801987311030325a5c03001c6a11cc3", "sha256": "0d238afa74bb1da4d1010d947052115d697da8debdb0dd56125261c8d7afff9a" }, "downloads": -1, "filename": "xpath-py-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f801987311030325a5c03001c6a11cc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10350, "upload_time": "2017-08-28T20:13:11", "url": "https://files.pythonhosted.org/packages/8f/6e/34a8336ea02a8a66be410187fff8b454d2cafd4ca596de761af512a542a5/xpath-py-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5ae4509438af5fa907c7bc9132d5922b", "sha256": "90eb3f8245081ffdfdc3559d38e74a7f55f586e4dac5f1d92c08b0ab0a250766" }, "downloads": -1, "filename": "xpath-py-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5ae4509438af5fa907c7bc9132d5922b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10365, "upload_time": "2017-08-29T17:09:57", "url": "https://files.pythonhosted.org/packages/7c/f7/6dc4ac9273995c28f93eff80207e5ea9492bbe29b45a92db93cdd51d2658/xpath-py-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ed5557fabeca7b0ff291ca5d28899f97", "sha256": "6e111a0be0df610d3fad7acf03f2e5dcaeec1b6d724a708a397f838dc0c463fa" }, "downloads": -1, "filename": "xpath-py-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ed5557fabeca7b0ff291ca5d28899f97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10793, "upload_time": "2017-09-09T22:16:01", "url": "https://files.pythonhosted.org/packages/9e/dc/9f056e5ca38816a0b87fdd94d8902b054f6e0db30ac99810b7a5f1516ea8/xpath-py-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ed5557fabeca7b0ff291ca5d28899f97", "sha256": "6e111a0be0df610d3fad7acf03f2e5dcaeec1b6d724a708a397f838dc0c463fa" }, "downloads": -1, "filename": "xpath-py-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ed5557fabeca7b0ff291ca5d28899f97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10793, "upload_time": "2017-09-09T22:16:01", "url": "https://files.pythonhosted.org/packages/9e/dc/9f056e5ca38816a0b87fdd94d8902b054f6e0db30ac99810b7a5f1516ea8/xpath-py-0.1.2.tar.gz" } ] }