splent-feature-session-filesystem 1.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: splent_feature_session_filesystem
3
+ Version: 1.0.1
4
+ Requires-Python: >=3.13
5
+ Description-Content-Type: text/markdown
@@ -0,0 +1,6 @@
1
+ splent_io/splent_feature_session_filesystem/__init__.py,sha256=ZhfQb3iyLJbW7GquPeDurleOJf6foGXU5nxXpbvF7LQ,351
2
+ splent_io/splent_feature_session_filesystem/config.py,sha256=IQ0BaGEfntv18fAlurSneD-Tdq9hbpHd4KgMOf08zho,270
3
+ splent_feature_session_filesystem-1.0.1.dist-info/METADATA,sha256=wpM-jLNPq-GxRbvOelFFji35fMetWVf9x6SGqsjHDFg,141
4
+ splent_feature_session_filesystem-1.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
5
+ splent_feature_session_filesystem-1.0.1.dist-info/top_level.txt,sha256=nksrfdr_edPhGPUsCqz08kyNRLBkNc2sInZYzmbZ4TA,10
6
+ splent_feature_session_filesystem-1.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,15 @@
1
+ from splent_framework.blueprints.base_blueprint import BaseBlueprint
2
+
3
+ session_filesystem_bp = BaseBlueprint(
4
+ "session_filesystem", __name__, template_folder="templates"
5
+ )
6
+
7
+
8
+ def init_feature(app):
9
+ from splent_io.splent_feature_session_filesystem.config import inject_config
10
+
11
+ inject_config(app)
12
+
13
+
14
+ def inject_context_vars(app):
15
+ return {}
@@ -0,0 +1,10 @@
1
+ """Filesystem-backed session configuration."""
2
+
3
+ import os
4
+
5
+ def inject_config(app):
6
+ app.config.update({
7
+ "SESSION_TYPE": "filesystem",
8
+ "SESSION_PERMANENT": False,
9
+ "SESSION_FILE_DIR": os.getenv("SESSION_FILE_DIR", "/tmp/flask_sessions"),
10
+ })