Sitelet https://pypi.org/project/spanner-cli/
Skip to main content

Project is Inactive!

spanner-cli

image image

A Terminal Client for Google Cloud Spanner with Completion and Syntax Highlighting.

Quick Start

pip3 install -U --user spanner-cli

or, for the latest develop version

pip3 install -U --user git+https://github.com/shoma/spanner-cli@master

Usage

Usage: spanner-cli [OPTIONS]

  A Google Cloud Spanner terminal client with auto-completion and syntax
  highlighting.

  https://github.com/shoma/spanner-cli

Options:
  -p, --project TEXT     Google Cloud Platform Project for spanner.
                         ${GCP_PROJECT}  [required]
  -i, --instance TEXT    Google Cloud Spanner instance to connect.
                         ${SPANNER_INSTANCE_ID}  [required]
  -d, --database TEXT    Google Cloud Spanner Database to connect.
                         ${SPANNER_DATABASE}  [required]
  -c, --credential PATH  path to credential file for Google Cloud Platform.
                         ${GOOGLE_APPLICATION_CREDENTIALS}
  --pager / --no-pager   use ${PAGER} (default LESS) to print output.
                         [default: False]
  -e, --execute TEXT     Execute command and quit.
  -v, --version          show version.
  --debug                Debug mode.
  --help                 Show this message and exit.
> help
+----------------+-----------------------+----------------------------------------------+
| Command(abbr)  | Shortcut and Usage    | Description                                  |
+----------------+-----------------------+----------------------------------------------+
| use            | \u                    | Change to a new database.                    |
| SHOW TABLES    | \lt                   | List tables.                                 |
| DESCRIBE       | \dt[+], desc [table]  | Describe table.                              |
| SHOW INDEX     |                       | Show Index (from Table).                     |
| SHOW DATABASES | \l                    | List databases in current instance.          |
| browse         |                       | Open Google Spanner console in your browser. |
| help           | \?                    | Show this help.                              |
| exit           | \q                    | Exit.                                        |
+----------------+-----------------------+----------------------------------------------+

And, you can also edit query with readline's keybindings. see https://readline.kablamo.org/emacs.html

Note

Metadata

Release files for spanner-cli 0.19.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spanner-cli 0.19.1
File Size Uploaded
spanner_cli-0.19.1.tar.gz 14.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spanner-cli 0.19.1
File Interpreter ABI Platform
spanner_cli-0.19.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.3 kB

Release files / spanner_cli-0.19.1.tar.gz

Download URL spanner_cli-0.19.1.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c70d539f468116929b17c432c683bfe02150612ed11877f99c9c32bfeded0fe4
BLAKE2b-256 checksum
How to use checksums
09d37d6d644b9731e9dd7f77402fd31392967333a765f35c9de7fa39dd51b6f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / spanner_cli-0.19.1-py3-none-any.whl

Download URL spanner_cli-0.19.1-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5223c13e6cd5337f2eda6dc22a620c6db424b3dd9408c891fa4378c071b196a
BLAKE2b-256 checksum
How to use checksums
60d83331ff1a91e17d7edcc0c8754b6a46683a5beacaae75e9c4960e72dcb0c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.19.1 This release

2 release files

0.18.0

2 release files

0.17.1

2 release files

0.16.3

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.11.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page