shlex — Parse Shell-style Syntaxes — PyMOTW 3
Originally posted · 1 min read
The shlex module implements a class for parsing simple shell-like syntaxes. It can be used for writing a domain-specific language, or for parsing quoted strings (a task that is more complex than it seems on the surface).
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.