Core library of the prettyetc project
Project description
PrettyEtc
Browse your configuration files in a visual way with a pretty and universal interface.
Prettyetc shows your configs in a multitabbed window, each one being displayed as a foldable tree.
The tree has no ugly brackets, quoting or something else which might be language specific. For example you can read a JSON and INI file using the same view and structure.
Even though you can edit, it does nothing since the writing feature is not ready.
The official GUI is powered by the Qt framework, using the official Python bindings.
Installation
NOTE: If you have both Python 2 and 3 installed in your system, you should use python3 instead of python and pip3 instead of pip.
Full installation with the UI: pip install prettyetc-qt
.
Or from sources:
python setup_core.py bdist_wheel
python setup_core.py clean --all
python setup_qt.py bdist_wheel`
python setup_qt.py clean --all
pip install --user dist/*.whl.
If you want only the core: pip install prettyetc
.
Or from sources:
python setup_core.py bdist_wheel
python setup_core.py clean --all
pip install --user dist/*.whl.
Requirements
Python 3.4+
Ui
PySide2
homebase
Core
No requirements for the core, just Python stdlib.
Plugins
No requirement for plugins at the moment.
Supported languages
JSON
INI
A self-defined language called etc, see below
Core features
For a detailed explanation of core features, we suggest to go to the official API documentation of prettyetc components.
Documentation: https://prettyetc.gitlab.io/prettyetc
The documentation also contains instruction to create your custom plugin and how to deploy it.
An explanation of the etc language
The etc configuration language is a collection of microlanguages, all of them are structured similar to INI files (without sections).
The origin of this name is the *nix /etc folder that contain the system or default configuration for lots of programs and also kernel settings.
Except for INI or JSON files, the files in this folder has an undefined and a simple syntax; made by spaces, the “:” character or the “=” character (somewhere) and the “#” character as comment start, that remembers the sh/bash syntax.
Examples of these files are /etc/resolv.conf /etc/sysctl.conf /etc/modules
.
Our parser aim to handle most of it, representing it using fields in a universal view.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for prettyetc-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4260f942165dfa1e9ae9189ff96ecb6cbcb4aa388843c4ca0201fba6bc735c17 |
|
MD5 | bb26baccefc9f9e869c99439e132f401 |
|
BLAKE2b-256 | e23f93e72d7968526cbb1b09ed8c414340cb75bf1b4f526ef12cd4493ecc91b8 |