Skip to main content

Decorador que proporciona estadisticas del hardware

Project description

Hardware metrics

Librería desarrollada para la evaluación de consumo de recursos hardware por un método.

Para ello se ha desarrollado un decorador que se coloca sobre la función que ejecuta el código del que queremos obtener las métricas.

Instalación

  • Clonar repositorio

  • Ejecutar el siguiente comando

      python3 -m pip install --upgrade build
      python3 -m build
    
  • Tras ello se habrá creado una carpeta /dist con un fichero con formato .whl, se deberá hacer pip install y la ruta al archivo, esto instalará la librería y todas las dependencias en el environment actual.

Uso

Para importar la función principal de la librería:

from hardware_metrics import hardware_metrics

Para usar el método, se deberá poner encima de la función el decorador importado:

@hardware_metrics('path/de/prueba')
def hello_world: #función de ejemplo
    print('hola')

También se puede escribir sin path para que se utilice el path por defecto 'hardware_metrics_results':

@hardware_metrics()
def hello_world: #función de ejemplo
    print('hola')

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

hardware_metrics_iti-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

hardware_metrics_iti-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file hardware_metrics_iti-0.0.2.tar.gz.

File metadata

  • Download URL: hardware_metrics_iti-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for hardware_metrics_iti-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0520fa8033e42c3f564cd0451345f076cef1bc8ed7bc24989c0c290e44774454
MD5 a3f8571f28b2a7a504f98f57d3d4a4cb
BLAKE2b-256 92acabb19ea0ea04a860e7459d59209f8e8f349d01d501c972e93134f8a7dc23

See more details on using hashes here.

File details

Details for the file hardware_metrics_iti-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hardware_metrics_iti-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b189df4649f28bd6f65b7f67d95cde8a363c8bcda73f0d70230166118cffd4a8
MD5 136d1be8065c7de5c603514b1fc6922c
BLAKE2b-256 dff9b983663f67e2133148f4ac73a099f89c11b26224947ed620707b660aa22e

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