Modern Python API for Huawei HiLink modems
Project description
Huawei HiLink Python 3 API
This will provide a Python 3 API to manage HiLink based Huawei USB modems,
- E8372h-320
- E8372h-155
- E3372h-320
- E3372h-153
having WebUI version 10.xx.xx, 17.xxx.xx and 21.xxx.xx variants.
Choose the best rotation method suppport with your mobile carrier.
Python packages
Following python package installations are required apart from defaults
pip3 install requests
pip3 install xmltodict
pip3 install beautifulsoup4
pip3 install uuid
API Test
Run apiTest.py python script to test functionalities. Example provided for 4 modem types supporting using both with and without authentication
python3 apiTest.py
Native compilation using Cython
This is for building native linux libraries build from python sources
Have to add python source files into cythonNativeCompile.py
ext_modules = [
...
Extension("HiLinkAPI", ["HiLinkAPI.py"]),
...
]
Python packages
Cython has to be install prior to native compilation.
pip3 install cython
Compile
Run following to build native libraries from python source
python3 cythonNativeCompile.py build_ext --inplace
Test results
| E3372h-153 | E3372h-320 | E8372h-320 |
|---|---|---|
License
This piece of software API is licensed under MIT license.
Huawei and HiLink are registered trademarks/products of Huawei Technologies Co. Ltd and/or its parents organizations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hilinkapi-0.1.0.tar.gz.
File metadata
- Download URL: hilinkapi-0.1.0.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60baa9835bfb594a6ed834497f839c27ded1764ca4a2e0dc0873edda5b293a35
|
|
| MD5 |
c8cf92f80b6e35546d113ccd5c5f427a
|
|
| BLAKE2b-256 |
3e497d5763c1333a27029b80dd55249208bb2aec58da0778c13a2c66c1d95a63
|
Provenance
The following attestation bundles were made for hilinkapi-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on fabiogermann/hilinkapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hilinkapi-0.1.0.tar.gz -
Subject digest:
60baa9835bfb594a6ed834497f839c27ded1764ca4a2e0dc0873edda5b293a35 - Sigstore transparency entry: 391021353
- Sigstore integration time:
-
Permalink:
fabiogermann/hilinkapi@2d53d587cb74397a7c9129484079f6eb67a08f02 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/fabiogermann
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2d53d587cb74397a7c9129484079f6eb67a08f02 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hilinkapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hilinkapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7393e910c4b4ab08cda5ebdc3c26cc9ab575aa9f2c551693ab219da14769310f
|
|
| MD5 |
f660e51426576bb962f24d3e3f6f783b
|
|
| BLAKE2b-256 |
e7e23b82bacba221cf33a79d3e5d9f14a899b5409ab8cce6274a40212b3f5b65
|
Provenance
The following attestation bundles were made for hilinkapi-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on fabiogermann/hilinkapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hilinkapi-0.1.0-py3-none-any.whl -
Subject digest:
7393e910c4b4ab08cda5ebdc3c26cc9ab575aa9f2c551693ab219da14769310f - Sigstore transparency entry: 391021369
- Sigstore integration time:
-
Permalink:
fabiogermann/hilinkapi@2d53d587cb74397a7c9129484079f6eb67a08f02 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/fabiogermann
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2d53d587cb74397a7c9129484079f6eb67a08f02 -
Trigger Event:
release
-
Statement type: