Skip to main content

Get Wi-Fi RSSI on Mac, Windows, or Linux

Project description

pyrssi

Python Version

pyrssi is a lightweight Python package for retrieving the current Wi-Fi signal strength (RSSI) on macOS, Windows, and Linux. It automatically detects the operating system and uses the optimal method for each platform.


Features

  • Retrieve the current Wi-Fi RSSI (signal strength) in dBm.
  • Automatically detects the operating system.
  • Supports macOS, Windows, and Linux.

Installation

Install via PyPI

pip install pyrssi
Install from source

```bash
git clone https://github.com/yourusername/pyrssi.git
cd pyrssi
pip install .

Usage

import pyrssi

rssi = pyrssi.get_rssi()
if rssi is not None:
    print(f"Current Wi-Fi RSSI: {rssi} dBm")
else:
    print("Wi-Fi not detected or interface unavailable.")

Returns an integer representing the RSSI in dBm.

Returns None if no Wi-Fi is connected or the interface cannot be accessed.

Platform Support

macOS

  • Uses CoreWLAN via pyobjc.
  • No sudo required.
  • Retrieves the RSSI for the first available Wi-Fi interface.

Windows

  • Uses the built-in netsh wlan show interfaces command.
  • Parses the output to extract the RSSI.

Linux

  • Reads /proc/net/wireless to extract the signal strength.
  • No additional dependencies required.

Requirements

  • Python 3.7+
  • macOS: pyobjc (installed automatically if using pip)
  • Windows/Linux: No additional packages required.

License

  • MIT License. See LICENSE for details.

Contributing

Contributions are welcome! Please open issues or pull requests on GitHub.

Example Output

>>> import pyrssi
>>> print(pyrssi.get_rssi())
-55

Project details


Download files

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

Source Distribution

pyrssi-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrssi-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pyrssi-0.1.0.tar.gz.

File metadata

  • Download URL: pyrssi-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pyrssi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d7775d3e23ecba6c9e6ebaf38c76c2912f2858432d3ff6d85e7b94b987c8353d
MD5 d608e28b60e2ae0b1d4822597f609a27
BLAKE2b-256 8a50ef691495f1d344ecdc8707d7ee7d0a2a6a188b4cb781ccb5d9ba17cc5f42

See more details on using hashes here.

File details

Details for the file pyrssi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyrssi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pyrssi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0eab2f85da00201669fd22acf959ca29bb7517b2e0275641386db618bdb50d97
MD5 035c7ebdf382912154680507822d109c
BLAKE2b-256 5fa7b857c673ba5418379ecda765705d5237d9f7a1da7a11b41e925cb44291c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page