Home

Awesome

Build Status Documentation Status

wireless

A dead simple, cross-platform Python library to connect to wireless networks.

Description

This library can control a computer's wireless adapter to connect to a network. Environments currently supported include (in order of preference):

Network ManagerOperating SystemsTested Adapters
nmcliUbuntu 12.04, 14.04Linksys AE3000, Intel Centrino 6250
wpa_supplicantUbuntu 12.04, 14.04Intel Centrino 6250
networksetupMac OS 10.10Macbook Pro

Setup

sudo pip install wireless

Usage

A typical usage looks like this:

from wireless import Wireless
wireless = Wireless()
wireless.connect(ssid='ssid', password='password')

Note: To use nmcli on Ubuntu 14.04, the right permissions must be in place. A few options are listed here.

Note: To use wpa_supplicant, network-manager (the backend for nmcli) must not be running. This is because network-manager runs an instance of wpa_supplicant behind the scenes which will conflict with the wpa_supplicant instance that this library would create. If you have a network-manager on your machine but would prefer to use wpa_supplicant (not recommended), run sudo service network-manager stop before using wireless.

API

Change History

This project uses semantic versioning.

v0.3.2 - 2016/03/06

v0.3.1 - 2015/04/24

v0.3.0 - 2015/01/13

v0.2.1 - 2014/12/01

v0.2.0 - 2014/11/25

v0.1.1 - 2014/11/24

v0.1.0 - 2014/11/22

Contributions

Pull requests to the develop branch are welcomed!

Publishing

First, install pandoc so that setup.py can auto-convert Markdown syntax into reStructuredText:

sudo apt-get install pandoc
sudo pip install pypandoc

Then, following this guide, push the project to PyPI:

sudo python setup.py sdist upload -r pypi