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

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.1.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.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrssi-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2efa4a288460e43bfb6cff54b85939ec52b13943335bd70cf1233a117b875c7a
MD5 02a048f9c54ac7edd605ed1a48a9e9bc
BLAKE2b-256 7f465c80eb80a91804ea73bd440945108217995348c0fdb6c7aef62e374d287c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrssi-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d21c15d7fab8565e055eea61975d549e12f305e70cb594e68ba74db0ff74ee0
MD5 72931ff0bb5bffd14bc6b90e53a84cbd
BLAKE2b-256 b41d2c2323aa8e6ee6a147c6046d4bcb271bdadb61968af0210b36c41f050acc

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