Skip to main content

A ncov report library and tool for LIT(Luoyang Institute of Science and Technology)

Project description

lit-ncov-report

洛阳理工学院 "健康状况管控平台" 的一个非官方Python 封装库CLI工具拓展实现

如需旧版请前往v1

安装

# Python3.6+ with pip
pip install -U litncov

封装库

范例

#  导入模块
from litncov.user import litUesr

# 新建实例
testme = litUesr("username", "password")

# 判断是否登陆成功
if testme.is_logined:
    #打印用户信息
    print(testme.info)
    #打印上次上报信息
    print(testme.get_last_record())
    #打印学生学籍信息
    print(testme.get_instructor())
    #打印用户家庭信息
    print(testme.get_familys())
    #打印用户外出信息
    print(testme.get_trips())
    #打印疫情严重地区
    print(testme.get_important_city())
    #进行当日第一次体温上报
    ## 模式:使用上一次上报信息, 次数: 只上报第一次
    print(testme.first_record(mode='last', times=1))
    #进行当日第二次体温上报
    ## 模式:手动填入, 温度: 36.6 摄氏度
    print(testme.second_record(mode='manual', temperature=36.6))
    #进行当日第二次体温上报
    ## 模式:随机生成正常体温(36.0~37.2 摄氏度)
    print(testme.third_record(mode='random'))

CLI工具

查看帮助

litncov --help

拓展实现

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litncov-0.1.3.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page