Skip to main content

airport-py

Tiny MacOS only python library to integrate/use wi-fi scan results in your python projects. Wi-Fi scan data gathered by calling & parsing the results of a small MacOS cli utility called "airport".

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport is the default path to program executable. Exporting environment variable AIRPORT_PATH will update the defaults if you have your executable in a different path.

Installation

pip install airport-py

Usage

import airport

# current connection 

print airport.info()

InfoResult(agrCtlRSSI='-64', agrExtRSSI='0', agrCtlNoise='-92', agrExtNoise='0', state='running', 
op_mode='station', lastTxRate='702', maxRate='1300', lastAssocStatus='0', 
auth_80211='open', auth_link='wpa2-psk', BSSID='d0:3:4b:e9:55:99', SSID='AirPortTimeCapsule', 
MCS='5', channel='44,80')

# wi-fi scanning

scan_results = airport.scan()

print map(lambda r: (r.ssid, r.bssid, r.channel), scan_results[:3])

[('kablo-ac', 'fd:4a:e9:6f:95:7e', '52'),
 ('kablo', 'fd:4a:e9:6f:95:7d', '11'),
 ('oz-hukuk', '88:31:fd:4e:20:67', '11')]

Metadata

Release files for airport-py 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airport-py 0.1.1
File Size Uploaded Provenance Actions
airport-py-0.1.1.tar.gz 3.7 kB Without provenance Details for airport-py-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airport-py 0.1.1
File Interpreter ABI Platform Actions
airport_py-0.1.1-py2-none-any.whl Python 2 none any Details for airport_py-0.1.1-py2-none-any.whl

Total release size: 8.3 kB

Release files / airport-py-0.1.1.tar.gz

Download URL airport-py-0.1.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9680081603a2fd28ea52e475f01765964518f4525c407ecae7c31de6bfc3e1c0
BLAKE2b-256 checksum
How to use checksums
4489946dd4df2ec4edb38b6d6c5a0530cde1a63bda6f51638e126341f53668e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.17

Release files / airport_py-0.1.1-py2-none-any.whl

Download URL airport_py-0.1.1-py2-none-any.whl
Size 4.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
ef894f48eb199d07dd2d8fc77fb81155151edffc75f8f45578e20129e36ccb85
BLAKE2b-256 checksum
How to use checksums
750cd8a99a800092e9aa90cdb60067627f9d18f55537a1f762b468fbd99c69ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.17

Security for airport-py 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page