Git Product home page Git Product logo

scunet's Introduction

SCUNET

命令行登录SCUNET

PyPI version GitHub stars GitHub license

How to use

安装

本程序依赖于python,且只在python3 on win10 测试通过,未测试其他环境。

$ pip3 install scunet

使用前提

已经正常连接SCUNET并且获取到了正确的IP,比如地址范围为10.0.0.0/8的IP。

打开终端

  • 登入
$ scunet 
  • 注销
$ scunet logout
  • 重置账户密码
$ scunet reset
  • 查看帮助信息
$ scunet help
  • 升级本脚本
$ pip3 install -U scunet -i https://pypi.org/simple

Hint

  • 账户信息保存在~/.scunet.json
  • win10将会使用toast提示命令执行情况,如果不需要该提示框, 重设用户信息的时候选择n即可

Todo

  • win10使用toast提醒消息
  • 使用pypi进行分发
  • 使用python原生http

Changelog

  • 2018-10-12 02:07:57 1.0.0 正式版释出, 只在win10下完整测试兼容性,mac和linux未完整测试
  • 2018-12-3 12:42:10 1.1.0 Captive Portal 修改了登录网址的url跳转规则,目前的已知的两个登陆注销接口均可用, 程序只适配了新的跳转规则,未修改验证接口

Bug

  • 如果获取的IP是169.254.0.0/16时无法使用本程序,此时通过WEB也无法正常登陆
  • 未能正常连接wifi时,本程序也会报告连接正常,目前暂不打算修复。此问题请参考前文的使用前提。欢迎PR。

More

不接受任何形式的提需求,只接受PR :)

Les1ie

2018-9-19 20:50:22

scunet's People

Contributors

iansmith123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

walterli97

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.