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
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
plainquotes-0.0.1.tar.gz
(2.8 kB
view details)
File details
Details for the file plainquotes-0.0.1.tar.gz.
File metadata
- Download URL: plainquotes-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
775db3e02be3b4e5cb2cf75fa6beeaa2348d1cea4b19f300edc050a0397c3821
|
|
| MD5 |
4dfc749b169a06373dc696685eebc92d
|
|
| BLAKE2b-256 |
dba5f0072a96ef6a3d5aadc436a06e42fbdf126225932c4d3050a06bf3783634
|