Skip to main content

Add python support to pyqode

Project description

Travis-CI build status Number of PyPI downloads Latest PyPI version

What is pyqode.python?

pyqode.python is an official pyqode extension package that adds python support to pyQode.


  • calltips mode (using Jedi)
  • code completion provider (using Jedi)
  • code folding mode
  • auto indent mode
  • on the fly code checkers (PyFlakes, PEP8)
  • a customisable python specific syntax highlighter
  • a pre-configured QPythonCodeEdit (with the corresponding Qt Designer plugin)


pyQode is licensed under the MIT license.


pyqode.python depends on the following libraries:

  • pyqode.core
  • jedi
  • pep8
  • pyflakes


$ pip install pyqode.python


The public API is exposed by the pyqode.python package.

Here is a simple example using PyQt4:

# simple example using PyQt4
import sys
import PyQt4  # just to tell pyqode we want to use PyQt4.
import pyqode.python
from PyQt4.QtGui import QApplication

def main():
    app = QApplication(sys.argv)
    editor = pyqode.python.QPythonCodeEdit()
    editor.resize(800, 600)
    return app.exec_()

if __name__ == "__main__":



  • New: add the following new modes:

    • pyqode.python.PyAutoCompleteMode
    • pyqode.python.CommentsMode
    • pyqode.python.DocumentAnalyserModeµ
    • pyqode.python.GoToAssignmentsMode
  • New: add the following new panels:

    • pyqode.python.QuickDocPanel
    • pyqode.python.SymbolBrowserPanel
  • New: CodeCompletion: provides method to interact with the subprocess interpreter

  • New: Add CodeCompletion preload hooks

  • New: Add pyqode.python.Boostrapper class to help start the code completion with a list of modules to preload + example with a splash screen.

  • Fix: Disable actions which depends on preload

  • Fix: Disable code completion in commente and strings

  • Fix: Better highlighting in docstrings (highlighting was lost when there was an ‘=’ in the docstring.


Final 1.0 release, add documentation


  • fix syntax highlighting bugs with triple quoted string inside comment or string literals
  • fix bugs with designer plugins
  • update code completion provider to use jedi 0.7
  • many other bug fixes


  • fix code completion icons path


First beta version


Here are a few screenshots to illustrate the python specific features (all the screenshots were taken on Linux Mint 15 Cinnamon):

  • Code completion:
Code completion
  • Code folding:
Code Folding
  • On the fly code checking (PyFlakes):
Error indicators
  • On the fly PEP8 style checking
PEP8 warnings
  • Dark color scheme
Dark style

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyqode.python-1.3.1-py2.7.egg (112.6 kB) Copy SHA256 hash SHA256 Egg 2.7
pyqode.python-1.3.1-py3.3.egg (116.2 kB) Copy SHA256 hash SHA256 Egg 3.3
pyqode.python-1.3.1.tar.gz (67.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page