Skip to main content

江苏科技大学信息门户工具包

Project description

just-kit

江苏科技大学信息门户工具包,用于获取和操作学校信息门户上的各种数据。

功能特性

  • 宿舍电量查询
  • 校园卡余额查询
  • 校车信息查询
  • 更多功能开发中...

安装

pip install just-kit

使用方法

登入

默认使用信息门户作为登入服务

from just_kit.auth import Authenticator
import os
from dotenv import load_dotenv
# 读取.env
load_dotenv()
# 读取账户以及密码
username = os.getenv('USER')
password = os.getenv('PASSWORD')
# 初始化认证器
authenticator = Authenticator()
authenticator.login(username,password)

服务:Epay

epay服务用于获取宿舍电费、用户校园卡余额和浴室专款

from just_kit.services import *
# 认证器作为构造参数
epay = EpayServiceProvider(authenticator)
# 通过oauth登入epay的服务
epay.login()
# 获取本账户校园卡余额与浴室专款
epay.query_account_bill()

开发说明

本项目使用Python 3.11开发,主要依赖:

  • requests:用于发送HTTP请求
  • beautifulsoup4:用于解析HTML

许可证

本项目采用MIT许可证。

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

just_kit-0.1.3.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

just_kit-0.1.3-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file just_kit-0.1.3.tar.gz.

File metadata

  • Download URL: just_kit-0.1.3.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for just_kit-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ed76d978c059c9dad482ee47c53ce3e98cb671382401eb983cd56eec377a55e2
MD5 d91ea4b49860d3a1acef31f283f15892
BLAKE2b-256 3da1468ae99d33f2eb9891a3ca31e6a0373a4e3115f5996c911cbeb7f15a75b8

See more details on using hashes here.

File details

Details for the file just_kit-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: just_kit-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for just_kit-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d296c7bdc1b23fd1d67191bf055b82bec38127d67a5c7f914aeb748979f31dd2
MD5 19b5484536d6bd7851e664713c4f84cc
BLAKE2b-256 217bfc0b4ed20474adfb43abec03a1aa407d8013e0a5be6270b1bcd8e9af6a9d

See more details on using hashes here.

Supported by

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