You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

5x-streamlit-session-manager

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

5x-streamlit-session-manager

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

0.1.1
pipPyPI
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts