Skip to main content

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


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)

Uploaded Source

Built Distribution

pymysql_json_cli-0.0.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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