Eagle_team / src /streamlit_app.py
wayne-chi's picture
Update src/streamlit_app.py
244c677 verified
raw
history blame contribute delete
480 Bytes
# app.py
import streamlit as st
import pkg_resources
import os
st.title("📦 Installed Python Modules")
# Show directory of current script
current_dir = os.path.dirname(__file__)
st.write(f"**Current script directory:** {current_dir}")
# Get all installed packages
packages = sorted(
[(d.project_name, d.version) for d in pkg_resources.working_set],
key=lambda x: x[0].lower()
)
# Display packages
for name, version in packages:
st.write(f"{name}{version}")