Python implementation of the RapidPro expression and templating system
Project description
RapidPro Expressions
====================
Python implementation of the RapidPro expression and templating system
Usage
-----
```python
context = new EvaluationContext()
context.put_variable("name", "bob jones")
evaluator = Evaluator()
output, errors = evaluator.evaluate_template("Hi @(PROPER(name))", context, False)
assert output == "Hi Bob Jones"
assert len(errors) == 0
```
====================
Python implementation of the RapidPro expression and templating system
Usage
-----
```python
context = new EvaluationContext()
context.put_variable("name", "bob jones")
evaluator = Evaluator()
output, errors = evaluator.evaluate_template("Hi @(PROPER(name))", context, False)
assert output == "Hi Bob Jones"
assert len(errors) == 0
```
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
rapidpro-expressions-1.0.2.tar.gz
(70.8 kB
view hashes)
Built Distribution
Close
Hashes for rapidpro-expressions-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d47adbfbaf674f232f3cbd1f4cb112cd79bff81293771420a8c57ed2db66388c |
|
MD5 | be39a43cc0c1805ef81899ef0539ef82 |
|
BLAKE2b-256 | d0144da61bd2a225b889c43f4342c2acbe0396967b0a2b640835004d62155753 |
Close
Hashes for rapidpro_expressions-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9074facb794d54c1c0fab8b0c60f1ba0b24d55b1c04800b4da8c00e1b88b2610 |
|
MD5 | 513e9a2e2dd5fbba609aa5f69b97998b |
|
BLAKE2b-256 | c709c3a19d7eec88c0807d8db21e81d4bacc0d25124ec78c363635111240c167 |