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. |
Metadata
Release files for xzqhotspot 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xzqhotspot-3.1.0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xzqhotspot-3.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / xzqhotspot-3.1.0.tar.gz
| Download URL | xzqhotspot-3.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1feb1e08ff80e674368e9cc3237511128874c8cb986959f93c001e599787d225
|
|
BLAKE2b-256 checksum How to use checksums |
5a037730b3ef3d290f918be05eedffcc5da96d9dbadd8527680a6e999ef5b433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / xzqhotspot-3.1.0-py3-none-any.whl
| Download URL | xzqhotspot-3.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d308a60b48aef504913b9bc6db59d7ee4cb8538c6836e259c6653f837943e49c
|
|
BLAKE2b-256 checksum How to use checksums |
1baa5a727e4ecb584d6af7ca06ca3988695991dc426e537d7576e9945ebc048c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|