Skip to content

mmonfar/staff_planner_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Staff Planner App

An interactive workforce planning application built with Python and Streamlit. This app compares staffing models (Model A & Model B) and provides tools to analyze staff needs, overtime costs, and breakeven points.


πŸ› οΈ Features

  • Dynamic Input Parameters: Modify costs, ratios, overtime, and more in real-time.
  • Model Comparisons: Analyze and compare total costs and staffing needs for Model A and Model B.
  • Graphs and Visualizations:
    • Cost comparison between models.
    • Breakeven analysis as unit_census changes.

πŸ“¦ Folder Structure

staff-planner-app/ β”‚ β”œβ”€β”€ app/ β”‚ β”œβ”€β”€ init.py # Marks the app as a Python package (optional, can be empty). β”‚ β”œβ”€β”€ planner.py # Contains your shared final StaffPlanner class. β”‚ β”œβ”€β”€ main.py # The main Streamlit app. β”‚ β”œβ”€β”€ styles.css # Custom styles for the app. β”‚ β”œβ”€β”€ requirements.txt # Streamlit and other dependencies. β”œβ”€β”€ README.md # Documentation about the app.


πŸš€ How to Run the App

  1. Clone this Repository:

    git clone https://github.com/your-username/staff-planner-app.git
    cd staff-planner-app
    
  2. Install Dependencies: Use the provided requirements.txt file to install dependencies:

    pip install -r requirements.txt

  3. Start the Streamlit App: Run the app using the streamlit CLI tool:

    streamlit run app/main.py

  4. Open Your Browser:

    Visit http://localhost:8501 to interact with the app


πŸ–ŒοΈ Customize Styles

The app includes a styles.css file for custom styles (e.g., sidebar colors, font sizes). Update this file under app/styles.css to change the UI.


πŸ›‘οΈ Testing

Unit tests for planner.py can be added to tests/test_planner.py. Use the unittest module to ensure all calculations work as expected:

python -m unittest discover -s tests

🀝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

About

Streamlit application for workforce optimization. Compares dual staffing models, simulates overtime cost exposures, and calculates census-driven breakeven points.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors