SQLFMT
SQLFMT - An uncompromising SQL query formatter.
SQLFMT is an uncompromising SQL query formatter, which provides one and only one way to format the SQL query. Our goal is to make code reviews faster by producing the smallest diffs possible. You will save time and mental energy on more important matters.
Please note this project is still in the planning stage and everything may be changed in the future.
How to install SQLFMT?
You can install SQLFMT from Python Package Index:
pip install sqlfmt
How to use SQLFMT?
Given a SQL file, you can simply use the following command to format it:
sqlfmt path/to/file.sql
You can install completion for a specfic shell:
sqlfmt --install-completion bash
You can also run the following command to find more other options:
sqlfmt --help
How does SQLFMT work?
It formats your SQL code in place.
For example, if you have a file containing the following SQL code:
SeLEct 1, blah as fOO from myTable
after running SQLFMT, the content of that file will become:
SELECT
1,
blah AS foo
FROM mytable
Metadata
Release files for sqlfmt 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sqlfmt-0.0.3.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqlfmt-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / sqlfmt-0.0.3.tar.gz
| Download URL | sqlfmt-0.0.3.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed7987c12f9f2471382dfbf9fb2f70ca6d19efc8c7db97c95920289f3b7ac4ea
|
|
BLAKE2b-256 checksum How to use checksums |
5229573f35bd9417bc84df244785fe36f0b855d045c7a66856b4a4bddc70cf65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / sqlfmt-0.0.3-py3-none-any.whl
| Download URL | sqlfmt-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d43016d0e89d689e032bb18a48b03fd236c93e94401ddef9cd4f19e28593f7b8
|
|
BLAKE2b-256 checksum How to use checksums |
d108e627ace5ea30606110b33ee19e5314765bce8024f60132f7e12674c0a667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for sqlfmt 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.