=========
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.post18555
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 |
|---|---|---|---|---|
| Moustache.beta-0.0.1.post18555.tar.gz | 15.6 kB | Without provenance | Details for Moustache.beta-0.0.1.post18555.tar.gz |
Release files / Moustache.beta-0.0.1.post18555.tar.gz
| Download URL | Moustache.beta-0.0.1.post18555.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5282a7f5fa53d09795e7ef712b76cae638574071fae62e490e71119a0c45a470
|
|
BLAKE2b-256 checksum How to use checksums |
745dd8c3fc4ed6db5fcc23495ef7dea31c0aeec90cc52da80f1a6dadb0436de8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Moustache.beta 0.0.1.post18555
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.