pymysql wrapper for cli use
Project description
pymysql-json-cli
install
pip install pymysql-json-cli
usage
cat << EOF |
SHOW DATABASES;
EOF
pymysql-json
# [{"Database": "information_schema"}, {"Database": "test"}]
cat <<EOF |
SELECT *
FROM %(table_name)s
EOF
pymysql-json --args '{"table_name": "test_table"}'
# [{"test_column": "arg_value"}, {"test_column": "test_value"}]
echo "SHOW DATABASES;" > db.sql
pymysql-json --sqlfile ./db.sql
# [{"Database": "information_schema"}, {"Database": "test"}]
development
- Need
- cargo-make
- docker
lint & test
makers --env-file .env.test tests
lint except python code
makers --env-file .env.test lints
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymysql-json-cli-0.0.1.tar.gz.
File metadata
- Download URL: pymysql-json-cli-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.3 Darwin/19.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9dc7c2ca0459935dcfd7a747c99529f8e31f6f296b18d8541adbe4ab80c0866
|
|
| MD5 |
bbf27b4ee8690985ea0ee148cf641f21
|
|
| BLAKE2b-256 |
341e2e50a0abd8d82573bac18ad34093126da2047c1c96e4b24b750d52e976c9
|
File details
Details for the file pymysql_json_cli-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pymysql_json_cli-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.3 Darwin/19.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3762b0b7f36b25a0c8033fc48598fd931a0761a89d2f998a70f652a6a9bb216
|
|
| MD5 |
5d8eed240ac9052c31aa0c04dcee90ba
|
|
| BLAKE2b-256 |
7f48ba6ac76eff1f59cab016a184e274e70ffb603b83f80358064a051313ce26
|