dql.cli module

Interative DQL client

class dql.cli.DQLClient(completekey='tab', stdin=None, stdout=None)[source]

Bases: cmd.Cmd

Interactive commandline interface

Attributes

running bool(x) -> bool
ddb
engine
complete_display(text, *_)[source]

Autocomplete for display

complete_file(text, line, *_)[source]

Autocomplete DQL file lookup

complete_ls(text, *_)[source]

Autocomplete for ls

ddb = None[source]
default(command)[source]
display = None[source]
do_EOF(arglist)[source]

Exit

do_code(arglist)[source]

Switch to executing python code

do_display(arglist)[source]

Get or set the type of display to use when printing results

do_endcode(arglist)[source]

Stop executing python code

do_exit(arglist)[source]

Exit

do_file(arglist)[source]

Read and execute a .dql file

do_ls(arglist)[source]

List all tables or print details of one table

do_pagesize(arglist)[source]

Get or set the page size of the query output

do_shell(arglist)[source]

Run a shell command

do_use(arglist)[source]

Switch the AWS region

You may also specify ‘use local host=localhost port=8000’ to use the DynamoDB Local service

do_width(arglist)[source]

Get or set the width of the formatted output

do_x(arglist)[source]

Toggle expanded display format

You can set smart formatting with ‘x smart’

emptyline()[source]
engine = None[source]
formatter = None[source]
help_alter()[source]

Print the help text for ALTER

help_count()[source]

Print the help text for COUNT

help_create()[source]

Print the help text for CREATE

help_delete()[source]

Print the help text for DELETE

help_drop()[source]

Print the help text for DROP

help_dump()[source]

Print the help text for DUMP

help_help()[source]

Print the help text for help

help_insert()[source]

Print the help text for INSERT

help_scan()[source]

Print the help text for SCAN

help_select()[source]

Print the help text for SELECT

help_update()[source]

Print the help text for UPDATE

initialize(region='us-west-1', host='localhost', port=8000, access_key=None, secret_key=None)[source]

Set up the repl for execution

load_config()[source]

Load your configuration settings from a file

postcmd(stop, line)[source]
region = None[source]
running = False[source]
save_config_value(key, value)[source]

Save your configuration settings to a file

start()[source]

Start running the interactive session (blocking)

update_prompt()[source]

Update the prompt

dql.cli.connect(region, host='localhost', port=8000, access_key=None, secret_key=None)[source]

Create a DynamoDB connection

dql.cli.repl_command(fxn)[source]

Decorator for cmd methods

Parses arguments from the arg string and passes them to the method as *args and **kwargs.

Read the Docs v: 0.1.0
Versions
latest
0.1.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.