{"id":15104404,"url":"https://github.com/7effrey89/streamlit_azuresqldb_fabric","last_synced_at":"2026-01-06T01:39:12.305Z","repository":{"id":250831854,"uuid":"835612521","full_name":"7effrey89/streamlit_azuresqldb_fabric","owner":"7effrey89","description":"Demo of a Custom Data Entry App you can build for your Azure SQL Database and Microsoft Fabric Warehouse and Lakehouse using python framework called Streamlit.","archived":false,"fork":false,"pushed_at":"2024-07-30T08:47:56.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T03:33:02.616Z","etag":null,"topics":["azure","db","fabric","microsoft","sql","streamlit-webapp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7effrey89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-30T07:27:51.000Z","updated_at":"2024-11-20T09:45:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc6e6bd5-5ed4-49a6-9645-8f5a12e54c30","html_url":"https://github.com/7effrey89/streamlit_azuresqldb_fabric","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"a9ff8077db00bd2e12f5d292d0eff0a79b90971f"},"previous_names":["7effrey89/streamlit_azuresqldb_fabric"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7effrey89%2Fstreamlit_azuresqldb_fabric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7effrey89%2Fstreamlit_azuresqldb_fabric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7effrey89%2Fstreamlit_azuresqldb_fabric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7effrey89%2Fstreamlit_azuresqldb_fabric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7effrey89","download_url":"https://codeload.github.com/7effrey89/streamlit_azuresqldb_fabric/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245525474,"owners_count":20629828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","db","fabric","microsoft","sql","streamlit-webapp"],"created_at":"2024-09-25T20:01:31.084Z","updated_at":"2026-01-06T01:39:07.264Z","avatar_url":"https://github.com/7effrey89.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Data Entry UI for Azure SQL Database and Microsoft Fabric Warehouse and Lakehouse:\n![image](https://github.com/user-attachments/assets/7d768b49-1483-4056-ab3e-924366af3f9c)\n\n\nThis demo uses a python framework called streamlit to accelerate the development of browser based solutions.\nIn this demo you will find pages that enables you:\n\nAzure SQL DB:\n- Embed table from Azure SQL DB as native text on a website\n- Custom made form that can be dyncamilly controlled to submit one or multiple inputs to a table in Azure SQL DB\n- Spreadsheet alike Data Editor to Insert, Update, Delete rows in an Azure SQL DB table\n  \nMicrosoft Fabric:\n- Show table data from any SQL Endpoint in Microsoft Fabric (e.g. Warehouse, Lakehouse)\n- Spreadsheet alike Data Editor to Insert, Update, Delete rows in an Microsoft Fabric Warehouse\n- Spreadsheet alike Data Editor to Insert, Update, Delete rows in an Microsoft Fabric Lakehouse \n\n# Video demonstration of the solution \nhttps://youtu.be/bSH6AZi9C8k\n\n## Getting Started:\nOpen a Terminal in VS Code\n\nDownload the code to your machine:\n\n``` git clone https://github.com/7effrey89/streamlit_azuresqldb_fabric.git```\n\nConfigure your Azure SQL Database connection\nModify .streamlit/secrets.toml with your details:\n``` server = \"\u003cazuresql-resource-name\u003e.database.windows.net\"\n database = \"\u003cdatabase-name\u003e\"\n username = \"\u003csql-username\u003e\"\n password = \"\u003csql-password\u003e\"\n```\nModify each of the .py files to target the table you want to interact with:\n\n```\nExample: DataEditorAzureSQTable.py:\n\nDATABASE = '\u003cname-of-database\u003e'\nTABLE_SCHEMA = '\u003cname-of-schema\u003e'\nTABLE_NAME = '\u003cname-of-table\u003e'\n```\n\nRun the streamlit app:\n\n``` python -m streamlit run main.py```\n\n## Structure - designed for adoption:\n- Each of the .py files represent a webpage in streamlit.\n- I've decided to write each page as if it was a standalone python script; making it easy for you to paste into your own solutions. The only dependencies each page has is to the .streamlit/secrets.toml file that contains the global variable of your azure sql db connection details.\n- If you are here for only the python logic, you can remove all streamlit related code (typically all with st.xxxxx like replacing st.session_state['xx'] with a variable, st.write/st.table with print('xxx') etc.\n- main.py serve as the place to configure the left navigation menu for the streamlit app. Here you can easily remove and add more webpages.\n  \n## Troubleshooiting\nI've included a troubleshooting.txt with all the packages and their listed versions that was installed on my machine - just in case that becomes relevant for you one day...\n\n## Docker\nI've also made the solution ready for you to run it on a container. You can modify the solutions to your liking - if you add more packages to the solution, remember to include them in the requirement.txt file so they will be included in the docker image when you build it.\n\n1. : Open terminal in VS Code, and make sure you are located in the root folder of the project e.g.:\n\n``` cd c:\\streamlit_azuresqldb_fabric ``` \n\n2. start docker desktop on your local machine\n\n3. Building Docker Image using the details from the file Dockerfile, and call it streamlit_azuresqldb_fabric\n\n```docker build -f Dockerfile -t streamlit_azuresqldb_fabric . ```\n\n4. Run the docker Image, and redicts traffic from 8501 to 80\n\n```docker run -p 80:8501 streamlit_azuresqldb_fabric```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7effrey89%2Fstreamlit_azuresqldb_fabric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7effrey89%2Fstreamlit_azuresqldb_fabric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7effrey89%2Fstreamlit_azuresqldb_fabric/lists"}