Skip to main content

A library to fetch user session data from encrypted URL parameters in 5x Streamlit apps

Project description

Streamlit Session Manager

A simple session management library for Streamlit applications that allows easy access to user session data from cookies.

Installation

pip install 5x-streamlit-session-manager

Usage

import streamlit as st
from streamlit_session_manager import SessionManager

# Initialize the session manager
session = SessionManager()

# Get user details
user = session.get_user()
if user:
    email = user.get('email')
    first_name = user.get('first_name')
    last_name = user.get('last_name')

# Or get just the email
email = session.get_email()

# Or get the full name
full_name = session.get_full_name()

Features

  • Easy access to user session data
  • Get email address from session
  • Get user's full name
  • Get complete user details
  • Error handling and type safety

Requirements

  • Python 3.7+
  • Streamlit 1.0.0+
  • extra-streamlit-components 0.1.0+

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

5x_streamlit_session_manager-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

5x_streamlit_session_manager-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file 5x_streamlit_session_manager-0.1.1.tar.gz.

File metadata

File hashes

Hashes for 5x_streamlit_session_manager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e98085354dbfbb7a02dc10e229dae89a93c7f1fda244fc75cec0df95da32abeb
MD5 d7136f317cb6a5205929bd99b8000610
BLAKE2b-256 e9df7231e1b47cf5b0a7b98baa9c86c1fadeebc5fc0b59f5097e53286e4ec6fe

See more details on using hashes here.

File details

Details for the file 5x_streamlit_session_manager-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for 5x_streamlit_session_manager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f6c5aa9b84e2d969c1ec05f66552144f2fed1dde9cd5bcaf104ca1d2d377d1
MD5 64ca4e7fadd9e1dad8fc39324502eacb
BLAKE2b-256 689989aaa83913894fc4b5d1182bb5ebb71efd7a2c5b2f389ae224b94889ca07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page