Skip to main content
Moustache
=========

Moustache est un module de fusion documentaire ODT.

Installation
------------

Docker
~~~~~~

``docker run -p 5000:5000 gitlab.libriciel.fr:4567/outils/moustache:master``

 Ubuntu
~~~~~~~

Sur une distribution Ubuntu 16.04 LTS, voici la procédure à suivre :

.. code:: bash

apt update -y
apt install -y libreoffice libreoffice-script-provider-python curl libmagickwand-dev

curl https://bootstrap.pypa.io/get-pip.py | python3

pip3 install moustache

Lancement
---------

Avant tout lancement de Moustache, il faut lancer libreoffice en mode
headless, sur le port 2002 :

.. code:: bash

soffice --headless --invisible --nologo --nodefault --nocrashreport --nolockcheck --norestore --nofirststartwizard --accept="socket,host=0,port=2002;urp;" &

Puis il suffira de lancer la commande :

.. code:: bash

moustache

Moustache sera ensuite accessible sur le port 5000.

Utilisation de l'API
--------------------

Fichier de configuration JSON
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Ce fichier contient les élements à remplacer dans le template et les
élements permettant le contrôle de la transformation.

Les élements de contrôle commencent par **. L'utilisation de ** est
reservé à moustache.

- \_\_output\_format: odt (défaut ou valeur non reconnu) ou pdf

TODO documenter les appels d'API (curl)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Release files for Moustache.beta 0.0.1.post16982

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Moustache.beta 0.0.1.post16982
File Size Uploaded
Moustache.beta-0.0.1.post16982.tar.gz 12.7 kB Details

Release files / Moustache.beta-0.0.1.post16982.tar.gz

Download URL Moustache.beta-0.0.1.post16982.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bc860f2e8ad8f5b1dbdaa7034f6f45af0c0d78dedc3aececb93f13c853c9d74e
BLAKE2b-256 checksum
How to use checksums
22bc49e1880851cf0276e08b9ff3a7d3b35147ffe3ae0cd23d84b6216e9fb1ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1.post16982 This release

1 release file

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