Use xpath style paths with docutils document trees.
The docpath package aims to provide a way of specifying paths to nodes, or sets of nodes, in a docutils doctree. Where practical it uses similar syntax to xpath 1.0, but diverges from this to allow easier parsing and evaluation of paths using common python tools and language features.
pip3 install docpath
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size docpath-0.1.1-py3-none-any.whl (14.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size docpath-0.1.1.tar.gz (27.9 kB)||File type Source||Python version None||Upload date||Hashes View|