{"id":17271554,"url":"https://github.com/zengbin93/czsc_stremlit","last_synced_at":"2025-06-24T04:07:53.528Z","repository":{"id":157300498,"uuid":"633404340","full_name":"zengbin93/czsc_stremlit","owner":"zengbin93","description":"使用 streamlit 进行可视化呈现","archived":false,"fork":false,"pushed_at":"2024-06-10T08:25:09.000Z","size":21442,"stargazers_count":28,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T08:41:40.292Z","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/zengbin93.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,"zenodo":null}},"created_at":"2023-04-27T12:28:32.000Z","updated_at":"2025-03-21T12:56:27.000Z","dependencies_parsed_at":"2024-06-10T10:26:29.261Z","dependency_job_id":null,"html_url":"https://github.com/zengbin93/czsc_stremlit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zengbin93/czsc_stremlit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fczsc_stremlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fczsc_stremlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fczsc_stremlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fczsc_stremlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zengbin93","download_url":"https://codeload.github.com/zengbin93/czsc_stremlit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fczsc_stremlit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261601515,"owners_count":23183095,"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-15T08:45:09.910Z","updated_at":"2025-06-24T04:07:53.496Z","avatar_url":"https://github.com/zengbin93.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# czsc_stremlit\n使用 streamlit 进行可视化呈现\n\n#### 本地环境运行\n```shell\n# PS: 本地环境运行需提前安装好ta-lib库(根据自己的操作系统自行Google)\n\n# 1. 安装依赖\npip install ta-lib \u0026\u0026 pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple\n\n# 2. 创建.streamlit/secrets.toml配置文件\ntouch .streamlit/secrets.toml\n# 文件内容如下，填入自己的参数即可\nts_token = \"xxx\"\nOPENAI_API_KEY = \"xxx\"\nOPENAI_API_BASE = \"xxx\"\nACTIVELOOP_TOKEN = \"xxx\"\nallow_gpt4_users = ['xxx@xxx.com']\n\n# 3. 启动服务\nstreamlit run CZSC.py\n```\n\n#### Docker方式运行\n```shell\n# 构建Docker镜像\ndocker build -t czsc-stremlit:0.0.1 .\n\n# 运行镜像\n# docker run -d -p 8501:80 --volume .streamlit/secrets.toml:/app/.streamlit/secrets.toml --name czsc-stremlit czsc-stremlit:0.0.1\ndocker run -d -p 8501:80 --name czsc-stremlit czsc-stremlit:0.0.1\n\n########## 以下为Docker常用的命令 ##########\n# 查看容器日志\ndocker logs --tail=100 -f czsc-stremlit\n\n# 进入容器命令行\ndocker exec -it czsc-stremlit bash\n\n# 停止容器\ndocker stop czsc-stremlit\n\n# 重启容器\ndocker restart czsc-stremlit\n\n# 启动容器\ndocker start czsc-stremlit\n\n# 查看容器状态\ndocker ps -a\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzengbin93%2Fczsc_stremlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzengbin93%2Fczsc_stremlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzengbin93%2Fczsc_stremlit/lists"}