| ##© 2023 Tushar Aggarwal. All rights reserved. | |
| ##Streamlit Magic Cheat Sheets | |
| ####################################################################################################### | |
| ####################################################################################################### | |
| #Importind required libraries | |
| ####################################################################################################### | |
| import streamlit as st | |
| from pathlib import Path | |
| import base64 | |
| import sys | |
| from pathlib import Path | |
| script_dir = Path(__file__).resolve().parent | |
| project_root = script_dir.parent | |
| sys.path.append(str(project_root)) | |
| import warnings | |
| warnings.filterwarnings("ignore") | |
| ####################################################################################################### | |
| #Importing from SRC | |
| ####################################################################################################### | |
| from src.Streamlit_Magic_Sheet.components.header import * | |
| from src.Streamlit_Magic_Sheet.components.body import * | |
| from src.Streamlit_Magic_Sheet.components.navigation import * | |
| from src.Streamlit_Magic_Sheet.components.siderbar import * | |
| from src.Streamlit_Magic_Sheet.components.metrics import * | |
| from src.Streamlit_Magic_Sheet.components.charts import * | |
| from src.Streamlit_Magic_Sheet.components.test import * | |
| ####################################################################################################### | |
| #Page Config of Streamlit-Magic-Sheet by github.com/tushar2704 | |
| ####################################################################################################### | |
| page_title="Streamlit Magic Cheat Sheets" | |
| page_icon="🪄" | |
| layout='wide' | |
| page_config(page_title=page_title, | |
| page_icon=page_icon, | |
| layout=layout) | |
| ####################################################################################################### | |
| #Header of Streamlit-Magic-Sheet by github.com/tushar2704 | |
| ####################################################################################################### | |
| #main_header | |
| main_header(title="Streamlit Magic Cheat Sheets", | |
| header=None, | |
| subheader=None, | |
| markdown=None | |
| ) | |
| left_main_panel() | |
| #st.write(whole) | |
| #instance | |
| # col1, col2=st.columns((1,2), gap="large") | |
| # inst=test_1() | |
| # col1=inst.cs_sidebar() | |
| # col2=inst.cs_sidebar2() | |