GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wangke0809/bjutNet: 连接北工大校园网的SDK

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
bjutNet
bjutNet
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.rst
README.rst
 
 
setup.py
setup.py
 
 

Repository files navigation

📦 bjutNet

连接北工大校园网的SDK

安装

$ pip install bjutNet

使用

from bjutNet import bjutNet

net = bjutNet('<id>', '<pass>')

#可选ipv4/ipv6/ipv46,均返回逻辑类型
net.login_ipv4()
net.login_ipv6()
net.login_ipv46()

#认证成功后可查看账户信息
time,flow,fee = net.get_account_info()
print("已用时长 %s 小时 , 已用流量 %s MB , 余额 %s 元"%(time,flow,fee))

#统一退出接口
net.logout()

高级用法

#默认开启debug,可配置为关闭,关闭后不在输出错误信息
net = bjutNet('<id>', '<pass>', False)

#关闭后,在登录返回False之后接着调用此函数主动查看错误信息
print(net.get_debug_info())

About

连接北工大校园网的SDK

Resources

Readme
MIT license
Activity

Stars

11 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.