{"id":20855699,"url":"https://github.com/spensercai/codewebrunner","last_synced_at":"2025-06-27T11:32:47.626Z","repository":{"id":177195576,"uuid":"659989765","full_name":"SpenserCai/CodeWebRunner","owner":"SpenserCai","description":"以WebApi的方式运行Python代码，这将是AiMediaService的一部分，为了实现一个可以整合ai能力PaaS化开发落地应用的平台","archived":false,"fork":false,"pushed_at":"2023-07-13T07:49:21.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T14:03:23.054Z","etag":null,"topics":["ai","fastapi","opencv","paas","python","python3","tools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpenserCai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-06-29T02:21:59.000Z","updated_at":"2023-07-08T01:10:26.000Z","dependencies_parsed_at":"2024-11-18T09:16:47.534Z","dependency_job_id":null,"html_url":"https://github.com/SpenserCai/CodeWebRunner","commit_stats":null,"previous_names":["spensercai/opencvwebrunner","spensercai/codewebrunner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpenserCai%2FCodeWebRunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpenserCai%2FCodeWebRunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpenserCai%2FCodeWebRunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpenserCai%2FCodeWebRunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpenserCai","download_url":"https://codeload.github.com/SpenserCai/CodeWebRunner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253687516,"owners_count":21947692,"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":["ai","fastapi","opencv","paas","python","python3","tools"],"created_at":"2024-11-18T04:20:30.124Z","updated_at":"2025-05-12T06:31:20.582Z","avatar_url":"https://github.com/SpenserCai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * @Author: SpenserCai\n * @Date: 2023-06-29 10:27:02\n * @version: \n * @LastEditors: SpenserCai\n * @LastEditTime: 2023-07-11 10:58:22\n * @Description: file content\n--\u003e\n# CodeWebRunner\n\n以WebApi的方式运行Python代码，这将是AiMediaService的一部分，为了实现一个可以整合ai能力PaaS化开发落地应用的平台\n\n# 部署\n\n## 首次运行\n```bash\nbash run.sh\n```\n上述代码会自动创建虚拟环境并安装依赖\n\n## 安装ai能力包\n\n在本项目相同的虚拟环境下安装ai能力包\n\n## 运行\n\n```bash\nbash run.sh\n```\n此时运行本服务即可实现ai能力的调用，注意编写代码是import对应的ai能力包\n\n\n## 用法请求/api/run接口\n\n### 请求参数\n\n```json\n{\n  \"argv\": {\n    \"a\": 1,\n    \"b\": 2\n  },\n  \"code\": \"ab=a+b\\naxb=a*b\\nreturn {\\\"sub\\\":ab,\\\"x\\\":axb}\"\n}\n```\n\n### 返回结果\n\n```json\n{\n  \"code\": 200,\n  \"msg\": \"success\",\n  \"data\": {\n    \"sub\": 3,\n    \"x\": 2\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspensercai%2Fcodewebrunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspensercai%2Fcodewebrunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspensercai%2Fcodewebrunner/lists"}