usql
A command-line client for Uptycs that has auto-completion and syntax highlighting. This tool is based on dbcli frame work. We have used Uptycs restcall in the tool
Installation
If you already know how to install python packages, then you can install it via pip:
You might need sudo on linux.
if you want to install usql, using pip, you can use following command:
$ sudo pip install usql
if you want to install from source you can use following command:
$ git pull usql
$ cd usql
$ python setup.py install
Usage
$ usql --help
Usage: usql -k <uptycs key file> [DATABASE]
Examples:
- usql -k mykeyfile [global|realtime|timemachine]
A config file is automatically created at ~/.config/usql/config at first launch. See the file itself for a description of all available options.
Following are the options available through the tool
+-------------+----------------------------+------------------------------------------------------------+
| Command | Shortcut | Description |
+-------------+----------------------------+------------------------------------------------------------+
| .databases | .databases | List databases. |
| .open | .open | Change to a new database. |
| .schema | .schema[+] [table] | The complete schema for the database or a single table |
| .status | \s | Show current settings. |
| .tables | \dt[+] [table] | List or describe tables. |
| \G | \G | Display current query results vertically. |
| \e | \e | Edit command with editor (uses $EDITOR). |
| \f | \f [name [args..]] | List or execute favorite queries. |
| \fd | \fd [name] | Delete a favorite query. |
| \fs | \fs name query | Save a favorite query. |
| \once | \o [-o] filename | Append next result to an output file (overwrite using -o). |
| exit | \q | Exit. |
| help | \? | Show this help. |
| nopager | \n | Disable pager, print to stdout. |
| notee | notee | Stop writing results to an output file. |
| pager | \P [command] | Set PAGER. Print the query results via PAGER. |
| prompt | \R | Change prompt format. |
| quit | \q | Quit. |
| rehash | \# | Refresh auto-completions. |
| source | \. filename | Execute commands from file. |
| system | system [command] | Execute a system shell commmand. |
| tableformat | \T | Change the table format used to output results. |
| tee | tee [-o] filename | Append all results to an output file (overwrite using -o). |
| watch | watch [seconds] [-c] query | Executes the query every [seconds] seconds (by default 5). |
+-------------+----------------------------+------------------------------------------------------------+
Metadata
Release files for usql 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| usql-2.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / usql-2.1.0-py2.py3-none-any.whl
| Download URL | usql-2.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 95.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f1b7d340505eeaa606b2b41549d30f618718c88e46478408548b9ec57cdeea01
|
|
BLAKE2b-256 checksum How to use checksums |
bfda37833e2fb7d48ea7a9c4eb27fc1bf1cf61393089a75e4540f5c5ec1131ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.16
|
Security for usql 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.