1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-sqlparse
7 SDESC[py310]= Non-validating SQL parser (3.10)
8 SDESC[py39]= Non-validating SQL parser (3.9)
9 HOMEPAGE= https://github.com/andialbrecht/sqlparse
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPIWHL/97/d3/31dd2c3e48fc2060819f4acb0686248250a0f2326356306b38a42e059144
14 DISTFILE[1]= sqlparse-0.4.3-py3-none-any.whl:main
19 OPTIONS_AVAILABLE= PY39 PY310
20 OPTIONS_STANDARD= none
21 VOPTS[py310]= PY39=OFF PY310=ON
22 VOPTS[py39]= PY39=ON PY310=OFF
26 DISTNAME= sqlparse-0.4.3.dist-info
29 CPE_VENDOR= sqlparse_project
32 [PY39].USES_ON= python:py39,wheel
34 [PY310].USES_ON= python:py310,wheel
36 [FILE:2266:descriptions/desc.single]
37 python-sqlparse - Parse SQL statements
38 ======================================
47 sqlparse is a non-validating SQL parser for Python.
48 It provides support for parsing, splitting and formatting SQL statements.
50 The module is compatible with Python 3.5+ and released under the terms of
54 Visit the project page at https://github.com/andialbrecht/sqlparse for
55 further information about this project.
62 $ pip install sqlparse
64 .. code-block:: python
68 >>> # Split a string containing two SQL statements:
69 >>> raw = 'select * from foo; select * from bar;'
70 >>> statements = sqlparse.split(raw)
72 ['select * from foo;', 'select * from bar;']
74 >>> # Format the first statement and print it out:
75 >>> first = statements[0]
76 >>> print(sqlparse.format(first, reindent=True, keyword_case='upper'))
80 >>> # Parsing a SQL statement:
81 >>> parsed = sqlparse.parse('select * from foo')[0]
83 [<DML 'select' at 0x7f22c5e15368>, <Whitespace ' ' at 0x7f22c5e153b0>,
91 https://github.com/andialbrecht/sqlparse
94 https://github.com/andialbrecht/sqlparse/issues
97 https://sqlparse.readthedocs.io/
100 https://sqlformat.org/
102 sqlparse is licensed under the BSD license.
104 Parts of the code are based on pygments written by Georg Brandl and others.
105 pygments-Homepage: http://pygments.org/
107 .. |buildstatus| image::
108 https://github.com/andialbrecht/sqlparse/actions/workflows/python-app.yml/badge.svg
110 https://github.com/andialbrecht/sqlparse/actions/workflows/python-app.yml
111 .. |coverage| image::
112 https://codecov.io/gh/andialbrecht/sqlparse/branch/master/graph/badge.svg
113 .. _coverage: https://codecov.io/gh/andialbrecht/sqlparse
115 https://readthedocs.org/projects/sqlparse/badge/?version=latest
116 .. _docs: https://sqlparse.readthedocs.io/en/latest/?badge=latest
117 .. |packageversion| image::
118 https://img.shields.io/pypi/v/sqlparse?color=%2334D058&label=pypi%20package
119 .. _packageversion: https://pypi.org/project/sqlparse
123 0323c0ec29cd52bceabc1b4d9d579e311f3e4961b98d174201d5622a23b85e34 42768 sqlparse-0.4.3-py3-none-any.whl