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.

Source Distribution

parserz-0.12.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page