Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hilinkapi-0.1.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

hilinkapi-0.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

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

Hashes for hilinkapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 60baa9835bfb594a6ed834497f839c27ded1764ca4a2e0dc0873edda5b293a35
MD5 c8cf92f80b6e35546d113ccd5c5f427a
BLAKE2b-256 3e497d5763c1333a27029b80dd55249208bb2aec58da0778c13a2c66c1d95a63

See more details on using hashes here.

Provenance

The following attestation bundles were made for hilinkapi-0.1.0.tar.gz:

Publisher: publish-pypi.yml on fabiogermann/hilinkapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for hilinkapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7393e910c4b4ab08cda5ebdc3c26cc9ab575aa9f2c551693ab219da14769310f
MD5 f660e51426576bb962f24d3e3f6f783b
BLAKE2b-256 e7e23b82bacba221cf33a79d3e5d9f14a899b5409ab8cce6274a40212b3f5b65

See more details on using hashes here.

Provenance

The following attestation bundles were made for hilinkapi-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on fabiogermann/hilinkapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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