灵符lingfu

ling-web

↓ 986 downloads

Sessions, flash, templates, CSRF, static files — Flask-style

Keywords web, flask, sessions, csrf, templates
lingfu install ling-web
LicenseApache-2.0 OR MIT
AuthorsLing Lin, Sanny Lin
READMECode / FilesVersionsDependency GraphDependentsSecurityBuildsSettings

README

ling-web

A Flask-style layer on ling-http for stateful web apps.

Functionality

Manages server-side sessions, one-time flash messages, template rendering, and CSRF protection.

Features

  • SQLite-backed sessions (revocable — delete the row, the session is dead)
  • HttpOnly + SameSite cookies with sliding expiry
  • minijinja templates (Jinja2 syntax)
  • Constant-time CSRF tokens and route-grouping blueprints

Applications

Portals, dashboards, and login/register forms that need sessions and CSRF.

← Back to index