Skip to main content

Package to manage wifi hotspot on linux

Project description


PyAccessPoint is a package to create a wifi access point on linux. Itdepends on hostapd for AP provisioning and dnsmasq to assign IP addresses to devices.


So, there 2 types of dependencies.

System dependencies:
  • dnsmasq
  • hostapd
  • python3
Python dependencies
  • wireless
  • netifaces
  • psutil

You can not install python dependencies manually, they will be installed while installing the package. If you want to do it manually, just type (or copy, it’s better way :D)

sudo apt install python3-dev python3-pip && sudo pip3 install wireless netifaces psutil


Easy way by using pip

sudo apt update && sudo apt --yes --force-yes install dnsmasq hostapd python3-dev python3-pip && sudo pip3 install pyaccesspoint

Hard way

  1. Install system dependencies

    sudo apt update && sudo apt --yes --force-yes install dnsmasq hostapd python3-dev unzip python3-pip
  2. Download latest package

    cd ~ && wget
  3. Unpack downloaded package

    unzip && cd pyaccesspoint-master
  4. Install it

    sudo python3 install
  5. Remove files

    cd ~ && sudo rm -rf pyaccesspoint-master

That is all. Now you can use PyAccessPoint.

One line install:

sudo apt update && sudo apt --yes --force-yes install dnsmasq hostapd python3-dev unzip python3-pip && cd ~ && wget && unzip && cd pyaccesspoint-master && sudo python3 install && cd ~ && sudo rm -rf pyaccesspoint-master


You can use it as standalone command line utility: To start

sudo pyaccesspoint start

It will create hotspot named “MyAccessPoint” on wlan0 with “1234567890” password.

All arguments you may obtain by typing:

pyaccesspoint --help

To stop

sudo pyaccesspoint stop

You can configure and save config file. This will save you time at them next start

sudo pyaccesspoint configure

You config file file will be placed at /etc/accesspoint/accesspoint.json. To start it with config file just type:

sudo pyaccesspoint --config start

Code usage

  1. Import

    from PyAccessPoint import pyaccesspoint
  2. Create AccessPoint class

    access_point = pyaccesspoint.AccessPoint()
  3. Start it

  4. Stop it

To check is accesspoint started use is_running

You can change accesspoint parameters while creating AccessPoint class

Class parameters:
  • wlan - wlan interface
  • inet - wlan forward to interface (use None to off forwarding)
  • ip - just ip of your accesspoint wlan interface
  • netmask - so… -> (wiki link)
  • ssid - name of your accesspoint
  • password - password of your accesspoint


  • OrangePi Plus with Armbian 5.23


This project is python3 compatible only, python2 is not tested at all.


This project is fork of (Prahlad Yeri -

Project details

Download files

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

Files for PyAccessPoint, version 0.2.5
Filename, size File type Python version Upload date Hashes
Filename, size PyAccessPoint-0.2.5.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page