コード例 #1
0
def resource(author, tag) -> Resource:
    """Resource fixture"""
    return Resource(
        name="awesome-streamlit.org",
        url="https://awesome-streamlit.org",
        is_awesome=True,
        tags=[tag],
        author=author,
    )
コード例 #2
0
def resource(author, tag) -> Resource:
    """Resource fixture"""

    return Resource(
        name="Sentiment Algorithm",
        url=
        "https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/src/pages/gallery/contributions/marc_skov_madsen/sentiment_analyzer/sentiment_analyzer.py",
        is_awesome=True,
        tags=[tag],
        author=author,
    )
コード例 #3
0
def get_resources(apps):
    resources = []
    for name, url in apps.items():
        resource = Resource(
            name=name,
            url=url,
            is_awesome=False,
            tags=[CODE, APP_INGALLERY],
            author=STREAMLIT,
        )
        resources.append(resource)
    return resources
コード例 #4
0
ファイル: apps_in_gallery.py プロジェクト: AdonaiVera/Bello
Please note that all contribute apps should

- be located in https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/
gallery/<app_name_folder>
- include that tags tags.CODE, tags.APP_IN_GALLERY as a minimum
"""
from awesome_streamlit.database import authors, tags
from awesome_streamlit.database.settings import GITHUB_RAW_URL
from awesome_streamlit.shared.models import Resource

GITHUB_RAW_GALLERY_URL = GITHUB_RAW_URL + "gallery/"

DEFAULT_APP_IN_GALLERY = Resource(
    name="Spreadsheet",
    url=GITHUB_RAW_URL + "gallery/spreadsheet/spreadsheet.py",
    tags=[tags.CODE, tags.APP_IN_GALLERY],
    is_awesome=True,
    author=authors.MARC_SKOV_MADSEN,
)
APPS_IN_GALLERY = [
    Resource(
        name="Awesome Data Explorer",
        url=GITHUB_RAW_GALLERY_URL + "awesome_data_explorer/awesome_data_explorer.py",
        tags=[tags.CODE, tags.APP_IN_GALLERY],
        is_awesome=True,
        author=authors.ALI_AVNI_CIRIK,
    ),
    Resource(
        name="Global Power Plant Database",
        url=GITHUB_RAW_GALLERY_URL + "global_power_plant_database/global_power_plant_database.py",
        tags=[tags.CODE, tags.APP_IN_GALLERY],
コード例 #5
0
# pylint: disable=line-too-long
from awesome_streamlit.shared.models import Resource

# STREAMLIT FILE ROOTS

STREAMLIT_EXAMPLE_APPS_ROOT = (
    "https://raw.githubusercontent.com/streamlit/streamlit/develop/examples/"
)
STREAMLIT_COMPONENTS_APPS_ROOT = (
    "https://github.com/streamlit/streamlit/tree/develop/docs/api-examples-source"
)

DEFAULT_RESOURCE = Resource(
    name="Spreadsheet",
    url="https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/src/pages/gallery/contributions/marc_skov_madsen/spreadsheet.py",
    tags=[CODE, APP_IN_GALLERY],
    is_awesome=True,
    author=MARC_SKOV_MADSEN,
)
APP_CONTRIBUTIONS = [
    Resource(
        name = "Self Driving Cars",
        url = "https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/src/pages/gallery/contributions/streamlit/self_driving_cars.py",
        tags=[CODE, APP_IN_GALLERY],
        is_awesome=True,
        author=authors.STREAMLIT_AUTHOR,
    ),
    Resource(
        name="Awesome Streamlit Test Runner",
        url="https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/src/pages/gallery/contributions/marc_skov_madsen/test_runner_app.py",
        tags=[CODE, APP_IN_GALLERY],
コード例 #6
0
apps = get_apps(JSON_URL)
resources = get_resources(apps)
representation = repr(resources)
# print(representation)
representation = representation.replace("author=Streamlit", "author=STREAMLIT")
representation = representation.replace("Code", "CODE")
representation = representation.replace(
    "Included in Awesome Streamlit Gallery", "APP_INGALLERY")
print(representation)

STREAMLIT_COMPONENTS = [
    Resource(
        name="charts.area_chart",
        url=
        "https://raw.githubusercontent.com/streamlit/streamlit/master/docs/api-examples-source/charts.area_chart.py",
        is_awesome=False,
        tags=[CODE, APP_INGALLERY],
        author=STREAMLIT,
    ),
    Resource(
        name="charts.audio",
        url=
        "https://raw.githubusercontent.com/streamlit/streamlit/master/docs/api-examples-source/charts.audio.py",
        is_awesome=False,
        tags=[CODE, APP_INGALLERY],
        author=STREAMLIT,
    ),
    Resource(
        name="charts.bar_chart",
        url=
        "https://raw.githubusercontent.com/streamlit/streamlit/master/docs/api-examples-source/charts.bar_chart.py",
コード例 #7
0
ファイル: resources.py プロジェクト: axuew/awesome-streamlit
STREAMLIT_EXAMPLE_APPS_FAILED_TEST_FILES = [
    "apocrypha.py",
    "bart_vs_bikes.py",
    "images.py",
    "matplotlib_kwargs.py",
    "mnist-cnn",
    "reference.py",
    "run_on_save.py",
    "syntax_hilite.py",
    #  "disable_client.py", RUNS TOO LONG DURING TESTS
]
STREAMLIT_EXAMPLE_APPS_FAILED_TEST = [
    Resource(
        name=file,
        url=STREAMLIT_EXAMPLE_APPS_ROOT + file,
        is_awesome=False,
        tags=[CODE, APP, APP_IN_GALLERY],
        author=authors.STREAMLIT_AUTHOR,
    ) for file in STREAMLIT_EXAMPLE_APPS_FAILED_TEST_FILES
]

STREAMLIT_EXAMPLE_APPS_FILES = [
    "altair_example.py",
    "animation.py",
    "audio.py",
    "bokeh_example.py",
    "caching.py",
    "checkboxes.py",
    "dataframe_styling.py",
    "empty_charts.py",
    "graphviz_example.py",
コード例 #8
0
STREAMLIT_EXAMPLE_APPS_FAILED_TEST_FILES = [
    "apocrypha.py",
    "bart_vs_bikes.py",
    "images.py",
    "matplotlib_kwargs.py",
    "mnist-cnn",
    "reference.py",
    "run_on_save.py",
    "syntax_hilite.py",
    #  "disable_client.py", RUNS TOO LONG DURING TESTS
]
STREAMLIT_EXAMPLE_APPS_FAILED_TEST = [
    Resource(
        name=file,
        url=STREAMLIT_EXAMPLE_APPS_ROOT + file,
        is_awesome=False,
        tags=[CODE, APP, APP_IN_GALLERY],
        author=authors.STREAMLIT_AUTHOR,
    ) for file in STREAMLIT_EXAMPLE_APPS_FAILED_TEST_FILES
]

STREAMLIT_EXAMPLE_APPS_FILES = [
    "altair_example.py",
    "animation.py",
    "audio.py",
    "bokeh_example.py",
    "caching.py",
    "checkboxes.py",
    "dataframe_styling.py",
    "empty_charts.py",
    "graphviz_example.py",
コード例 #9
0
Please note that all contribute apps should

- be located in https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/
gallery/<app_name_folder>
- include that tags tags.CODE, tags.APP_IN_GALLERY as a minimum
"""
from awesome_streamlit.database import authors, tags
from awesome_streamlit.database.settings import GITHUB_RAW_URL
from awesome_streamlit.shared.models import Resource

GITHUB_RAW_GALLERY_URL = GITHUB_RAW_URL + "gallery/"

DEFAULT_APP_IN_GALLERY = Resource(
    name="Spreadsheet",
    url=GITHUB_RAW_URL + "gallery/spreadsheet/spreadsheet.py",
    tags=[tags.CODE, tags.APP_IN_GALLERY],
    is_awesome=True,
    author=authors.MARC_SKOV_MADSEN,
)
APPS_IN_GALLERY = [
    Resource(
        name="Country Indicators",
        url=GITHUB_RAW_GALLERY_URL +
        "country_indicators/streamlit_country_indicators.py",
        tags=[tags.CODE, tags.APP_IN_GALLERY, tags.VOILA],
        is_awesome=True,
        author=authors.MARC_SKOV_MADSEN,
    ),
    Resource(
        name="Gaussian Plot",
        url=GITHUB_RAW_GALLERY_URL +
コード例 #10
0
Please note that all contribute apps should

- be located in https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/
gallery/<app_name_folder>
- include that tags tags.CODE, tags.APP_IN_GALLERY as a minimum
"""
from awesome_streamlit.database import authors, tags
from awesome_streamlit.database.settings import GITHUB_RAW_URL
from awesome_streamlit.shared.models import Resource

GITHUB_RAW_GALLERY_URL = GITHUB_RAW_URL + "gallery/"

DEFAULT_APP_IN_GALLERY = Resource(
    name="Spreadsheet",
    url=GITHUB_RAW_URL + "gallery/spreadsheet/spreadsheet.py",
    tags=[tags.CODE, tags.APP_IN_GALLERY],
    is_awesome=True,
    author=authors.MARC_SKOV_MADSEN,
)
APPS_IN_GALLERY = [
    Resource(
        name="Layout Experiments",
        url=GITHUB_RAW_GALLERY_URL + "layout_experiments/app.py",
        tags=[tags.CODE, tags.APP_IN_GALLERY],
        is_awesome=True,
        author=authors.MARC_SKOV_MADSEN,
    ),
    Resource(
        name="Table Experiments",
        url=GITHUB_RAW_GALLERY_URL + "table_experiments/app.py",
        tags=[tags.CODE, tags.APP_IN_GALLERY],
コード例 #11
0
Please note that all contribute apps should

- be located in https://raw.githubusercontent.com/MarcSkovMadsen/awesome-streamlit/master/
gallery/<app_name_folder>
- include that tags tags.CODE, tags.APP_IN_GALLERY as a minimum
"""
from awesome_streamlit.database import authors, tags
from awesome_streamlit.database.settings import GITHUB_RAW_URL
from awesome_streamlit.shared.models import Resource

GITHUB_RAW_GALLERY_URL = GITHUB_RAW_URL + "gallery/"

DEFAULT_APP_IN_GALLERY = Resource(
    name="Spreadsheet",
    url=GITHUB_RAW_URL + "gallery/spreadsheet/spreadsheet.py",
    tags=[tags.CODE, tags.APP_IN_GALLERY],
    is_awesome=True,
    author=authors.MARC_SKOV_MADSEN,
)
APPS_IN_GALLERY = [
    Resource(
        name="File Uploader - Multiple Files",
        url=GITHUB_RAW_GALLERY_URL +
        "file_uploader_multiple_files/file_uploader_multiple_files.py",
        tags=[tags.CODE, tags.APP_IN_GALLERY],
        is_awesome=True,
        author=authors.MARC_SKOV_MADSEN,
    ),
    Resource(
        name="File Uploader",
        url=GITHUB_RAW_GALLERY_URL + "file_uploader/file_uploader.py",