Paquete de Integración OLT Huawei MA56XXT con Python
Project description
README - jmq_olt_huawei
Paquete de integración con OLTs Huawei MA56XXT (como MA5603T) vía Telnet, diseñado para automatizar la recolección de información GPON desde Python.
🛰️ ¿Qué hace este paquete?
Permite conectarse a una OLT Huawei MA56XXT y ejecutar operaciones como:
- Listar slots activos (
display board 0) - Consultar puertos GPON por slot
- Obtener ONTs conectadas a cada puerto
- Realizar un escaneo completo (slots → puertos → ONTs)
- Manejar paginación, prompts dinámicos y errores comunes de sesión
📦 Instalación
pip install jmq_olt_huawei
ó
pip install git+https://github.com/juaquicar/jmq_olt_huawei.git
O si lo tienes clonado localmente:
pip install .
Requiere Python >= 3.6.
🧪 Ejemplo de uso
from jmq_olt_huawei.ma56xxt import APIMA56XXT, UserBusyError
from pprint import pprint
api = APIMA56XXT(
host='192.168.88.25',
user='root',
password='admin',
prompt='MA5603T',
debug=True
)
try:
api.connect()
result = api.scan_all()
pprint(result)
except UserBusyError as e:
print(f"ERROR: {e}")
finally:
api.disconnect()
📁 Estructura del paquete
jmq_olt_huawei/
│
├── ma56xxt.py # Lógica principal de conexión y parsing
├── __init__.py # Archivo de inicialización del paquete
├── Examples/ # Scripts de ejemplo (opcional)
├── tests/ # Pruebas automatizadas (pendiente)
├── requirements.txt # Requisitos opcionales para desarrollo
├── pyproject.toml # Configuración de build con setuptools
├── LICENSE # Licencia MIT
└── README.md # Este archivo
🧩 Funcionalidades destacadas
- Prompt dinámico configurable
- Manejador de errores comunes como bloqueo de usuario
- Soporte para múltiples niveles de lectura (slots → puertos → ONTs)
- Debug opcional para inspeccionar línea a línea
⚖️ Licencia
MIT © Juanma Quijada
🌐 Enlace al proyecto
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jmq_olt_huawei-0.1.0.tar.gz.
File metadata
- Download URL: jmq_olt_huawei-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69f90fff2052c099ee0edcc7e8209caf2c6ca3f567c3419abab083e24bac0698
|
|
| MD5 |
bf148eb5e6bcf7fd609c9e160ab489ec
|
|
| BLAKE2b-256 |
113b8cbb6256d04aa74b26c07ef54f6d4e60bd374452f966bbbafb960acf1d64
|
Provenance
The following attestation bundles were made for jmq_olt_huawei-0.1.0.tar.gz:
Publisher:
python-publish.yml on juaquicar/jmq_olt_huawei
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jmq_olt_huawei-0.1.0.tar.gz -
Subject digest:
69f90fff2052c099ee0edcc7e8209caf2c6ca3f567c3419abab083e24bac0698 - Sigstore transparency entry: 209283398
- Sigstore integration time:
-
Permalink:
juaquicar/jmq_olt_huawei@ea359d785fe877c7d81804240ba2536fc9928c50 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/juaquicar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ea359d785fe877c7d81804240ba2536fc9928c50 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jmq_olt_huawei-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jmq_olt_huawei-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8924e65e2f58b529ce6d88a51eac7d6ee49b3baa2944aeb56e72e989354827c0
|
|
| MD5 |
494d6cabbeb20c1ea194765a39308db2
|
|
| BLAKE2b-256 |
9493ef31ee04529ac8ac45146ac491eb7296db389569e35d3f8986d3fbb452c1
|
Provenance
The following attestation bundles were made for jmq_olt_huawei-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on juaquicar/jmq_olt_huawei
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jmq_olt_huawei-0.1.0-py3-none-any.whl -
Subject digest:
8924e65e2f58b529ce6d88a51eac7d6ee49b3baa2944aeb56e72e989354827c0 - Sigstore transparency entry: 209283401
- Sigstore integration time:
-
Permalink:
juaquicar/jmq_olt_huawei@ea359d785fe877c7d81804240ba2536fc9928c50 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/juaquicar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@ea359d785fe877c7d81804240ba2536fc9928c50 -
Trigger Event:
release
-
Statement type: