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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forge_mvc_sessions_db-1.0.0rc5.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forge_mvc_sessions_db-1.0.0rc5-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file forge_mvc_sessions_db-1.0.0rc5.tar.gz.

File metadata

  • Download URL: forge_mvc_sessions_db-1.0.0rc5.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for forge_mvc_sessions_db-1.0.0rc5.tar.gz
Algorithm Hash digest
SHA256 17349205488beddcc952041413bea79d49307138837cf170dfba8f6ccc18d6e8
MD5 bb233cbd814965857c861f24e08c4043
BLAKE2b-256 668f7746b11f38a94e4006d0c38a4dbacb576a951d9bfbae89fb8b0d53b49fe9

See more details on using hashes here.

File details

Details for the file forge_mvc_sessions_db-1.0.0rc5-py3-none-any.whl.

File metadata

File hashes

Hashes for forge_mvc_sessions_db-1.0.0rc5-py3-none-any.whl
Algorithm Hash digest
SHA256 b1691980a9ebadf1e63ca0823ce2ce82411384716926bd4f2259beb5d93bb258
MD5 ef4314efa3d8f6a6bc7d53770ca5cad7
BLAKE2b-256 b7164d829a3bfefe9165af0d06bc28301535163a7a05534671b20abd93980765

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page