Skip to main content

pyeditorconfig

Note The logic in this module was created by @Akuli due to the lack of maintanence of the normal editorconfig module. I simply added it to PyPI and made a few changes to the code. All credit goes to @Akuli.

Description

This module is a simple implementation of the EditorConfig file format. It is designed to be simple and easy to use. You use the get_config() method with a path as an argument and a dict with the configuration will be returned.

Installation

pip install pyeditorconfig

Documentation

get_config(path)

This method takes an absolute path as an argument and returns a dict with the configuration. If there is no configuration file, it will return an empty dict.

Argument Type Description
path os.path.abspath or str The absolute path to the file. The str must also be the absolute path or it will not work.

Example:

from os import path

from pyeditorconfig import get_config

print(get_config(__file__))

Download files

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

Source Distribution

pyeditorconfig-1.0.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyeditorconfig-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file pyeditorconfig-1.0.0.tar.gz.

File metadata

  • Download URL: pyeditorconfig-1.0.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for pyeditorconfig-1.0.0.tar.gz
Algorithm Hash digest
SHA256 88046a92a7404ca61d1c11928f2e4a83f157754fff1f8b9c57048823d58c4e72
MD5 e3acdb558d31fdead0abce77bbd8c3b0
BLAKE2b-256 f6f277cecd3f739ac04f14228f7947cddacfbfe2b19b58b4b0f43b2b5bec6d7c

See more details on using hashes here.

File details

Details for the file pyeditorconfig-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyeditorconfig-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for pyeditorconfig-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f7130af503c3fc62cf59cb837d951dda1d4f6863b278ace2fbabfb92782a73
MD5 763e349924c321c8bb9a35c323c98121
BLAKE2b-256 f7361aa50aba562c6305f9c859c6fc9851f44bbd0af369627561ca49192d650f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.0.1

2 files

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