![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
This package provides commands to interact with Wi-Fi connections on Windows.
Install the wifi_connection
package using pip:
pip install wifi_connection
import wifi_connection
import wifi_connection
# Get the list of available network interfaces
interfaces = wifi_connection.get_interfaces()
print("Available interfaces:", interfaces)
# Get the list of available networks for a specific interface
interface_name = "wlan0" # Example interface name
networks = wifi_connection.get_network_list(interface_name)
print("Available networks for", interface_name + ":", networks)
# Set a network profile
ssid = "MyWiFiNetwork" # Example SSID
password = "password123" # Example password
band = "5" # the ssid's band that you want to connect(2, 5 or 6)
success = wifi_connection.set_profile(interface_name, band, ssid, password)
print("Profile set successfully:", success)
# Connect to a network
success = wifi_connection.connect(interface_name, ssid)
print("Connection successful:", success)
# Get the SSID of the connected network
connected_ssid = wifi_connection.get_ssid(interface_name)
print("Connected SSID:", connected_ssid)
# Refresh the list of available networks
refresh_success = wifi_connection.refresh(interface_name)
print("Refresh successful:", refresh_success)
# Get the profile of a specific SSID network
profile_name = "MyWiFiNetwork" # Example profile name
profile_content = wifi_connection.get_profile(interface_name, profile_name)
print("Profile content for", profile_name + ":", profile_content)
# Get connection information for a specified interface
connection_info = wifi_connection.get_connection_info(interface_name)
print("Connection information for", interface_name + ":", connection_info)
settings
Enable or disable printing of results.
set_print
: Flag to enable/disable printing. (Optional, Default: True)get_interfaces
Get the list of available network interfaces.
get_network_list
Get the list of available networks for the specified interface.
Parameters:
iface_name
: Interface name. (Required)Return Value:
set_profile
Set a network profile for the specified interface.
Parameters:
iface_name
: Interface name. (Required)band
: Wireless band. (Required)ssid
: SSID of the network. (Required)pwd
: Password of the network. (Optional, ignore if the network does not require a password)auto
: Enable or disable automatic connection to the network. (Optional, Default: True)Return Value:
connect
Connect to a network with the specified SSID using the specified interface.
If a profile for the network does not exist, make sure to first set the profile using set_profile
.
Parameters:
iface_name
: Interface name. (Required)ssid
: SSID of the network. (Required)Return Value:
refresh
Refresh the list of available networks for the specified interface.
Parameters:
iface_name
: Interface name. (Required)Return Value:
get_ssid
Get the SSID of the connected network for the specified interface.
Parameters:
iface_name
: Interface name. (Required)Return Value:
get_profile
Get the Profile of the SSID network for the specified interface.
Parameters:
iface_name
: Interface name. (Required)profile_name
: Profile name. (Required)Return Value:
get_connection_info
Retrieve connection information for a specified network interface.
Parameters:
iface_name
: Interface name. (Required)Return Value:
{
"RxSpeed": 574000,
"TxSpeed": 117000,
"Channel": 3,
"Frequency": 2422000,
"RSSI": -33,
"Protocol": "dot11_phy_type_he"
}
get_computer_info
Retrieve information about the computer.
Parameters:
iface_name
: Interface name. (Required)Return Value:
{
"WiFiDriverVersion": "22.220.0.4",
"WiFiDriverDate": "20230329",
"WiFiDriverProviderName": "Intel",
"OS": "Microsoft Windows 11 專業版",
"OSBuild": "22631",
"OSVersion": "23H2",
"CPU": "13th Gen Intel(R) Core(TM) i7-13700HX"
}
get_tput_name
Retrieves the name for the second argument (tput_name
) of the graph
function.
Parameters:
Return Value:
graph
(only in version 0.1.7)Generates a real-time graph showing throughput and RSSI (Received Signal Strength Indication).
Parameters:
iface_name
(str): Interface name. (Required)tput_name
(str): The name for getting throughput, obtained from the get_tput_name
function. (Required)data
(str): Specifies the type of data to graph. Options are rx, tx, rssi, trx, txrssi, rxrssi. Default is rxrssi. (Optional)Return Value:
FAQs
Unknown package
We found that wifi-connection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.