sqlcop
A cli tool to check and guard against anti-patterns
Installation
From PyPI:
pip install sqlcop
Usage
sqlcop is designed to use with nose-sqlcapture.
First, you use nose-sqlcapture to generate a SQL capture file:
nosetests [other options] --with-sqlcapture --sqlcapture-filename=sql.log --sqlcapture-format=json
Run sqlcop on the generated sql log fie:
sqlcop sql.log
For some checks, a database schema is needed. In that case, you need to supply the url to the database so sqlcop can grab the metadata:
sqlcop --db-urls=mysql://user:pwd@host:port/db sql.log
You can specify more than one db_urls at once:
sqlcop --db-urls=mysql://user:pwd@host:port/db1,mysql://user:pwd@host:port/db2 sql.log
Metadata
Release files for sqlcop 0.10.18
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 | Actions |
|---|---|---|---|---|
| sqlcop-0.10.18.tar.gz | 8.9 kB | Without provenance | Details for sqlcop-0.10.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sqlcop-0.10.18-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sqlcop-0.10.18-py2.py3-none-any.whl |
Total release size: 15.2 kB
Release files / sqlcop-0.10.18.tar.gz
| Download URL | sqlcop-0.10.18.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5982d20247d9b59636a8f3c7f385efe2f541795e638abe8f54a772589e01b97
|
|
BLAKE2b-256 checksum How to use checksums |
58d13443693ebc96cb48074ccc0f33cff8f1d9313fdf0bfdb791a56239fb8ffe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / sqlcop-0.10.18-py2.py3-none-any.whl
| Download URL | sqlcop-0.10.18-py2.py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
85afcc0d43e6bb698ed628552c3fce0c16fb75d7b7f447e4e6e624dfe0fdece9
|
|
BLAKE2b-256 checksum How to use checksums |
2c03a1865ca12d1176dbda79e54c2549882c460f279e5a81fd071cd4501a89d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for sqlcop 0.10.18
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.