Giter Club home page Giter Club logo

hilinkapi's Introduction

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.

hilinkapi's People

Contributors

chanakalin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.