dl.helpers.legacy module

Legacy helpers for Data Lab. Most are deprecated.

class dl.helpers.legacy.Querist(username='anonymous')[source]

Bases: object

checkAsyncJob()[source]

Check the first async job in the FIFO queue (if queue is not empty).

Parameters:

None

Returns:

  • Always returns a 3 tuple. If no async job was in the queue,

  • returns (None,None,None). If there was an async query in the

  • queue but its status did not return ‘COMPLETED’, re-inserts

  • the query at its old position in the queue, and returns

  • (None,None,None). If the status was ‘COMPLETED’, returns the

  • tuple (query result,outfmt,preview).

clearQueue()[source]

Clears the async job queue, i.e. they become unretrievable.

clearToken()[source]

Sets to token to empty string. Useful e.g. before saving a notebook.

property output_formats

Pretty-print to STDOUT the available outfmt values.

Parameters:

None

Return type:

Nothing

printMapping()[source]

Pretty-print to STDOUT the available outfmt values.

Parameters:

None

Return type:

Nothing