A hybrid, lightweight analytical dashboard that bridges a low-level native C Processing Core with an interactive Streamlit (Python) Web Frontend. The application demonstrates Inter-Process Communication (IPC) by dynamically compiling and running a C program on the hosting server, intercepting its standard output (stdout), and parsing it directly into data visualizations.
├── packages.txt # System dependency manager (Auto-installs GCC compiler)
├── requirements.txt # Python package manager (Auto-installs Streamlit & Pandas)
├── app.py # Streamlit frontend layout and subprocess execution controller
└── project.c # Native C data structure processing engine
- On-Demand Compilation: When a user interacts with the web interface, Python triggers the Linux
gcccompiler to bundleproject.cinto an optimized machine binary (backend). - Data Streaming: The binary executes natively on the host server instance. It computes mathematical averages using static structures and streams out a standardized CSV formatting table to the system shell console.
- Reactive UI Interception: Python catches the live text output stream via a secure
subprocessdata pipeline, deserializes it into memory as a Pandas Dataframe, and displays interactive analytical metric blocks.
- Commit all four project files directly into a public GitHub Repository.
- Log into Streamlit Community Cloud using your GitHub workspace profile credentials.
- Click New app, select your repository name, configure your deployment branch to
main, and explicitly assign the main file path toapp.py. - Click Deploy! The server container will automatically identify
packages.txtto install the C development environment before loading your web interface link.
Ensure you have a local C compiler (gcc) and Python 3.8+ properly configured on your operating system environment path variables.
# 1. Clone your project workspace down locally
git clone https://github.com
cd your-repository-name
# 2. Build the python packages stack
pip install -r requirements.txt
# 3. Spin up the Streamlit engine instance
streamlit run app.pyTo ensure clean execution profiles on deployment, verify that your configuration infrastructure matching files are created precisely as written below:
packages.txtgccrequirements.txtstreamlit pandas