Skip to main content

iw client stats, get connected wireless client connection statistics

Project description

IWCS - WiFi Client Stats Utility

This utility collects statistics of WiFi clients connected to a specified interface on your system.

Prerequisites

Ensure that the iw command-line tool is installed on your system. If not, you can install it using the following command:

sudo apt-get install iw

Usage

Python Function

You can use the provided Python function info(interface) to collect WiFi client statistics.

from iwcs import info

# Replace 'wlan0' with your wireless interface if necessary
stats = info(interface='wlan0')
print(stats)

The function returns a dictionary containing connection stats for each connected client identified by their MAC address.

Example

from iwcs import info

interface = "wlan0"  # Replace with your wireless interface
connected_clients_info = info(interface)
print(connected_clients_info)

Output

The output is a dictionary where each key represents a MAC address of a connected client. The corresponding value is another dictionary containing various statistics such as inactive time, received bytes, transmitted bytes, signal level, etc.


License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

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

iwcs-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

iwcs-0.0.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file iwcs-0.0.2.tar.gz.

File metadata

  • Download URL: iwcs-0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for iwcs-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e56240f6bef89289310e6aa7c8daab79a48a969ec35794707a5fd8f49a766ddc
MD5 9e21850c1f7065bbdaded1abc5c8bf9e
BLAKE2b-256 f255d2f396c8120ea7c8ab35796969533b0d10ce6874a234a91d927b04b5ac5c

See more details on using hashes here.

File details

Details for the file iwcs-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: iwcs-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for iwcs-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e8c0c4b710f0e0307a4f5182bffc7f8cf933b6276e587c17adb29a6072bc08a
MD5 723a1c9665d30678e558fc9e5558c31f
BLAKE2b-256 3169e2d145e05b047ef0b78b0a75028cf4dbf737b9f8a24f7afd0a98e3bc3902

See more details on using hashes here.

Supported by

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