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.4.tar.gz
(2.7 kB
view details)
File details
Details for the file strinpy-0.0.4.tar.gz
.
File metadata
- Download URL: strinpy-0.0.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7cb8897b67c745a545b3bc2e18b34336632b8c6169e36e254b3ccbafba189ac |
|
MD5 | 29182461e4893881af4e7743c152c0c8 |
|
BLAKE2b-256 | fd96307e29b9bef2ef773be6e9fa00dfd25ee2e02ebb07309cf74fbb7ed9990a |