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.2.7.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.2.7-py3-none-any.whl (389.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: otdr_reader-1.2.7.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.2.7.tar.gz
Algorithm Hash digest
SHA256 cfdfde7cf720f9dc29d9509ca609e34f6cd1861c0f439fde89e854b6428b85d9
MD5 0af06512c46fd8486ec5382761f98361
BLAKE2b-256 8e0544301209014b8da2a85f490f2b04349aa2d299568afbe7a4a94a49345878

See more details on using hashes here.

File details

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

File metadata

  • Download URL: otdr_reader-1.2.7-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.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0049c1d577f2a68fb9360de1acf300fc85863dd0d1d291656e195d6d440bc6b4
MD5 7e0dd124fbf9d0447589fa536e32d651
BLAKE2b-256 a27e859ca79f64070e5fb332bb4ce388ee90e53c9ba5e6b116b2b50738708b87

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