Skip to main content

A headless login / logout script for 10.0.0.55

Project description

bitsrun

PyPI PyPI - Python Version PyPI - Downloads

A headless login / logout script for 10.0.0.55 at BIT.

Install

You need at least Python 3.8. We recommend installing with pipx.

python3 -m pip install --user pipx
python3 -m pipx ensurepath

After which, install bitsrun with pipx.

pipx install bitsrun

Usage

CLI

Usage: bitsrun login/logout [OPTIONS]

  Log in/out the BIT network.

Options:
  -u, --username TEXT  Username.
  -p, --password TEXT  Password.
  -v, --verbose        Verbose output.
  -s, --silent         Silent output.
  -nc, --no-color      No color output.
  --help               Show this message and exit.

Configuration file

Create new file named bit-user.json:

{
    "username": "xxxx",
    "password": "xxxx"
}

This file should be put under the following directory:

  • Windows: %APPDATA%\bitsrun
  • macOS and Linux: ~/.config/bitsrun (Following the XDG spec)

Now you can simply call:

bitsrun login
bitsrun logout

Besides, a system-wide configuration file is supported, and the location also depends on your platform.

To list all possible paths for your system (including those only for backward compatibility), call:

bitsrun config-paths

Raycast script (macOS)

CleanShot 2023-01-22 at 21 55 40@2x

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 bitsrun with this Python interpreter or setup your own Python interpreter path in the script.

Developing

Install and run:

# Create virtual env and install deps
poetry install

# Enter poetry virtual env
poetry shell

Build:

# Bump version
poetry version x.x.x

# Building the wheel
poetry build

Publish:

poetry publish

License

WTFPL License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitsrun-3.2.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitsrun-3.2.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file bitsrun-3.2.3.tar.gz.

File metadata

  • Download URL: bitsrun-3.2.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.0 Darwin/22.2.0

File hashes

Hashes for bitsrun-3.2.3.tar.gz
Algorithm Hash digest
SHA256 c661c19aa326c4c10601d07605eb4d9502a198ca980536b74049cfac0f866377
MD5 de4c5928f8d7743fd1233a6b4a8673f0
BLAKE2b-256 22e1fe92714a7815a3bbb921a08bd060cd1eec1de8d5c719f4439e127cf303f6

See more details on using hashes here.

File details

Details for the file bitsrun-3.2.3-py3-none-any.whl.

File metadata

  • Download URL: bitsrun-3.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.0 Darwin/22.2.0

File hashes

Hashes for bitsrun-3.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 66c08e652936dd50e87a7d9fda2256f193395b5fb1844af3b68ef3adfee281c5
MD5 971be872c50b6a579c3afa710059bfc8
BLAKE2b-256 66ccf9190c51b0af2696b47d66845ef1e541b1b7393b90ccbf27aa825090356b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page