Skip to main content

moteur-server-rest

Nouvelle version de moteur serveur. Utilisation du protocole REST et de la librairie Flask pour Python.

Configuration

Tout d'abord, il faut créer un fichier .env à la racine du projet suivant la structure du fichier .env.template. Ce fichier contiendra les variables d'environnement nécessaires au bon fonctionnement du serveur.

Il faut ensuite mettre à jour le fichier de configuration /vip/.vip/vip.conf en fonction de l'utilisateur qui va lancer le serveur et de la configuration du fichier .env. Pour le fichier vip.conf, il faut mettre à jour les variables workflows.directory et datamanager.users.home ainsi que datamanager.groups.home pour refléter les chemins réels des répertoires sur votre système.

Il est possible d'utiliser les fichiers .env.apache et .env.vip pour configurer les variables d'environnement pour Apache et VIP, à condition de les renommer en .env avant de lancer le serveur.

Lancer le serveur

Développement (uv)

Dans le répertoire du projet moteur-server-rest:

uv sync
uv run moteur_server_rest/server.py

Production (Gunicorn via uv)

Depuis le dossier parent contenant les fichiers de conf (par ex. /vip/moteur-server), sans changer de répertoire:

uv run gunicorn -w 2 -b 0.0.0.0:5000 moteur_server_rest.wsgi:app

Service systemd (exemple)

Fichier d'unité, par ex. /etc/systemd/system/moteur-server.service:

[Unit]
Description=Moteur-server Service
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=/vip/moteur-server
ExecStart=/vip/.local/bin/uv run gunicorn -w 2 -b 0.0.0.0:5000 moteur_server_rest.wsgi:app
SuccessExitStatus=143
Environment="X509_USER_PROXY=/workflows/x509up_server"
User=vip
Group=vip
Restart=on-failure
RestartSec=3
KillMode=process

[Install]
WantedBy=multi-user.target

Puis:

sudo systemctl restart msr
sudo systemctl daemon-reload

Metadata

Release files for moteur-server-rest 0.2.2

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

Source distribution (sdist)

Source distribution for moteur-server-rest 0.2.2
File Size Uploaded Provenance Actions
moteur_server_rest-0.2.2.tar.gz 29.0 kB Without provenance Details for moteur_server_rest-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moteur-server-rest 0.2.2
File Interpreter ABI Platform Actions
moteur_server_rest-0.2.2-py3-none-any.whl Python 3 none any Details for moteur_server_rest-0.2.2-py3-none-any.whl

Total release size: 38.2 kB

Release files / moteur_server_rest-0.2.2.tar.gz

Download URL moteur_server_rest-0.2.2.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d04e369b2d8753cdd391dfc81e73aab43cae7d23c0c0239c26124c24e972834a
BLAKE2b-256 checksum
How to use checksums
1ddbfa56507c85dd7232388fe9fcb117109e3bf7412c231ce145067c80fe1e35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / moteur_server_rest-0.2.2-py3-none-any.whl

Download URL moteur_server_rest-0.2.2-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2082a0a09aef63e056520592f77af530f7e1f0b627650564d1ab9fe35fdc0c6e
BLAKE2b-256 checksum
How to use checksums
21098bc98eb7b01ebc664ab7619ce410520b37f7b90c6a6467e15b2a643ffe84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Security for moteur-server-rest 0.2.2

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.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

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