Powered by Tachyonic Project Luxon Framework v0.0.0

Luxon Framework for rapid application development. (luxon)

Version

Sessions

Luxon comes with a session base class that can be used in end-points and modules to provide session handling as needed. Luxon allows for handling session data with Redis as well as files and cookies.

Base Class

class luxon.core.session.session.Session(session_id, backend=None, expire=86400)[source]

Session Base Class.

Luxon provides full support for anonymous sessions. The session framework lets you store and retrieve arbitrary data on a per-site-visitor basis. It stores data on the server side and abstracts the sending and receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend).

SessionBase A dictionary like object containing session data.

Redis

class luxon.core.session.sessionredis.SessionRedis(expire, session_id, session)[source]

Session Redis Interface.

Used for storing session data in Redis. Helpful when running multiple instances of luxon which requires a shared session state.

Please refer to Session.

Files

class luxon.core.session.sessionfile.SessionFile(expire, session_id, session)[source]

Session File Interface.

Used for storing session data in flat files.

Please refer to Session.

Cookies

class luxon.core.session.sessioncookie.SessionCookie(expire, session_id, session)[source]

Session Cookie Interface.

Used for storing session data in cookies.

Please refer to Session.

Session authentication

class luxon.core.session.sessionauth.TrackToken(expire)[source]