Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.28 KB

README.md

File metadata and controls

39 lines (26 loc) · 1.28 KB

An objectpath query and templating engine

Installation

Note: SakStig only supports Python 3.

pip install sakstig

SakStig path expressions

SakStig is an objectpath implementation that uses proper querysets and supports querying any python object that supports the dict or list interfaces (the default implementation only supports the real dict and list types).

ObjectPath compatibility

You can turn off some of the ObjectPath compatibility features to get more homogenous semantics.

SakForm templating

A SakForm template is a valid JSON document. It is applied to a data JSON document to produce an output JSON document. Values in the template are copied to the output verbatim, except for the special object member "$", which allows you to do powerfull transformations using SakStig expressions.

Tests

This repository uses the tests of ObjectPath to verify compatibility. To run the tests you need to clone ObjectPath into a subdirectory of this repository:

git clone [email protected]:adriank/ObjectPath.git
pip install nose
nosetests -v tests