Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Clone of EditorConfig core written in Python
Python CMake

Merge pull request #7 from PeterDaveHello/patch-1

Use svg instead of png to get better image quality
latest commit 21bf9dff92
@treyhunner treyhunner authored
Failed to load latest commit information.
docs Use Python code highlighting in docs and README
editorconfig Bump version to 0.12.0
tests @ abb579e Update tests submodule
.editorconfig Trim trailing whitespace in Py, Rst, and Txt files
.gitmodules Add tests submodule.
CMakeLists.txt Add CMakeLists.txt for testing.
README.rst Use svg instead of png to get better image quality Make file executable Add Python version classifiers


EditorConfig Python Core

EditorConfig Python Core provides the same functionality as the EditorConfig C Core. EditorConfig Python core can be used as a command line program or as an importable library.

EditorConfig Project

EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors. For information on the file format and supported text editors, see the EditorConfig website.


With setuptools:

sudo python install

Getting Help

For help with the EditorConfig core code, please write to our mailing list. Bugs and feature requests should be submitted to our issue tracker.

If you are writing a plugin a language that can import Python libraries, you may want to import and use the EditorConfig Python Core directly.

Using as a Library

Basic example use of EditorConfig Python Core as a library:

from editorconfig import get_properties, EditorConfigError

filename = "/home/zoidberg/humans/"

    options = get_properties(filename)
except EditorConfigError:
    print "Error occurred while getting EditorConfig properties"
    for key, value in options.items():
        print "%s=%s" % (key, value)

For details, please take a look at the online documentation.

Running Test Cases

Cmake has to be installed first. Run the test cases using the following commands:

cmake .
ctest .

Use -DPYTHON_EXECUTABLE to run the tests using an alternative versions of Python (e.g. Python 3):

cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 .
ctest .


Unless otherwise stated, all files are distributed under the PSF license. The odict library (editorconfig/ is distributed under the New BSD license. See LICENSE.txt file for details on PSF license.

Something went wrong with that request. Please try again.