Easy parser for parse template $variable
Project description
parserz
Easy parser for parse template $variable
Features
- Support do dots for fileds
Install
$ pip install parserz
Use
Simple Use
from parserz import parser
data = ['$a.1.c', '$b']
context = {
'a': [1, {'c': 'hello'}],
'b': 123456
}
result = parser.parse(data, context)
print(result)
output:
['hello', 123456]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
parserz-0.15.tar.gz
(3.2 kB
view hashes)