Compare commits

...

2 commits

8 changed files with 84 additions and 18 deletions

7
CHANGELOG.md Normal file
View file

@ -0,0 +1,7 @@
## 0.1.0a1 (2025-12-22)
## 0.1.0a0 (2025-12-21)
### Feat
- first version

View file

@ -8,6 +8,7 @@ include_toc: true
> [!NOTE] > [!NOTE]
> >
> L'objectif n'est pas d'afficher toutes les variables de la configuration, mais seulement une sélection à l'aide du mécanisme d'étiquetage.\
> **Chemin** : table\ > **Chemin** : table\
> *`désactivé`*\ > *`désactivé`*\
> **Désactivé** : si table n'est pas mis dans "[Sélection pour sortie](#step.output)" > **Désactivé** : si table n'est pas mis dans "[Sélection pour sortie](#step.output)"

View file

@ -8,6 +8,7 @@ include_toc: true
> [!NOTE] > [!NOTE]
> >
> The goal is not to display all the variables in the configuration, but only a selection using the labeling mechanism.\
> **Path**: table\ > **Path**: table\
> *`disabled`*\ > *`disabled`*\
> **Disabled**: if table is not set in "[Select for output](#step.output)" > **Disabled**: if table is not set in "[Select for output](#step.output)"

View file

@ -5,8 +5,8 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2025-12-21 21:18+0100\n" "POT-Creation-Date: 2025-12-21 21:58+0100\n"
"PO-Revision-Date: 2025-12-21 21:26+0100\n" "PO-Revision-Date: 2025-12-21 22:00+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: fr\n" "Language: fr\n"
@ -24,15 +24,23 @@ msgstr "\"step.output\" n'est pas mis à \"{0}\""
msgid "Displays the data in a table" msgid "Displays the data in a table"
msgstr "Affiche les données dans un tableau" msgstr "Affiche les données dans un tableau"
#: src/rougail/output_table/config.py:33 #: src/rougail/output_table/config.py:29
msgid ""
"The goal is not to display all the variables in the configuration, but only "
"a selection using the labeling mechanism."
msgstr ""
"L'objectif n'est pas d'afficher toutes les variables de la configuration, "
"mais seulement une sélection à l'aide du mécanisme d'étiquetage."
#: src/rougail/output_table/config.py:34
msgid "if table is not set in \"step.output\"" msgid "if table is not set in \"step.output\""
msgstr "si table n'est pas mis dans \"step.output\"" msgstr "si table n'est pas mis dans \"step.output\""
#: src/rougail/output_table/config.py:36 #: src/rougail/output_table/config.py:37
msgid "Content of the first column" msgid "Content of the first column"
msgstr "Contenu de la première colonne" msgstr "Contenu de la première colonne"
#: src/rougail/output_table/config.py:47 #: src/rougail/output_table/config.py:48
msgid "" msgid ""
"First column is description if \"_.columns\" has only one value, otherwise " "First column is description if \"_.columns\" has only one value, otherwise "
"it's namespace" "it's namespace"
@ -40,23 +48,23 @@ msgstr ""
"La première colonne est description si \"_.columns\" n'a qu'une valeur, " "La première colonne est description si \"_.columns\" n'a qu'une valeur, "
"sinon c'est namespace" "sinon c'est namespace"
#: src/rougail/output_table/config.py:52 #: src/rougail/output_table/config.py:53
msgid "Tag name must not have the same name has first column" msgid "Tag name must not have the same name has first column"
msgstr "" msgstr ""
"Le nom de l'étiquette ne doit pas avoir le même nom que la première colonne" "Le nom de l'étiquette ne doit pas avoir le même nom que la première colonne"
#: src/rougail/output_table/config.py:55 src/rougail/output_table/config.py:60 #: src/rougail/output_table/config.py:56 src/rougail/output_table/config.py:61
msgid "Tag names" msgid "Tag names"
msgstr "Noms des étiquettes" msgstr "Noms des étiquettes"
#: src/rougail/output_table/config.py:56 #: src/rougail/output_table/config.py:57
msgid "" msgid ""
"Each tag creates a column. The content of the columns comes from the " "Each tag creates a column. The content of the columns comes from the "
"variables with the defined tags." "variables with the defined tags."
msgstr "" msgstr ""
"Chaque étiquette créée une colonne. Le contenu des colonnes viennent des " "Chaque étiquette créée une colonne. Le contenu des colonnes viennent des "
"variables avec les étiquettes définis" "variables avec les étiquettes définis."
#: src/rougail/output_table/config.py:69 #: src/rougail/output_table/config.py:70
msgid "Add header in table" msgid "Add header in table"
msgstr "Ajouter l'entête dans le tableau" msgstr "Ajouter l'entête dans le tableau"

View file

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-12-21 21:30+0100\n" "POT-Creation-Date: 2025-12-21 22:00+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -23,31 +23,35 @@ msgstr ""
msgid "Displays the data in a table" msgid "Displays the data in a table"
msgstr "" msgstr ""
#: src/rougail/output_table/config.py:33 #: src/rougail/output_table/config.py:29
msgid "The goal is not to display all the variables in the configuration, but only a selection using the labeling mechanism."
msgstr ""
#: src/rougail/output_table/config.py:34
msgid "if table is not set in \"step.output\"" msgid "if table is not set in \"step.output\""
msgstr "" msgstr ""
#: src/rougail/output_table/config.py:36 #: src/rougail/output_table/config.py:37
msgid "Content of the first column" msgid "Content of the first column"
msgstr "" msgstr ""
#: src/rougail/output_table/config.py:47 #: src/rougail/output_table/config.py:48
msgid "First column is description if \"_.columns\" has only one value, otherwise it's namespace" msgid "First column is description if \"_.columns\" has only one value, otherwise it's namespace"
msgstr "" msgstr ""
#: src/rougail/output_table/config.py:52 #: src/rougail/output_table/config.py:53
msgid "Tag name must not have the same name has first column" msgid "Tag name must not have the same name has first column"
msgstr "" msgstr ""
#: src/rougail/output_table/config.py:55 src/rougail/output_table/config.py:60 #: src/rougail/output_table/config.py:56 src/rougail/output_table/config.py:61
msgid "Tag names" msgid "Tag names"
msgstr "" msgstr ""
#: src/rougail/output_table/config.py:56 #: src/rougail/output_table/config.py:57
msgid "Each tag creates a column. The content of the columns comes from the variables with the defined tags." msgid "Each tag creates a column. The content of the columns comes from the variables with the defined tags."
msgstr "" msgstr ""
#: src/rougail/output_table/config.py:69 #: src/rougail/output_table/config.py:70
msgid "Add header in table" msgid "Add header in table"
msgstr "" msgstr ""

44
pyproject.toml Normal file
View file

@ -0,0 +1,44 @@
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core >=3.8.0,<4"]
[project]
name = "rougail.output_table"
version = "0.1.0a1"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md"
description = "Rougail output table"
requires-python = ">=3.8"
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Natural Language :: English",
"Natural Language :: French",
]
dependencies = [
"rougail-base > 1.1,<2",
"tabulate ~= 0.9.0",
]
[project.urls]
Home = "https://forge.cloud.silique.fr/stove/rougail-output-exporter"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "pep440"
version_provider = "pep621"
version_files = [
"src/rougail/output_doc/__version__.py",
"pyproject.toml:version"
]
update_changelog_on_bump = true
changelog_merge_prerelease = true

View file

@ -26,6 +26,7 @@ def get_rougail_config(
rougail_options = f""" rougail_options = f"""
table: table:
description: {_('Displays the data in a table')} description: {_('Displays the data in a table')}
help: {_('The goal is not to display all the variables in the configuration, but only a selection using the labeling mechanism.')}
disabled: disabled:
jinja: |- jinja: |-
{{{{ step.output is propertyerror or step.output != 'table' }}}} {{{{ step.output is propertyerror or step.output != 'table' }}}}