Giter Club home page Giter Club logo

10_0_0_55_login's Introduction

10_0_0_55

A headless login / logout script for 10.0.0.55.

Install

You need at least Python 3.8.

python -m pip install 10_0_0_55

Usage

CLI

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.

Config file

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

Raycast script (macOS)

Raycast Script Screenshot

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).

使用 NetworkManager-dispacher

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

Developing

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

License

WTFPL License

10_0_0_55_login's People

Contributors

spencerwooo avatar aloxaf avatar felinae98 avatar

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.