Skip to main content

Mobile Hotspot Manager for Win10

Project description

Example:

from xzqhotspot import manager
m = manager()

# start mobile hotspot
# returns TetheringOperationStatus, for details, refer to the table below
result=m.start_hotspot()

# stop mobile hotspot
# returns TetheringOperationStatus, for details, refer to the table below
result=m.stop_hotspot()

# get current status instantly
# 0 for Unknown, 1 for On, 2 for Off, 3 for Transition between On and Off
s = m.hotspot_status()

# test Internet connectivity
# True for connected, False otherwise
flag = is_internet_available()

# get connected network ssid
ssid = get_wifi_ssid()

# keyword is a part of network adpater name
# in order to identify specific network adpater
disable_network_adapter(keyword)
enable_network_adapter(keyword)
Result Value Description
BluetoothDeviceOff 7 The operation could not begin because Bluetooth or a required Bluetooth device is turned off.
EntitlementCheckFailure 5 The operation did not complete because the account does not currently support tethering operations.
EntitlementCheckTimeout 4 The operation did not complete because the mobile operator could not be contacted to confirm tethering capabilities are provided for this account.
MobileBroadbandDeviceOff 2 The operation could not begin because the mobile broadband device is turned off.
NetworkLimitedConnectivity 8 The operation did not complete because of limited network connectivity.
OperationInProgress 6 The operation is still in progress.
Success 0 The operation completed successfully.
Unknown 1 The status of the operation is unknown.
WiFiDeviceOff 3 The operation could not begin because the Wifi device is turned off.

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

xzqhotspot-3.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

xzqhotspot-3.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file xzqhotspot-3.1.0.tar.gz.

File metadata

  • Download URL: xzqhotspot-3.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for xzqhotspot-3.1.0.tar.gz
Algorithm Hash digest
SHA256 1feb1e08ff80e674368e9cc3237511128874c8cb986959f93c001e599787d225
MD5 106459fef231489b8a0c96c2fe64f002
BLAKE2b-256 5a037730b3ef3d290f918be05eedffcc5da96d9dbadd8527680a6e999ef5b433

See more details on using hashes here.

File details

Details for the file xzqhotspot-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: xzqhotspot-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for xzqhotspot-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d308a60b48aef504913b9bc6db59d7ee4cb8538c6836e259c6653f837943e49c
MD5 d142c1ceece5c0f75c97f6f264c043ed
BLAKE2b-256 1baa5a727e4ecb584d6af7ca06ca3988695991dc426e537d7576e9945ebc048c

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