drylab env
Generates a Conda environment YAML file based on a paper's DOI or PDF.
Uses
drylab.config.json
by default if no flags are provided.
Usage
If drylab.config.json
is present in the current directory, --pdf
and --doi
are optional.
What it does
Sends a DOI or paper PDF to the DryLab API
Receives an auto-generated
env.yaml
fileWrites the environment file to disk (default:
env.yaml
)Reads from
drylab.config.json
by default if no flags are passed
Examples
Options
--pdf <path>
Path to paper PDF (overrides config)
--doi <doi>
DOI of the paper (overrides config)
--output <path>
Output path for env.yaml
(default: env.yaml
)
If both --pdf
and --doi
are passed, --pdf
takes precedence.
If no input is passed and drylab.config.json
is missing, it will error.
Output
By default, this writes:
This file can be used with conda env create -f env.yaml
.
Integration with config
If drylab.config.json
exists and contains:
Then drylab env
will auto-use those values.
You can override them anytime with CLI flags.
Last updated