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
import folium | |
import streamlit as st | |
from folium.plugins import GeoMan, MousePosition | |
from folium import JsCode | |
from streamlit_folium import st_folium | |
from scenario import parser | |
from streamlit_argparse import Form | |
import requests |
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
import folium | |
import streamlit as st | |
from folium.plugins import GeoMan, MousePosition | |
from folium import JsCode | |
from streamlit_folium import st_folium | |
st.set_page_config( | |
page_title="geoman", | |
layout="wide" |
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
mport argparse | |
from streamlit_argparse import Form | |
from streamlit_folium import st_folium | |
import folium | |
from folium.plugins import Draw | |
import streamlit as st | |
import shlex | |
import jq | |
import json |
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
import streamlit as st | |
from streamlit_template import Template | |
st.set_page_config( | |
layout="wide" | |
) | |
style = """ | |
.card { | |
/* Add shadows to create the "card" effect */ |
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
def shortcuts(**buttons): | |
key = str(uuid.uuid4()) | |
styl = f""" | |
<style> | |
.st-key-{key} {{ | |
display: none; | |
}} | |
</style> | |
""" | |
st.markdown(styl, unsafe_allow_html=True) |
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
mport aiohttp | |
import asyncio | |
from datetime import datetime | |
from aiostream import stream as aiozip | |
from pipe import Pipe | |
import json | |
import jq |
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
import aiohttp | |
import asyncio | |
from pipe import Pipe | |
import json | |
import jq | |
api_key="<your key>" | |
async def schedule(interval): |
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
mport argparse | |
from streamlit_argparse import Form | |
from streamlit_folium import st_folium | |
import folium | |
from folium.plugins import Draw | |
import streamlit as st | |
import shlex | |
import jq | |
import json |
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
# get the supplied values and cast them | |
# to the correct type | |
value = getattr(result, action.dest) | |
match value: | |
case None: | |
pass | |
case [*_]: | |
value = [str(v) for v in value] | |
value = parser._get_values( | |
action, value |
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
import argparse | |
import streamlit as st | |
import shlex | |
from copy import deepcopy | |
from streamlit_tags import st_tags | |
class Form(): | |
def __init__( | |
self, | |
parser, |
NewerOlder