How okld/streamlit-pandas-profiling works
Project type and purpose
• This is an open-source Python library that provides a custom Streamlit component. Its purpose is to embed a pandas-profiling ProfileReport inside a Streamlit app by wrapping a React frontend.
File structure
• Top-level files: setup.py, setup.cfg, Makefile, MANIFEST.in, version.py → Python packaging and build configuration.
• Directory “streamlit_pandas_profiling/”: the Python package namespace.
• __init__.py / version.py → expose st_profile_report function and version metadata.
• frontend/ → React-based Streamlit component source.
– package.json, tsconfig.json, .env → JS build and dev configuration.
– public/index.html → entry HTML for the component iframe.
– src/*.tsx → React code that receives the serialized report and renders it.
README for additional insights
• Usage snippet shows that the Python side calls pandas_profiling to generate a ProfileReport, then calls st_profile_report(report).
• Under the hood, st_profile_report is implemented as a Streamlit custom component: a Python wrapper that launches/serves the React bundle in an iframe and passes data back and forth.