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.

Features:

  • 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)

License

pyQode is licensed under the MIT license.

Requirements

pyqode.python depends on the following libraries:

  • pyqode.core

  • jedi

  • pep8

  • pyflakes

Installation

$ pip install pyqode.python

Usage

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.openFile(__file__)
    editor.resize(800, 600)
    editor.show()
    return app.exec_()


if __name__ == "__main__":
    sys.exit(main())

Resources

Change log

  • 1.0b3:
    • 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

  • 1.0b2:
    • fix code completion icons path

  • 1.0b: First beta version

Screenshots

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

Download files

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

Source Distribution

pyqode.python-1.0.tar.gz (63.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page