Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

forge-mvc-sessions-db

Store de session persistant pour Forge, adossé à la base via le backend BDD actif.

Le cœur Forge ne fournit que MemorySessionStore (mono-processus) et FileSessionStore, plus le contrat SessionStore. Ce paquet opt-in ajoute DbSessionStore : les sessions vivent dans la table forge_sessions, partagées entre processus (utile en multi-worker Gunicorn).

Le store est agnostique du SGBD : tout son SQL passe par core.database.db, dispatché vers le backend actif (forge-mvc-mariadb, forge-mvc-sqlite, …). Les horodatages sont calculés côté Python, sans fonction SQL propriétaire (NOW(), GETDATE()), donc le store fonctionne sur tous les backends (ADR-054).

Usage

from forge_mvc_sessions_db import DbSessionStore

forge.configure(session_store=DbSessionStore())

Table requise : forge_sessions. forge sessions:init copie la migration dans mvc/migrations/, puis forge migration:apply l'applique.

Release files for forge-mvc-sessions-db 1.0.0rc8

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

Source distribution (sdist)

Source distribution for forge-mvc-sessions-db 1.0.0rc8
File Size Uploaded
forge_mvc_sessions_db-1.0.0rc8.tar.gz 26.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forge-mvc-sessions-db 1.0.0rc8
File Interpreter ABI Platform
forge_mvc_sessions_db-1.0.0rc8-py3-none-any.whl Python 3 none any Details

Total release size: 46.1 kB

Release files / forge_mvc_sessions_db-1.0.0rc8.tar.gz

Download URL forge_mvc_sessions_db-1.0.0rc8.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d282a7b507886ff654bdfd43799b8c43910d0141cbc90c52692ef0a52139b218
BLAKE2b-256 checksum
How to use checksums
eaec77160d203e408fc3fbc7f75e294c32008d6754476a034ea09706d09c16f6
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_sessions_db-1.0.0rc8-py3-none-any.whl

Download URL forge_mvc_sessions_db-1.0.0rc8-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
493c2b7e0840ff77352bf585ee0c2823f9cbaf45fc1a3eeb73c9890ca600fc57
BLAKE2b-256 checksum
How to use checksums
a95c6873c29983868990829211f4a9588b0cccf62734566d3ef4ada1ad470f1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13
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