pyeditorconfig
Note The logic in this module was created by @Akuli due to the lack of maintanence of the normal
editorconfigmodule. 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__))
Metadata
Release files for pyeditorconfig 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyeditorconfig-1.0.0.tar.gz | 6.4 kB | Without provenance | Details for pyeditorconfig-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyeditorconfig-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyeditorconfig-1.0.0-py3-none-any.whl |
Total release size: 13.0 kB
Release files / pyeditorconfig-1.0.0.tar.gz
| Download URL | pyeditorconfig-1.0.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88046a92a7404ca61d1c11928f2e4a83f157754fff1f8b9c57048823d58c4e72
|
|
BLAKE2b-256 checksum How to use checksums |
f6f277cecd3f739ac04f14228f7947cddacfbfe2b19b58b4b0f43b2b5bec6d7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / pyeditorconfig-1.0.0-py3-none-any.whl
| Download URL | pyeditorconfig-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0f7130af503c3fc62cf59cb837d951dda1d4f6863b278ace2fbabfb92782a73
|
|
BLAKE2b-256 checksum How to use checksums |
f7361aa50aba562c6305f9c859c6fc9851f44bbd0af369627561ca49192d650f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Security for pyeditorconfig 1.0.0
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.