Python/Qt Code Editor widget
Project description
About
pyQode is a flexible source code editor widget for PyQt/PySide applications.
pyQode is a library/widget, not an IDE. You can see it as an alternative to QScintilla.
pyQode is organised as a namespace package made up of the following official packages:
pyqode.core: core package
pyqode.python: python support (code completion, …)
pyqode.designer: starts Qt designer with all pyqode plugins
pyqode.core is the foundation package, it contains the base classes (CodeEdit, Mode, Panel) and a set of builtin modes and panels that are useful for any kind of code editor. With pyqode.core you can already create a generic code editor (similar to gedit, notepad++) with only a few lines of code.
Features
Here are the core features:
support multiple frontend: PyQt5, PyQt4 and PySide
simple widget based on QPlainTextEdit
easily customisable (modes and panels)
native look and feel close to Qt creator
builtin modes and panels (line number, code completion, syntax highlighting,…)
Qt Designer plugin
client/server architecture for smooth, non-blocking UI.
License
pyQode is licensed under the MIT license.
Requirements
pyqode.core depends on the following libraries:
Python 3 (>= 3.2)
PyQt5 or PyQt4 or PySide
pygments
Installation
You need to install PyQt or PySide by yourself.
Then you can install pyqode.core using pip:
$ pip3 install pyqode.core
Testing
pyqode.core now has a test suite and measure its coverage.
To run the tests, you must first install tox and pytest:
$ pip install tox pytest
You might also want to install pytest-cov and pytest-pep8.
Then you can run the tests by running the following command:
$ tox
To run the tests for a specifc environment, use the -e option. E.g. to run tests with python 2.7 and pyqt4, you would run:
$ tox -e py27-pyqt4
Here is the list of available test environments:
py27-pyqt4
py27-pyqt5
py32-pyqt4
py32-pyqt5
py33-pyqt4
py33-pyqt5
py34-pyqt4
py34-pyqt5
cov
pep8
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.