{"id":18772884,"url":"https://github.com/chux0519/flask","last_synced_at":"2025-12-13T09:30:15.173Z","repository":{"id":108096840,"uuid":"43731142","full_name":"chux0519/flask","owner":"chux0519","description":"教研室——泸州医学院项目","archived":false,"fork":false,"pushed_at":"2016-01-22T03:57:54.000Z","size":894,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-12-29T08:23:58.910Z","etag":null,"topics":[],"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/chux0519.png","metadata":{"files":{"readme":"readme.txt","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}},"created_at":"2015-10-06T05:12:36.000Z","updated_at":"2016-08-26T15:44:24.000Z","dependencies_parsed_at":"2023-04-18T15:13:57.536Z","dependency_job_id":null,"html_url":"https://github.com/chux0519/flask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chux0519%2Fflask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chux0519%2Fflask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chux0519%2Fflask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chux0519%2Fflask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chux0519","download_url":"https://codeload.github.com/chux0519/flask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239681024,"owners_count":19679508,"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-11-07T19:31:31.263Z","updated_at":"2025-12-13T09:30:15.089Z","avatar_url":"https://github.com/chux0519.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===================================\n\n            Drugs  Mapper\n\n          药品结果选择网页\n-----------------------------------\n               作者：徐涌盛(CINAC)\n\tgithub/chux0519\n===================================\n\n介绍：\n该网页将药品比对中间结果以网页的形式展示，由用户判断是够匹配正确，正确匹配的结果将会建立一个id与id的映射关系。\n该网页使用python编写，要求服务器装好解释器，以及一下几个依赖包：\n1.flask\n2.MySQLdb\n3.SQLAlchemy\n4.wtforms\n5.xlrd\n依赖包安装方法 ：pip install [包名]\n\n==================================================================================\n\n使用说明：\n1.该网页依赖于包含‘目标药物’和‘比对药物’的中间结果。（注：以xls形式存储的表格）\n\n==================================================================================\n\n2.目录结构：\n./flask:\n\t59146.xls  config.pyc  db.py   gl.py   openxl.py   readme.txt  target\n\tconfig.py  control.py  db.pyc  gl.pyc  openxl.pyc  static      templates\n\n\t./static:\n\t\tjquery-2.1.4.min.js  show.css  top.png  welcome.css\n\n\t./target:\n\t\t59146.xls  config_log.txt  sql_log.txt  ziyang20160111.xls\n\n\t./templates:\n\t\tshow.html  sidebar.html  welcome.html\n\n==================================================================================\n\n3.管理员配置说明：\n1）.以上目录为工程的目录树，将待处理的中间结果存放在 /flask/target 内（如：\n/target/59146.xls\t\t\t/target/ziyang20160111.xls）\n\n2）.分配任务在数据库中直接添加行即可，数据库mapper，表task即为任务分配表\n包含字段：\ntask_id,middle_result_name,student_name,student_num\ntask_id \t即为任务号\nmiddle_result_name\t即为中间结果的xls文件的名称（文件名前后一定不能包含空格换行符）\nstuden_name\t\t为学生姓名（暂时未测试中文，编码应该是支持的）\nstudent_num\t\t为学生学号\nSQL：INSERT INTO `task` (`task_id`, `middle_result_name`, `student_name`, `student_num`) VALUES ('1', 'target/XXX.xls', 'name', '202020202')\n\n3）.任务分配完成以后，要对所分配的表进行配置，在flask目录下，有一个config.py文件\n使用方法：\n\tpython config.py [中间结果名]\t[xls文件中“药品ID”的列名]  [参考数据库中“id”的列名]\n如下：\n\tpython config.py \"tartget/59146.xls\" \"药品ID\" \"num\"\n完成后在mapper数据库中的，task_config表中应该会有一个相关列，即为相关的配置文件\n4）.配置成功后运行contro.py即可\n\tpython control.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchux0519%2Fflask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchux0519%2Fflask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchux0519%2Fflask/lists"}