Skip to main content

Nidec Unidrive M motor control drives inventory generator.

Project description

nidec-inventory

Generador de inventario para accionamientos Nidec Unidrive M.

Description

nidec-inventory permite generar un inventario de accionamientos Nidec, mediante el análisis de los ficheros de parámetros *.parfile situados en un repositorio.

Features

  • Rastreo recursivo sobre un path dado.

  • Recopilación de información básica de todos los accionamientos del repositorio:

    • Nombre del producto.
    • Modelo del dispositivo.
    • Número de serie del dispositivo.
    • Versión del firmware del dispositivo.
    • Tensión nominal del dispositivo.
    • Corriente nominal del dispositivo.
    • Nombre asignado al dispositivo.
    • Modo de trabajo del dispositivo.
    • ip o nodo (si emplea comunicación modbus).
    • Contenido del slot 1
    • Contenido del slot 2
    • Contenido del slot 3
    • Contenido del slot 4
    • Path del fichero de parámetros.
  • Generación de fichero de salida en formato csv o excel.

Getting Started

Dependencies

  • pandas~=2.2.3
  • PyYAML~=6.0.2
  • setuptools~=75.8.2
  • openpyxl~=3.1.5

Installing

pip install nidec-inventory

Usage

Ejemplos de ejecución:

# Ejemplos de salida en formato csv
$ python nidec-inventory.py -p "../REPO/Unidrive M Connect/" -f log
$ python nidec-inventory.py -p "../REPO/Unidrive M Connect/" -o csv -f log

# Ejemplo de salida en formato excel
$ python nidec-inventory.py -p "../REPO/Unidrive M Connect/" -o excel -f log

[!NOTE] Por defecto, si solo se especifica el path del repositorio de parámetros, se generará un inventario en un fichero de tipo csv.

Common arguments

  • --help (-h): muestra esta ayuda y sale.
  • --path_repo (-p): path del repositorio de ficheros de parámetros.
  • --file_out (-f): nombre del fichero de salida (sin extensión).
  • --output_format (-o): formato del fichero de salida, csv o excel.

Author

  • Carlos Alonso Martín

Changelog

  • 0.0a14
    • Bugs fixed
  • 0.0a5
    • Code rearrangement
  • 0.0a4
    • Bugs fixed with excel format

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

nidec_inventory-0.0a14.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

nidec_inventory-0.0a14-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file nidec_inventory-0.0a14.tar.gz.

File metadata

  • Download URL: nidec_inventory-0.0a14.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for nidec_inventory-0.0a14.tar.gz
Algorithm Hash digest
SHA256 28de1520479e4082ef9a3b9fbd2d185e8c08eff029c089e5e1635b635eca7efa
MD5 5ee65158c6229c82d63e5e0eedbb9e1a
BLAKE2b-256 0da60dc9ccc1cb4873776c61ed54e21564e9fd8508de6c3e4b020a22e25969c2

See more details on using hashes here.

File details

Details for the file nidec_inventory-0.0a14-py3-none-any.whl.

File metadata

File hashes

Hashes for nidec_inventory-0.0a14-py3-none-any.whl
Algorithm Hash digest
SHA256 85b309e91b6308ecdf802cd4a1377f94431cc21439ef217d5f2ec85c9b83b171
MD5 962a130e74c2c131caa9489987656d74
BLAKE2b-256 7c49955bdaa519636048d524c45a3d44c38e9dd524ccd2085d1ea1e15d6ba041

See more details on using hashes here.

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