Skip to main content

Hurocon

Hurocon (huawei router control) - command line interface tool for interacting with Huawei LTE routers

Features

  • Device Control
    • Information
    • Reboot
  • Net
    • Cellular
      • Connection status
      • Switch connection
    • LAN
      • List devices
  • SMS
    • 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 on python >= 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:

  1. Install poetry package manager with (pip, standalone (recommended))

  2. Run the command below to prepare the virtual environment for this project

    $ poetry install
    
  3. 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
      

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.

Metadata

Release files for hurocon 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hurocon 0.6.0
File Size Uploaded
hurocon-0.6.0.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hurocon 0.6.0
File Interpreter ABI Platform
hurocon-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.5 kB

Release files / hurocon-0.6.0.tar.gz

Download URL hurocon-0.6.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3ba230108cd6ac1498442c1c199a0bd9a99a23322db5ae78428a726e59f6b4b1
BLAKE2b-256 checksum
How to use checksums
b8a95acff549abd0a72016989dcc93f56406efb7fd2791d9642d82633d759e9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.5 Linux/5.4.0-1086-azure

Release files / hurocon-0.6.0-py3-none-any.whl

Download URL hurocon-0.6.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50bb46d906c9bbe8823d5e7f6f9686dd4bb41470fc9df21a437b579ac961e26d
BLAKE2b-256 checksum
How to use checksums
04f865d0bda983214ffa008847bc03b15f15fe53c79a2f8858bbb08b5938f4ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.5 Linux/5.4.0-1086-azure

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page