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.15.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file parserz-0.15.tar.gz.

File metadata

  • Download URL: parserz-0.15.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for parserz-0.15.tar.gz
Algorithm Hash digest
SHA256 c01c3ee4b5bb806a95065d4c2ec132a3f9b0a9deef2e80a9ad54ea02671598d7
MD5 8bd80fd9b35c0f88f0c78440b2011457
BLAKE2b-256 a4459517d068421f4cc2f6016e9046402c57c90c26e1a0d5917dccf1dba4f9bb

See more details on using hashes here.

Supported by

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