A command-line interface for SWPU (Southwest Petroleum University) network authentication system. This CLI tool provides an easy way to manage your network connection. 🚀
-
Simple Commands 🎯
- Login to network
- Logout from network
- Check connection status
-
Beautiful Output 🎨
- Colored status messages
- Formatted traffic usage
- Clear error messages
-
Network Support 🌐
- China Mobile Wireless
- China Mobile Wired
- Student Network
- Teacher Network
- China Telecom Wireless
pip install srun-swpu-cli
Or install with user scheme
pip install --user srun-swpu-cli
Or install in virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install srun-swpu-cli
srun-swpu-cli status
srun-swpu-cli login \
--student-id student_id \
--network-type china-mobile-wireless \
--password "your_password"
srun-swpu-cli logout \
--student-id student_id \
--network-type china-mobile-wireless