Giter Club home page Giter Club logo

kpi_dashboard's Introduction

Streamlit Project Summary

Description

This Streamlit project is a dashboard for visualizing data related to Mississippi Steel Processing's quality management system. It provides insights into various aspects of steel production, including lead times, shipping, on-time delivery, production metrics, downtime analysis, and customer surveys.

Features

  • Data Visualization: Utilizes interactive charts and graphs to display key performance indicators (KPIs) and metrics.
  • Data Analysis: Allows users to explore and analyze steel production data, including quality metrics, lead times, and customer feedback.
  • Dashboard Components: Includes separate sections for different data categories such as production, shipping, work orders, and customer surveys.
  • Downloadable Data: Provides options for users to download raw data files for further analysis.

Data Sources

The project utilizes data from various sources, including:

  • Office 365 SharePoint REST API: Integrates with SharePoint to access live data on lead times, shipping, work order on-time delivery, and customer survey responses.
  • CSV Files: Additional data sources include CSV files containing production metrics, downtime, and safety incidents.

Usage

To run the Streamlit application locally, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the required dependencies using pip install -r requirements.txt.
  3. Create a secrets.toml file inside the .streamlit folder in the project root directory.
  4. Setting up App-Only Principal: To generate a client ID and client secret, navigate to a SharePoint site within your tenant. Access the appregnew.aspx page by appending /_layouts/15/appregnew.aspx to the site URL. On this page, use the "Generate" button to create a client ID and client secret. Fill out the rest of the form as required for your application's configuration.
  5. Granting Permissions: Grant permissions to the app-only principal through the SharePoint admin center. Navigate to the tenant admin appinv page. On this page, add your client ID and look up the created principal to set the permissions needed for accessing SharePoint data at the tenant level.
  6. In the secrets.toml file, replace the client_id and client_secret with your own SharePoint credentials. Also, create your own keys for the SharePoint site URLs and list names.
  7. [sharepoint]
        client_id = "YOUR_CLIENT_ID"
        client_secret = "YOUR_CLIENT_SECRET"
        main_site_url = "YOUR_HOME_SITE_URL"
        plant_operations_subsite_url = "YOUR_SUBSITE_URL"
        loading_times_list_name = "YOUR_LOADING_TIMES_LIST_NAME"
        lead_times_list_name = "YOUR_LEAD_TIMES_LIST_NAME"
        customer_surveys_list_name = "YOUR_CUSTOMER_SURVEYS_LIST_NAME"
        otd_list_name = "YOUR_OTD_LIST_NAME"
        
  8. Navigate to the project directory and run streamlit run Home.py in your terminal.

kpi_dashboard's People

Contributors

jsimpsonn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.