pyqode.python.backend

The backend package contains everything needed to implement the server side of pyqode.

class pyqode.python.backend.JediCompletionProvider

Bases: builtins.object

Provides code completion using the awesome jedi library

static complete(code, line, column, path, encoding, prefix)

Completes python code using jedi.

Returns:a list of completion.
pyqode.python.backend.calltips(request_data)

Worker that returns a list of calltips.

A calltips is a tuple made of the following parts:
  • module_name: name of the module of the function invoked
  • call_name: name of the function that is being called
  • params: the list of parameter names.
  • index: index of the current parameter
  • bracket_start

:returns tuple(module_name, call_name, params)

pyqode.python.backend.defined_names(request_data)

Returns the list of defined names for the document.

pyqode.python.backend.goto_assignments(request_data)

Go to assignements worker.

pyqode.python.backend.icon_from_typename(name, icon_type)

Returns the icon resource filename that corresponds to the given typename.

Parameters:name – name of the completion. Use to make the distinction between public and private completions (using the count of starting ‘_’)
Pram typename:the typename reported by jedi
Returns:The associate icon resource filename or None.
pyqode.python.backend.quick_doc(request_data)

Worker that returns the documentation of the symbol under cursor.

pyqode.python.backend.run_frosted(request_data)

Worker that run a frosted (the fork of pyflakes) code analysis on the current editor text.

pyqode.python.backend.run_pep8(request_data)

Worker that run the pep8 tool on the current editor text.

:returns a list of tuples (msg, msg_type, line_number)