This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import pyodbc | |
from datetime import datetime | |
def get_file_details(startpath): | |
file_details = [] | |
start_path = Path(startpath) | |
for file_path in start_path.rglob('*'): | |
if file_path.is_file(): | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/FranzDiebold/898396a6be785d9b5ca6f3706ef9b0bc | |
# https://gist.github.com/okld/0aba4869ba6fdc8d49132e6974e2e662 | |
# https://github.com/komodovaran/stateful_streamlit_enterprise/tree/master/src | |
from streamlit.report_thread import get_report_ctx | |
from streamlit.server.server import Server | |
from streamlit.hashing import _CodeHasher | |
class _SessionState: |