A headless login / logout script for 10.0.0.55.
You need at least Python 3.8.
python -m pip install 10_0_0_55
python -m 10_0_0_55 login -u|--username xxxx -p|--password xxxx
python -m 10_0_0_55 logout -u|--username xxxx -p|--password xxxx
Optional params:
-s|--silent
: No output what-so-ever.-nc|--no-color
: No color in error or verbose output.-v|--verbose
: Output verbose information including full response from the API.
Either /etc/bit-user.json
or ~/.config/bit-user.json
:
{
"username": "xxxx",
"password": "xxxx"
}
python -m 10_0_0_55 login
python -m 10_0_0_55 logout
Import the two Raycast scripts from ./scripts
and setup your config file in ~/.config/bit-user.json
. The script uses /usr/bin/python3
by default, so you either need to install 10_0_0_55
with this Python interpreter or setup your own Python interpreter path in the script.
Using networkmanager-dispatcher (deprecated).
将 10_0_0_55.py
复制为 /usr/bin/bit-login
,权限+x
将 login-bit.sh
复制到 /etc/NetworkManager/dispatcher.d/
将配置文件保存在 /etc/bit-user.json
start 并且 enable NetworkManager-dispatcher
Install and run:
# Create virtual env and install deps
poetry install
# Enter poetry virtual env
poetry shell
# ... normal stuff with python -m 10_0_0_55 ...
Build:
# Building the wheel
poetry build
Publish:
poetry version 2.x.x
poetry publish