EditorConfig File Locator and Interpreter for Python
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 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.
sudo python setup.py install
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/anatomy.md" try: options = get_properties(filename) except EditorConfigError: print "Error occurred while getting EditorConfig properties" else: 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 .
See COPYING file for licensing details.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size EditorConfig-0.12.3-py3-none-any.whl (16.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size EditorConfig-0.12.3.tar.gz (13.3 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for EditorConfig-0.12.3-py3-none-any.whl