Batch processing of MCF files from a user-specified location

Aperta
#63 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Parti dal punto di ingresso della riga di comando di pygeometa e segui come vengono gestiti --mfc, --output e --schema. Implementa l'ambito iniziale dell'elaborazione batch descritto: elabora i file MCF dalla directory specificata, salta i file base_mcf e scrivi gli output XML corrispondenti nella directory di output. Il lavoro è completato quando un singolo comando gestisce tutti i file idonei applicando gli altri argomenti a ciascuno di essi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted

Feature request for the capability to launch pygeometa and process multiple MCF files located in a user-specified directory with a single command.

This 'batch mode' could be invoked directly from pygeometa with the --batch argument. If --batch is specified, then pygeometa is ran for every mcf files in the directory specified with --mfc= and all the outputs files are named the same as input files but end with .xml and are saved in the directory specified by --output. Other pygeometa arguments such as --schema= are applied to all MCF files processed in batch.

An initial version of this batch mode can simply loop on all mcf files and generate the corresponding xml files. The batch mode should skip base_mcf mcf files, which can't be processed on their own.

Future versions could:

  • Recursively look in the --mfc= folder to process .mcf files located in subfolders as well and output the same directory structure to --output=
  • Provide a log with warnings, errors and outputs. The log location and named could be specified by the --log= argument
  • The batch mode could also look in the output directly if a corresponding xml exists and skip running if the input mcf file has not change since last time the batch mode was ran. The last time the batch mode was ran could be specified in the log file found at the --log= location

Thoughts / comments?

Lingua principale
Python
Stelle
130
Fork
54
Merge medio
14h 19m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di geopython/pygeometa

Tutte le issue di geopython/pygeometa

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.