Skip to content

sersanchus/plainquotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages