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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file 5x_streamlit_session_manager-0.1.1.tar.gz.
File metadata
- Download URL: 5x_streamlit_session_manager-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e98085354dbfbb7a02dc10e229dae89a93c7f1fda244fc75cec0df95da32abeb
|
|
| MD5 |
d7136f317cb6a5205929bd99b8000610
|
|
| BLAKE2b-256 |
e9df7231e1b47cf5b0a7b98baa9c86c1fadeebc5fc0b59f5097e53286e4ec6fe
|
File details
Details for the file 5x_streamlit_session_manager-0.1.1-py3-none-any.whl.
File metadata
- Download URL: 5x_streamlit_session_manager-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8f6c5aa9b84e2d969c1ec05f66552144f2fed1dde9cd5bcaf104ca1d2d377d1
|
|
| MD5 |
64ca4e7fadd9e1dad8fc39324502eacb
|
|
| BLAKE2b-256 |
689989aaa83913894fc4b5d1182bb5ebb71efd7a2c5b2f389ae224b94889ca07
|