fiboa / cli

CLI for fiboa (validation, inspection, schema and file creation, etc.)
https://pypi.org/project/fiboa-cli/
Apache License 2.0
0 stars 7 forks source link

Add an option in `convert` to utilize a local version of the file instead of downloading? #33

Closed cholmes closed 6 months ago

cholmes commented 6 months ago

For larger datasets to convert it can be annoying to wait for it to download it from the source, and if you've already downloaded the data you could just use it locally. I was able to dig through the code and figure out that I could just change the URI in the code to point to a local file. But it'd be nice if I didn't have to change code, if I could just use the CLI and say something like -i / --in as an optional argument to point at a file locally. It'd have to be the exact same as the one that gets downloaded online.

Open to other ways to achieve this, just seems like it'd be nice in places with slow connections, etc.

m-mohr commented 6 months ago

You can use the -c Option for this.

cholmes commented 6 months ago

Ah cool! Sorry I missed it. The new explanation looks much better.