Skip to main content

React like string builder

Project description

https://img.shields.io/github/license/mashape/apistatus.svg https://badge.fury.io/py/strinpy.svg

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)

Uploaded Source

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

Hashes for strinpy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b7cb8897b67c745a545b3bc2e18b34336632b8c6169e36e254b3ccbafba189ac
MD5 29182461e4893881af4e7743c152c0c8
BLAKE2b-256 fd96307e29b9bef2ef773be6e9fa00dfd25ee2e02ebb07309cf74fbb7ed9990a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page