Skip to main content

This package adds functionality to the auto plain nested quotes in a string

Project description

Auto plain nested quotes

The purpose of this package is to provide a simple way to get a correct scaped nested quoted string from an unescaped one. The input string uses a combination of single and double quotes. The output one is always using one type of quotes but scaping it wherever needed.

Getting started

Installation via pip:

pip install plainquotes

Using it:

from plainquotes import plain_quotes

print(plain_quotes("""'This is a "simpler" quoted string'"""))

Output:

'This is a \'simpler\' quoted string'

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

plainquotes-0.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

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