React like string builder
Project description
Usage
import strinpy
condition = True
output = strinpy.build([
'text',
condition and 'condition text',
condition and ['condition text list'],
condition and (lambda: 'supplier text'),
[
'text list',
[
'in text list'
]
]
])
print(output)
"""
text
condition text
condition text list
supplier text
text list
in text list
"""
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
strinpy-0.0.3.tar.gz
(2.7 kB
view hashes)