Use For Unified Hawa Data.
Project description
文档
说明
- 用于 Hawa 相关的所有服务的统一数据计算(避免重复计算)。
依赖
- Python 3.10+
流程
1. 初始化配置文件
- 设置MySQL数据库
- 设置Redis数据库
- 设置MongoDB数据库
- 设置 COMPLETED True
set_project() # 参数见文档
# or
set_project(build_set_project_params(project))
2. 启动服务
- 启动MongoDB数据库
.connect()
3. 使用
# 学校报告数据
data = SchoolHealthReportData(**{"meta_unit_id": 3707030003, "target_year": 2021})
# mht web 数据
data = SchoolMhtWebData(**{"meta_unit_id": 4107110001, "target_year": 2022})
版本
- 0.0.1 Use For Unified Hawa Data.
- 0.0.2 Add build_set_project_params function.
- 0.0.3 Add new inheritance classes.
- 0.0.4 Fix mht data web support.
- 0.0.5 Fix mht student score group error.
- 0.0.6 Fix mro order.
- 0.0.7 Add mht grade name.
- 0.1.0 Filter validity
- 0.1.1 Revove mht unused students
- 0.1.2 Use sqlarchemy engine replace mysqlclient conn
- 0.1.3 Fix local engine
- 0.1.4 Fix not same data by mht final score
- 0.1.5 Fix float to int error
- 0.1.6 Fix special students
- 0.1.7 Handle link error for db.
- 0.1.8 Fix mysqldb cursor error.
- 0.1.9 Fix redundant async
- 0.2.0 Add district data
- 0.2.1 Move gender count data to health.
- 0.2.2 Move health school to health report
- 0.2.3 Fix cache year data
- 0.2.4 Filter users when length id <18
- 0.2.5 Filter users when length id <18 true
- 0.2.6 Fix rank dis
- 0.2.7 Fix miss grade
- 0.2.8 Fix miss grade all
- 0.2.9 Fix miss grade again
- 0.3.0 Fix more school when query school
- 0.3.1 Update replace select *
- 0.3.2 performance improvement by nickname/username、cronbach_alpha、code_word
- 0.3.3 performance improvement by grade
- 0.3.4 up to py3.11
- 0.3.5 fix engine encoding
- 0.3.6 update sqlarchemy to 2+
- 0.3.7 update pandas to 2+
- 0.3.8 fix loss data
- 0.4.0 add case project_id
- 0.4.1 fix miss grade data
- 0.5.0 add health api data
- 0.5.1 add grade param
- 0.5.2 fix score rank percent
- 0.5.3 add NoCasesError
- 0.5.4 add NoCasesError
- 0.5.5 add gender compare data to health api
- 0.5.6 add dim or field gender compare data to health api
- 0.5.7 update describe_grade_text
- 0.5.8 update other report text
- 0.5.9 add grade periods
- 0.5.10 add score text
- 0.5.11 remove text
- 0.5.12 get grade focus
- 0.5.13 count grade class scores
- 0.6.0 add student health api data
- 0.6.1 count dim field scores
- 0.6.2 count dim field scores 2
- 0.6.3 count student grade
- 0.6.4 count dim field rank
- 0.6.5 count sub unit ids
- 0.7.0 use contextmanager to connect db
- 0.7.1 count score rank with gender
- 0.7.2 add cascade students
- 0.7.3 add is_leaf to cascade students
- 0.7.4 add ch key for dim_field data
- 0.7.5 add ch key for dim_field data
- 0.7.6 add ProvinceHealthApiDataLess for cascade schools
- 0.7.7 add school mht api data
- 0.7.8 optimization student data
- 0.7.9 sort dim field
- 0.8.0 sort dim field
- 0.8.1 sort dim field
- 0.8.2 add global precision
- 0.8.3 add global precision in func
- 0.8.4 fix extra dim/field
- 0.8.5 load less data
- 0.8.7 add mongo params
- 0.8.8 fix
- 0.8.9 log
- 0.9.0 use less item codes to upper
- 0.9.1 add no answers error
- 0.9.2 fix when without gender
- 0.9.3 fix nan
- 0.10.1 add health group data
- 0.10.2 fix grade util
- 0.10.3 student case not need filter is_cleared
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
HawaData-0.10.3.tar.gz
(23.4 kB
view hashes)
Built Distribution
HawaData-0.10.3-py3-none-any.whl
(28.2 kB
view hashes)
Close
Hashes for HawaData-0.10.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ace4b55094cb06af0fd2fef2ea6474292f9d65b3dc303163b975a4fe6093a9e3 |
|
MD5 | 91052fe56a289b63fbcb0a449d85de9d |
|
BLAKE2b-256 | 7bb56d05348c28b9587a46c8014fbfadbe3960102f82a6dcaae276e15b0163e9 |