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]
Metadata
Release files for parserz 0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| parserz-0.15.tar.gz | 3.2 kB | Details |
Release files / parserz-0.15.tar.gz
| Download URL | parserz-0.15.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c01c3ee4b5bb806a95065d4c2ec132a3f9b0a9deef2e80a9ad54ea02671598d7
|
|
BLAKE2b-256 checksum How to use checksums |
a4459517d068421f4cc2f6016e9046402c57c90c26e1a0d5917dccf1dba4f9bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|