Metadata-Version: 1.1
Name: xpath-py
Version: 0.0.1
Summary: Python library for generating XPath expressions
Home-page: https://github.com/elliterate/xpath.py
Author: Ian Lesperance
Author-email: ian@elliterate.com
License: MIT
Description: XPath
        =====
        
        XPath is a Python DSL around a subset of XPath 1.0. Its primary purpose is to
        facilitate writing complex XPath queries from Python code.
        
        |build|_
        
        .. |build| image:: https://secure.travis-ci.org/elliterate/xpath.py.svg?branch=master
        .. _build: http://travis-ci.org/elliterate/xpath.py
        
        Generating expressions
        ----------------------
        
        To create expressions, use the generators in |xpath.dsl|_::
        
            from xpath.dsl import attr, descendant
            from xpath.renderer import to_xpath
        
            expression = descendant("ul")[attr("id") == "foo"]
            xpath = to_xpath(expression)
        
        .. |xpath.dsl| replace:: ``xpath.dsl``
        .. _xpath.dsl: https://github.com/elliterate/xpath.py/blob/master/xpath/dsl.py
        
        HTML
        ----
        
        XPath comes with a set of premade XPaths for use with HTML documents.
        
        You can generate these like this::
        
            from xpath.html import button
            from xpath.renderer import to_xpath
        
            to_xpath(button("Save"), exact=True)
        
        See |xpath.html|_ for all available matchers.
        
        .. |xpath.html| replace:: ``xpath.html``
        .. _xpath.html: https://github.com/elliterate/xpath.py/blob/master/xpath/html.py
        
        License
        -------
        
        (The MIT License)
        
        Copyright © 2010 Jonas Nicklas
        
        Copyright © 2016 Ian Lesperance
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of
        this software and associated documentation files (the ‘Software’), to deal in
        the Software without restriction, including without limitation the rights to
        use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
        of the Software, and to permit persons to whom the Software is furnished to do
        so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Keywords: xpath
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Markup :: HTML
Classifier: Topic :: Text Processing :: Markup :: XML
Classifier: Topic :: Utilities
