Skip to main content
Release file added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

EditorConfig Python Core

https://secure.travis-ci.org/editorconfig/editorconfig-core-py.svg?branch=master

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.

Installation

With setuptools:

sudo python setup.py 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/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 .

License

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

Metadata

Release files for EditorConfig 0.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for EditorConfig 0.12.1
File Size Uploaded Provenance Actions
EditorConfig-0.12.1.tar.gz 19.3 kB Without provenance Details for EditorConfig-0.12.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for EditorConfig 0.12.1
File Interpreter ABI Platform Actions
EditorConfig-0.12.1-py3-none-any.whl Python 3 none any Details for EditorConfig-0.12.1-py3-none-any.whl
EditorConfig-0.12.1-py2-none-any.whl Python 2 none any Details for EditorConfig-0.12.1-py2-none-any.whl

Total release size: 52.7 kB

Release files / EditorConfig-0.12.1.tar.gz

Download URL EditorConfig-0.12.1.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8b53c857956194a21043753c9adca5a5b0eaef6cf1db3273a362ddec78f2b8e3
BLAKE2b-256 checksum
How to use checksums
3bc9ea1eb869568f3dca689eb8528f9bead16f3544a38447d86dedbcd45b4e8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / EditorConfig-0.12.1-py3-none-any.whl

Download URL EditorConfig-0.12.1-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
435d6a52ee18ad5aa5369fa9c5e475f848b863d8a106d59129fda39423da2007
BLAKE2b-256 checksum
How to use checksums
6d99cad33c921c3a842ddb016c2508e87a507cea9e44e38425f9c6d12b94cfd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / EditorConfig-0.12.1-py2-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL EditorConfig-0.12.1-py2-none-any.whl
Size 13.4 kB
Tags Python 2
SHA-256 checksum
How to use checksums
42bb819e879dc0ed2b0049cceccdb0b1be9991e2798426c58ebcbe802d23e4e5
BLAKE2b-256 checksum
How to use checksums
d6c5a99ed0ff0cabe47a21b5ceba992791284ea67da440efba41f21775aba3a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for EditorConfig 0.12.1

Upload timing

Release file added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page