Prof.Li's shnu Education Tools
Author: 道法自然 lilluqun@gmail.com success@shnu.edu.cn
模块安装:pip install -U shnu-education-tools
- Shnu Education Tools模块为上海师范大学机房作业收集工具。模块由作者Prof.Luqun Li团队自主开发 。
- 其他教学资源可以参见GitHub:https://github.com/liluqun。
- 作者会对模块不断更新,确保为读者提供最佳的代码工具、教学案例与服务。
- 如果您有好的建议,请发邮件到liluqun@gmail.com联系我。
提前备好:
1.学生名单: **.xlsx , 从教务处系统导出学生名单,然后一定另存为xlsx文件。
2.指明作业目录:homework_dir ='./期末试卷'
3.指明作业排序目录:sorted_homework_dir=./期末试卷-ok
*******************************************
编辑一个文本文件:
shnu.ini,内容样本为:
name_list=人工智能.xlsx
homework_dir =./期末试卷
sorted_homework_dir=./期末试卷-ok
直接在操作系统下运行:shnu, 如:c:\>shnu
如果用户没有shnu.ini文件,不用担心,直接运行c:\>shnu,便可在当前目录下创建shnu.ini
编辑好shnu.ini
再次运行,就会得到 排序的作业目录,和作业统计Excel文件。
******************************************
api调用使用方法:
from shnu.tools import Assistant
ast=Assistant()
df=ast.homework_check()
返回3个DataFrame;
0:统计学生作业的Dataframe:
1:作业提交次数为零的Dataframe:
2:作业次数大于0的DataFrame
使用用例1:
ast=Assistant(name_list='人工智能.xlsx', homework_dir ='./期末试卷',sorted=False)
result=ast.homework_check()
print(result[0],result[1],result[2])
使用用例2:
ast=Assistant(sorted=True,sorted_homework_dir='e:/ok')
result=ast.homework_check()
print(result[0],result[1],result[2])
Metadata
Release files for shnu-education-tools 26.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shnu_education_tools-26.1.18-py3-none-any.whl | Python 3 | none | any | Details for shnu_education_tools-26.1.18-py3-none-any.whl |
Release files / shnu_education_tools-26.1.18-py3-none-any.whl
| Download URL | shnu_education_tools-26.1.18-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72c2217686c036e9260d4c36871d92a741d8c12e2804ddd1c4f7755184c0d730
|
|
BLAKE2b-256 checksum How to use checksums |
664d625643013f299f86ceb71bf3545c8b4e56a9604f1e6d4c49db3d73ad6519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for shnu-education-tools 26.1.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.