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

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page