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.
Release files for hilinkapi 0.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 | |
|---|---|---|---|
| hilinkapi-0.1.0.tar.gz | 23.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hilinkapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.4 kB
Release files / hilinkapi-0.1.0.tar.gz
| Download URL | hilinkapi-0.1.0.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60baa9835bfb594a6ed834497f839c27ded1764ca4a2e0dc0873edda5b293a35
|
|
BLAKE2b-256 checksum How to use checksums |
3e497d5763c1333a27029b80dd55249208bb2aec58da0778c13a2c66c1d95a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2025.
Transparency logRelease files / hilinkapi-0.1.0-py3-none-any.whl
| Download URL | hilinkapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7393e910c4b4ab08cda5ebdc3c26cc9ab575aa9f2c551693ab219da14769310f
|
|
BLAKE2b-256 checksum How to use checksums |
e7e23b82bacba221cf33a79d3e5d9f14a899b5409ab8cce6274a40212b3f5b65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 13, 2025.
Transparency log