{"id":17403702,"url":"https://github.com/link89/streamlit-hotfix","last_synced_at":"2025-09-01T12:32:46.808Z","repository":{"id":251086743,"uuid":"836346248","full_name":"link89/streamlit-hotfix","owner":"link89","description":"A command line tool to provide advanced features (CDN, etc) for streamlit by apply patch to the installed packages.","archived":false,"fork":false,"pushed_at":"2024-08-08T03:46:32.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T00:47:34.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/link89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-31T16:46:16.000Z","updated_at":"2024-08-08T03:46:35.000Z","dependencies_parsed_at":"2024-07-31T21:11:32.090Z","dependency_job_id":"ae2e551e-5089-4570-912d-1816ebae8cdb","html_url":"https://github.com/link89/streamlit-hotfix","commit_stats":null,"previous_names":["link89/streamlit-hotfix"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link89%2Fstreamlit-hotfix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link89%2Fstreamlit-hotfix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link89%2Fstreamlit-hotfix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link89%2Fstreamlit-hotfix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/link89","download_url":"https://codeload.github.com/link89/streamlit-hotfix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245937156,"owners_count":20696959,"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":[],"created_at":"2024-10-16T19:07:18.235Z","updated_at":"2025-03-27T22:34:21.130Z","avatar_url":"https://github.com/link89.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# streamlit-hotfix\n\n[![PyPI version](https://badge.fury.io/py/streamlit-hotfix.svg)](https://badge.fury.io/py/streamlit-hotfix)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/streamlit-hotfix)](https://pypi.org/project/streamlit-hotfix/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/streamlit-hotfix)](https://pypi.org/project/streamlit-hotfix/)\n\nA command line tool to provide advanced features (CDN, etc) for streamlit by apply patch to the installed packages.\n\n## Get started\n\n```bash\npip install streamlit-hotfix\nst-hotfix --help\n```\n\nFor developer,\n\n```\ncd streamlit-hotfix\npoetry install\n\npython -m st_hotfix --help\n```\n\nNote that you have to install this tool in the same environment as streamlit and streamlit components you want to patch.\nOtherwise, the patch may not work as expected.\n\n## Examples\n\n### Load streamlit assets from CDN\n\n```bash\n# dump assets to a folder\nst-hotfix cdn dump streamit ./path/to/streamlit-assets\n\n# now you can distribut streamlit-assets with CDN, for example jsDelivr \n# e.g: https://cdn.jsdelivr.net/gh/link89/assets@0.1.0/cdn/streamlit/\n\n# then you can patch streamlit to load assets from CDN\nst-hotfix cdn patch streamlit --cdn_url https://cdn.jsdelivr.net/gh/link89/assets@0.1.0/cdn/streamlit/\n```\nNow when you run your streamlit app, it will load assets from the CDN.\n\nNote that the CDN tool makes use of the on-the-fly mode of webpack publicPath. \nSince `streamlit` 1.36.0, the publicPath of streamlit frontend can be override in runtime by setting `window.____WEBPACK_PUBLIC_PATH_OVERRIDE`.\n\nIf the components are not allow to change the publicPath on-the-fly, \nyou have to patch them first by yourself before using this tool to patch it with CDN URL.\nFor example: https://github.com/mik-laj/streamlit-ketcher/pull/120/files\n\nYou can always revert the patch by running\n\n```bash\nst-hotfix cdn restore streamlit\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink89%2Fstreamlit-hotfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flink89%2Fstreamlit-hotfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink89%2Fstreamlit-hotfix/lists"}