Skip to main content

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.

Files for parserz, version 0.15
Filename, size File type Python version Upload date Hashes
Filename, size parserz-0.15.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page