format-sql icon indicating copy to clipboard operation
format-sql copied to clipboard

Lack of documentation on how to use from python

Open yhojann-cl opened this issue 5 years ago • 1 comments

This package is part of the pip repository manager for python, fine, but how do you use it from a python script? There is only information on how to run it as a binary.

yhojann-cl avatar Jun 07 '20 23:06 yhojann-cl

from format_sql.shortcuts import format_sql

formatted = format_sql(sql)

tardyp avatar Jul 13 '21 13:07 tardyp