Skip to main content

iusql

Build Status

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 iusql, using pip, you can use following command:

$ sudo pip install iusql

if you want to install from source you can use following command:

$ git pull iusql
$ cd iusql
$ python setup.py install

Usage

$ iusql --help

Usage: iusql -k <uptycs key file> [DATABASE]

Examples:
  - iusql -k mykeyfile [global|realtime|audit]

A config file is automatically created at ~/.config/iusql/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 iusql 2.0.6

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

Built distribution (wheel)

Table of built distributions (wheels) for iusql 2.0.6
File Interpreter ABI Platform
iusql-2.0.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / iusql-2.0.6-py2.py3-none-any.whl

Download URL iusql-2.0.6-py2.py3-none-any.whl
Size 51.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2603bf70293578d22c0fb535f31203397f003eb102a7cb74fec0a2337289cd9f
BLAKE2b-256 checksum
How to use checksums
f38d5b6323e06b2482ec7b42ff6ef822e39f2704ecd665e7400a00920c19285b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.10

Release history Release notifications | RSS feed

This release

2.0.6 This release

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

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