Skip to main content

Core library of the prettyetc project, without any ui.

Project description

PrettyEtc

See your configuration files using a pretty and universal GUI 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-core.

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-core

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.

Files for prettyetc-core, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size prettyetc_core-0.3.1-py3-none-any.whl (62.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page