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
pymysql-json-cli-0.0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for pymysql_json_cli-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3762b0b7f36b25a0c8033fc48598fd931a0761a89d2f998a70f652a6a9bb216 |
|
MD5 | 5d8eed240ac9052c31aa0c04dcee90ba |
|
BLAKE2b-256 | 7f48ba6ac76eff1f59cab016a184e274e70ffb603b83f80358064a051313ce26 |