1 Star 0 Fork 0

chx / wifi-share

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Instantly share your WIFI connection using a QR code.
Scan it with your phone and connect automatically.

Software License Python version Platform support

Installation (using make)

git clone https://github.com/thanosgn/wifi-share.git
cd wifi-share
sudo make install

You can uninstall at any time using make uninstall. If you don't have make you can always use pip install -r requirements.txt to install the necessary requirements.

Obviously python and pip are required.

The script is compatible with both python2 and python3

On Windows you can use cmd to install and use the script.

Usage (default)

wifi-share

If you did not use the provided Makefile, and you don't wifi-share in your executable path, then using python wifi-share.py will do just fine.

See also the Notes section below.

Example

Options

All the below arguments are optional. The default behavior is to generate a QR code on the terminal for the network you are currently connected. However, there are many options available if you want something besides the default scenario.

usage: wifi-share [-h] [-v] [-i [IMAGE]] [-s SSID] [-p PASSWORD] [-l]

 __          ___        ______ _      _____ _
 \ \        / (_)      |  ____(_)    / ____| |
  \ \  /\  / / _ ______| |__   _    | (___ | |__   __ _ _ __ ___
   \ \/  \/ / | |______|  __| | |    \___ \| '_ \ / _` | '__/ _ \
    \  /\  /  | |      | |    | |    ____) | | | | (_| | | |  __/
     \/  \/   |_|      |_|    |_|   |_____/|_| |_|\__,_|_|  \___|

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Enable verbose output.
  -i [IMAGE], --image [IMAGE]
                        Specify a filename for the generated QR code image.
                        (.png or .svg). Default: [WIFINAME].svg. If -i/--image
                        argument is not provided the QR code will be displayed
                        on the console.
  -s SSID, --ssid SSID  Specify the SSID you want the password of. Default:
                        the SSID of the network you are currently connected.
  -p PASSWORD, --password PASSWORD
                        Specify a desired password to be used instead of the
                        stored one.
  -l, --list            Display a list of stored Wi-Fi networks (SSIDs) to
                        choose from.

Notes

On MacOS the airport utility is used to access saved Wi-Fi information. While you do not need sudo to run the script, you will get a popup prompt asking for your username and password. This is needed in MacOS in order to read information from the keychain.

MIT License Copyright (c) 2018 Thanos Giannopoulos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

import "https://github.com/thanosgn/wifi-share" at Sep/6 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/cchenxuu/wifi-share.git
git@gitee.com:cchenxuu/wifi-share.git
cchenxuu
wifi-share
wifi-share
master

搜索帮助

14c37bed 8189591 565d56ea 8189591