Command line interface tool for interacting with Huawei LTE routers
Project description
Hurocon
Hurocon (huawei router control) - command line interface tool for interacting with Huawei LTE routers
Features
- Device Control
- Information
- Reboot
- Cellular
- Connection Status
- Switch Mode
- SMS Control
- Inbox: List, View
- Send
There are many features planned for future releases, you can view their full list here
Supported Devices
Full list of supported devices is available on this link.
Availability
This tool is OS-independent, which means it should work on any platform where python3 can run. Minimal python3 version required for this package is 3.7
. This does not mean that it cannot work on python versions below the minimal, but its behavior is unpredictable and no support will be provided for any issues.
Installation
-
You can install it from PyPi:
pip install hurocon
-
Or directly from Github repo:
pip install git+https://github.com/maximilionus/hurocon.git
Currently can only be installed with
pip
onpython >= 3.7
. Binary bundle (pyinstaller-based) is planned but no ETA yet
Quickstart
Intro
After successful installation of this tool it can be accessed in shell using the following commands:
$ hurocon
# OR
$ python -m hurocon
You can also view a list of all main commands with:
$ hurocon --help
Each command and subcommand in this tool has a special --help
flag to display detailed information about it
Authentication
Foremost, you need to specify the authentication details so that this tool can access the device.
$ hurocon auth login
Testing Connection
After auth details successfully specified you can test your connection with router by running
$ hurocon auth test
# Returns
# Success: Successful Authentication
# Failure: Auth failed, reason: "..."
Conclusion
That's it, you're ready to go. And remember - no matter how deep you go, --help
flag is always here to help 👍
Development
Prepare The Environment
To prepare the development environment for this project, follow these steps:
-
Install
poetry
package manager with (pip, standalone (recommended)) -
Run the command below to prepare the virtual environment for this project
$ poetry install
-
That's it, now you can modify the code the way you want and test it in two ways
- Run this tool with
$ poetry run hurocon
- Or activate the project environment with
$ poetry shell Spawning shell within ... $ hurocon
- Run this tool with
Build
Python Package
To build this tool to package (sdist and wheel) you should execute:
$ poetry build
Building hurocon ...
Prepared for distribution package will be located in ./dist/
directory
Special
Big thanks to Adam Schubert for his amazing huawei-lte-api
package, that made this whole thing possible.
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
File details
Details for the file hurocon-0.4.3.tar.gz
.
File metadata
- Download URL: hurocon-0.4.3.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-1078-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 458094a9d8cec8bc977eb5f6322f1440be55816128854f1ae58c2fe66e5d54bf |
|
MD5 | 9f010e4545780fd60cb0ceaad10b2e6c |
|
BLAKE2b-256 | 5d5ecbe6588ed76e8cf4723789abf29ef38574bcab0a0e1a7a0c4859ba59c299 |
File details
Details for the file hurocon-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: hurocon-0.4.3-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-1078-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a2e2b2fec31bc9b71c995de6e450c3a1f06b3918350593471867126242d3f3 |
|
MD5 | 0dfd839dca61fbfd4f3892a3a9cd0e9f |
|
BLAKE2b-256 | 5af048635f734b83e891474af7532fe1516c107f7d452544f4a5ecf056f8cd01 |