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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for pymysql-json-cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c9dc7c2ca0459935dcfd7a747c99529f8e31f6f296b18d8541adbe4ab80c0866
MD5 bbf27b4ee8690985ea0ee148cf641f21
BLAKE2b-256 341e2e50a0abd8d82573bac18ad34093126da2047c1c96e4b24b750d52e976c9

See more details on using hashes here.

File details

Details for the file pymysql_json_cli-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pymysql_json_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3762b0b7f36b25a0c8033fc48598fd931a0761a89d2f998a70f652a6a9bb216
MD5 5d8eed240ac9052c31aa0c04dcee90ba
BLAKE2b-256 7f48ba6ac76eff1f59cab016a184e274e70ffb603b83f80358064a051313ce26

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