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.2.0.tar.gz (10.5 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.2.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: just_kit-0.2.0.tar.gz
  • Upload date:
  • Size: 10.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 d765737aae493a3c431d94a7fd2ba71299f292bcec30cb6e6f5e7db64ade4137
MD5 0a3c177404491f3244e2aa251c309c0f
BLAKE2b-256 b5e505174e27d23f1eea1b5bb5db7d22decc8784f95f5e282bcf9f699095ed93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: just_kit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 299fd3254ef6ef441246125f5a90730dbc9e9c7a1023fa7746131bc6cea086d2
MD5 e3cdfd0fe2e56948e93e7a3745de810d
BLAKE2b-256 c2b1500d4c4d16cc23eaed87c3afe43d6301a40a877cb5155d2498d2662b877b

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