This release is a pre-release and may not be stable for production use.
forge-mvc-settings
Paramètres applicatifs opt-in pour Forge : des réglages d'application persistés dans MariaDB, en paire clé/valeur typée, avec une API explicite.
Ce paquet évite de tout mettre dans .env : ce qui change à l'exécution (nom
d'établissement, durée d'une session, mode maintenance, options pédagogiques)
vit dans une table app_settings, lisible et modifiable par l'application.
Installation
pip install --pre forge-mvc-settings
En développement depuis le dépôt Forge : pip install -e ./packages/forge-mvc-settings.
Mise en place de la table
La table n'est pas créée automatiquement (principe : SQL visible, pas d'écriture cachée). Le paquet fournit une migration :
forge settings:init # copie la migration dans mvc/migrations/
forge migration:apply # crée la table app_settings
Utilisation
from forge_mvc_settings import get_setting, set_setting
set_setting("etablissement.nom", "Collège Victor Hugo")
set_setting("qcm.session_duration", 30) # int
set_setting("maintenance", False) # bool
nom = get_setting("etablissement.nom") # "Collège Victor Hugo"
duree = get_setting("qcm.session_duration", 20) # 30 (int)
en_maintenance = get_setting("maintenance") # False (bool)
L'API expose get_setting, set_setting, get_all_settings, delete_setting,
plus SettingsError, TABLE_NAME et SUPPORTED_TYPES.
Périmètre
- Types supportés :
str,int,bool,float(sérialisés en texte, recoercés à la lecture). - Le cœur de Forge ignore tout des paramètres ; la dépendance va de l'opt-in vers le cœur, jamais l'inverse.
- Hors périmètre : cache, secrets chiffrés, paramètres par utilisateur.
Documentation complète : https://forgemvc.com/docs/forge/.
Metadata
Release files for forge-mvc-settings 1.0.0rc9
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 |
|---|---|---|---|---|
| forge_mvc_settings-1.0.0rc9.tar.gz | 26.0 kB | Without provenance | Details for forge_mvc_settings-1.0.0rc9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forge_mvc_settings-1.0.0rc9-py3-none-any.whl | Python 3 | none | any | Details for forge_mvc_settings-1.0.0rc9-py3-none-any.whl |
Total release size: 44.0 kB
Release files / forge_mvc_settings-1.0.0rc9.tar.gz
| Download URL | forge_mvc_settings-1.0.0rc9.tar.gz |
|---|---|
| Size | 26.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3cfd9e789ee12cbe097d043617bf19f1e94dcec9b8c325a7251f071ad1b0a33f
|
|
BLAKE2b-256 checksum How to use checksums |
1c8dc717bc19af777d0d6cb49c16818abe7a0adbe059eb2a6642aabf33b7b490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / forge_mvc_settings-1.0.0rc9-py3-none-any.whl
| Download URL | forge_mvc_settings-1.0.0rc9-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18c2546cab66e5a3f296a120894b9ae88ae7cfcbc98b8edf10ef1d5d3ef9ba46
|
|
BLAKE2b-256 checksum How to use checksums |
05db68ea5e7767c3a7e07d471a9875ba5dd41cc4a7a1f9acfb6da4e66f86c5b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for forge-mvc-settings 1.0.0rc9
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.