Skip to main content
Flask SQLAlchemy Session
========================
This is a Database Session storage interface for Flask with SQLAlchemy

How to use
----------
First you will have to create the sessions table
::
CREATE TABLE sessions (
session_id CHAR(129) UNIQUE NOT NULL,
atime TIMESTAMP,
data TEXT);

Then you will have to connect the interface to your Flask application ::


from FlaskSQLAlchemySession import set_db_session_interface
application.config['SQLALCHEMY_DATABASE_URI'] = "[your-sqlalchemy-db-uri]"
set_db_session_interface(application)


By default, the data is stored using pickle module, but you can pass other data serializer like JSON module ::

import json
from FlaskSQLAlchemySession import set_db_session_interface
application.config['SQLALCHEMY_DATABASE_URI'] = "[your-sqlalchemy-db-uri]"
set_db_session_interface(application, data_serializer=json)

Requirements
------------
* Flask
* Flask-SQLAlchemy

Metadata

Release files for Flask-SQLAlchemySession 0.0.4

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

Source distribution (sdist)

Source distribution for Flask-SQLAlchemySession 0.0.4
File Size Uploaded
Flask-SQLAlchemySession-0.0.4.tar.gz 2.3 kB Details

Release files / Flask-SQLAlchemySession-0.0.4.tar.gz

Download URL Flask-SQLAlchemySession-0.0.4.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eca2af7ebc32edbacac51c5eb02642ed48fa48e1a53d70c50ffbf790273a2e7e
BLAKE2b-256 checksum
How to use checksums
e8f91d9f801508ffd8be2634f7502e63b0e6d74d814eeba1cc71d85b40de6435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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