Metadata-Version: 2.4
Name: xpathify
Version: 0.1.0a1
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing :: Markup :: HTML
License-File: LICENSE-MIT
License-File: LICENSE-APACHE
Summary: Python bindings for xpathify, a CSS selector to XPath converter written in Rust.
Keywords: css,xpath,selector,converter,html,rust
Author-email: Ronie Martinez <ronmarti18@gmail.com>
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# xpathify

Python bindings for xpathify, a CSS selector to XPath converter written in Rust.

## Python

```sh
pip install xpathify
```

```python
from xpathify import xpathify

xpathify("div > p")  # '//div/p'
xpathify("a#main")  # '//a[@id="main"]'
xpathify("ul > li:nth-of-type(2)")  # '//ul/li[2]'
xpathify("div,span")  # '' (unsupported selector)
```

