Giter Club home page Giter Club logo

sharif-net2-py's Introduction

sharif-net2-py

A simple python script for sharif net2 system

Download Latest Built binary

Linux:

mkdir -p ~/.local/bin/
export PATH=$PATH:~/.local/bin/
curl -sL https://github.com/aalaei/sharif-net2-py/releases/latest/download/net2_lin > ~/.local/bin/net2
chmod +x ~/.local/bin/net2

you may need to add export PATH=$PATH:~/.local/bin/ to your .bashrc or .zshrc

Windows:

curl -sL -o net2.exe https://github.com/aalaei/sharif-net2-py/releases/latest/download/net2_win
... add path environment variable

Mac:

curl -sL -o net2 https://github.com/aalaei/sharif-net2-py/releases/latest/download/net2_mac
chmod +x net2
... add path environment variable

(Alternative) Install reqiurements and Run python script

Use the package manager pip to install reqirements.txt.

git clone https://github.com/aalaei/sharif-net2-py.git
cd sharif-net2-py
pip3 install -r requrements.txt

Usage

net2 -h
usage: connect_sharif [-h] [-d] [-C] [-c] [-f] [-x] [-i {Auto,Smart,br-085cb9faf50c,br-69a00c289746,br-7a4882b2a67c,docker0,enp3s0,lo,veth21bfd87,vmnet1,vmnet8}] [-v] [-a ACCOUNT] [-A] [-l]

Sharif Net2 Script

options:
  -h, --help            show this help message and exit
  -d, --Disconnect      Disconnect from net2
  -C, --Connect         Connect to your net2 account[Activated by Default]
  -c, --Check           Check Account Balance
  -f, --ForceLogin      Force Login(Logout from all other devices and login this device
  -x, --Disconnect-All  Disconnect from All Devices
  -i {Auto,Smart,br-085cb9faf50c,br-69a00c289746,br-7a4882b2a67c,docker0,enp3s0,lo,veth21bfd87,vmnet1,vmnet8}, --Interface {Auto,Smart,br-085cb9faf50c,br-69a00c289746,br-7a4882b2a67c,docker0,enp3s0,lo,veth21bfd87,vmnet1,vmnet8}
                        Interface Name[Default Smart]
  -v, --Verbose         Verbose
  -a ACCOUNT, --Account ACCOUNT
                        Select Account
  -A, --Add-New-Account
                        Add new Account
  -l, --List-Accounts   List Accounts

Note: All credentials are stored in pass.json without any cryptography. So be careful about your pass.json file.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

sharif-net2-py's People

Contributors

aalaei avatar

Watchers

 avatar

sharif-net2-py's Issues

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.