Skip to main content

Module to convert .sor otdr files to json or html plot.

Project description

OTDR .sor reader/converter

CLI per convertire file .sor da strumenti OTDR in .json o plot .html.

Installazione

Per installare il pacchetto, da terminale nella cartella che contiene il file wheel:

pip install \otdr_reader-0.2.8-py3-none-any.whl

modificando opportunamente la versione nel nome del file.

Attenzione che, per qualche motivo, non sempre funziona da PowerShell mentre sembra funzionare normalmente da command prompt.

Opzionalmente, da terminale PowerShell:

otdr_reader --install-completion

Command line interface

I comandi disponibili da command prompt sono:

  • otdr-reader file
  • otdr-reader folder

Di seguito le descrizioni dei singoli comandi.

otdr-reader file

Utilizzo:

$ otdr-reader [OPTIONS] FILE

Argomenti:

  • FILE: [required]

Opzioni:

  • --output TEXT. Default: html. Valori ammessi: html, json.
  • --smooth INT. Default: 0. Numero di campioni per la finestra della media mobile. Utilizzato solo per il plot.
  • --logo / --no-logo. Default: --logo. Aggiunge logo Cohaerentia nel grafico.

Descrizione:

Comando per convertire un file .sor di un OTDR in un plot html o un file json. Il file verrà creato con stesso nome del .sor e nella stessa cartella.

otdr-reader folder

Utilizzo:

$ otdr-reader convert-folder [OPTIONS]

Opzioni:

  • --folder TEXT. Default: current folder.
  • --output TEXT. Default: html. Valori ammessi: html, json.
  • --target-folder TEXT. Default: sottocartella converted.
  • --target-filename TEXT
  • --smooth INT. Default: 0. Numero di campioni per la finestra della media mobile. Utilizzato solo per il plot.
  • --logo / --no-logo. Default: --logo. Aggiunge logo Cohaerentia nel grafico.

Descrizione:

Comando per convertire tutti i files .sor di un OTDR contenuti nella cartella FOLDER. Possono essere convertiti in files json (un file per ogni .sor) o in un singolo plot html.

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

otdr_reader-1.3.0.tar.gz (388.5 kB view details)

Uploaded Source

Built Distribution

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

otdr_reader-1.3.0-py3-none-any.whl (389.2 kB view details)

Uploaded Python 3

File details

Details for the file otdr_reader-1.3.0.tar.gz.

File metadata

  • Download URL: otdr_reader-1.3.0.tar.gz
  • Upload date:
  • Size: 388.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.9 Windows/11

File hashes

Hashes for otdr_reader-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ed01d1dde299ebe024c1ce2c4c94a19863428f95f4e137dbe966d8afd1f48226
MD5 dae00fd688f9540c24d7231aa709d521
BLAKE2b-256 4a294300ac42da96d3f3905dcac17c80c8b2da8295337ccb052cfc838ddcd9c1

See more details on using hashes here.

File details

Details for the file otdr_reader-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: otdr_reader-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 389.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.9 Windows/11

File hashes

Hashes for otdr_reader-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b40525c0435d00f72085d6f2b9470aad3f75eb59b5348a23903f20e5f81205b
MD5 c5ce8eb46b2b1018396ac0f02d4ed72d
BLAKE2b-256 cdc35e27ce1a36ecde0092fa7902f6f734fde75d76d14096eaa7e1b51b1cd2a9

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