splent-feature-session-filesystem 1.0.1__tar.gz

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,8 @@
1
+ # Compiled frontend bundles
2
+ recursive-include src/splent_io/splent_feature_session_filesystem/assets/dist *.js *.css *.map
3
+
4
+ # Jinja templates (feature views + hook fragments)
5
+ recursive-include src/splent_io/splent_feature_session_filesystem/templates *.html
6
+
7
+ # Alembic migration config and scripts
8
+ recursive-include src/splent_io/splent_feature_session_filesystem/migrations *.py *.ini *.mako
@@ -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,52 @@
1
+ [build-system]
2
+ requires = ["setuptools>=80.3.1", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "splent_feature_session_filesystem"
7
+ version = "1.0.1"
8
+ readme = "README.md"
9
+ requires-python = ">=3.13"
10
+
11
+ dependencies = [
12
+
13
+ ]
14
+
15
+ [tool.setuptools]
16
+ package-dir = { "" = "src" }
17
+ include-package-data = true
18
+
19
+ [tool.setuptools.packages.find]
20
+ where = ["src"]
21
+ exclude = ["*.tests", "*.tests.*"]
22
+
23
+ [tool.splent]
24
+ cli_version = "1.1.1"
25
+
26
+ # ── Feature Contract (auto-generated) ────────────────────────────────────────
27
+ # Do not edit manually — re-run `splent feature:contract --write` to refresh.
28
+ [tool.splent.contract]
29
+ description = "Filesystem-backed session storage via Flask-Session"
30
+
31
+ [tool.splent.contract.provides]
32
+ routes = []
33
+ blueprints = ["session_filesystem_bp"]
34
+ models = []
35
+ commands = []
36
+ hooks = []
37
+ services = []
38
+ signals = []
39
+ translations = []
40
+ docker = []
41
+
42
+ [tool.splent.contract.requires]
43
+ features = []
44
+ env_vars = ["SESSION_FILE_DIR"]
45
+ signals = []
46
+
47
+ [tool.splent.contract.extensible]
48
+ services = []
49
+ templates = []
50
+ models = []
51
+ hooks = []
52
+ routes = false
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -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,8 @@
1
+ MANIFEST.in
2
+ pyproject.toml
3
+ src/splent_feature_session_filesystem.egg-info/PKG-INFO
4
+ src/splent_feature_session_filesystem.egg-info/SOURCES.txt
5
+ src/splent_feature_session_filesystem.egg-info/dependency_links.txt
6
+ src/splent_feature_session_filesystem.egg-info/top_level.txt
7
+ src/splent_io/splent_feature_session_filesystem/__init__.py
8
+ src/splent_io/splent_feature_session_filesystem/config.py
@@ -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
+ })