Skip to main content

SQL Formatter based on sqlparse

Project description

sqlmakeuper

Python library with CLI interface for sql formatting based on sqlparse

Installation

pip install sqlmakeuper

Using

Format with default parameters

sqlmakeup --path /path/with/files/to/format
  • Default parameters are (reindent=True, indent_width=4, keyword_case="lower", identifier_case="lower", comma_first=True,)

Format with custom parameters

sqlmakeup --path /path/with/files/to/format --parameters '{"comma_first":0}'

Check with custom parameters

sqlmakeup --path /path/with/files/to/format --check

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlmakeuper-0.1.1.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

sqlmakeuper-0.1.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file sqlmakeuper-0.1.1.tar.gz.

File metadata

  • Download URL: sqlmakeuper-0.1.1.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.4.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.13

File hashes

Hashes for sqlmakeuper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e79266d4dd2d5ae1e9d4e45cf69965a9305ea72aaaf1fc9bbff6a612c8d9fc62
MD5 a31a788e3caf2ce454626e7774a8fb5f
BLAKE2b-256 61262b8254965406b163b6dec3c2bf63efe30144470e6670d12bbc00948a3f70

See more details on using hashes here.

File details

Details for the file sqlmakeuper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sqlmakeuper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.4.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.13

File hashes

Hashes for sqlmakeuper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3412b53be7ad56d83c0d15c51879710cd847b437e347a56fc5e3276e8a92a9f
MD5 ca97d57a9ee29f64cce4c5be9e6c39b6
BLAKE2b-256 6e5e75834445f343a52103b220218696388e2c6db3ced90a3402eec4ac518c28

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page