Skip to main content

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

Repositorio en GitHub

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

jmq_olt_huawei-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

jmq_olt_huawei-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for jmq_olt_huawei-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69f90fff2052c099ee0edcc7e8209caf2c6ca3f567c3419abab083e24bac0698
MD5 bf148eb5e6bcf7fd609c9e160ab489ec
BLAKE2b-256 113b8cbb6256d04aa74b26c07ef54f6d4e60bd374452f966bbbafb960acf1d64

See more details on using hashes here.

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

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

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

Hashes for jmq_olt_huawei-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8924e65e2f58b529ce6d88a51eac7d6ee49b3baa2944aeb56e72e989354827c0
MD5 494d6cabbeb20c1ea194765a39308db2
BLAKE2b-256 9493ef31ee04529ac8ac45146ac491eb7296db389569e35d3f8986d3fbb452c1

See more details on using hashes here.

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

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