Extract, resolve and replace [SIGILS] embedded in text.
Project description
A sigil is a token embedded in text, used as a placeholder for a future value. When resolved, the actual value will be extracted from an user-provided or global context.
This library contains tools to extract, replace and resolve such sigils.
Installing
Install and update using pip:
pip install -U sigils
Using Sigils
A typical sigil has one of the following forms:
[USERNAME]
[SETTINGS.BASE_DIR]
[MODEL='natural-key'.FIELD]
[MODEL.USR=[USERNAME].STATUS]
Dependencies
lark: Allows us to parse arbitrarily complex sigils fast.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sigils-0.0.3.tar.gz
(4.8 kB
view hashes)