Install¶
Python 3.10 or later is required. The package depends on transpiler-mate-api,
Loguru, pystac-ext-ogc-record (at least 1.1.0), giturlparse (at least
0.15.0), and pystac-ext-vcs (at least 0.1.0).
Use the published package¶
python -m pip install cwl2ogcrecords
For command-line conversion, the transpiler-mate CLI must also be installed
in the same environment. This package registers a plugin entry point; it does
not install a standalone cwl2ogcrecords executable.
Verify plugin discovery:
transpiler-mate --help
transpiler-mate cwl2ogcrecords --help
If the command is missing, check that the CLI and plugin use the same Python
environment. To use the plugin from Python with a resolved TranspilerContext:
from cwl2ogcrecords.plugin import CWL2OGCAPIRecordsOptions, cwl2ogcrecords
Work from source¶
git clone https://github.com/Transpiler-Mate/cwl2ogcrecords
cd cwl2ogcrecords
python -m pip install -e .
Use the local VCS extension¶
To develop against a local pystac-ext-vcs checkout, install it with the plugin:
python -m pip install /path/to/pystac-ext-vcs -e .
Install the local extension into each Hatch environment before running checks
if the extension is not yet available from your package index. Package metadata
uses the portable pystac-ext-vcs>=0.1.0 requirement.
Preview documentation¶
From the repository root:
python -m pip install mkdocs 'mkdocstrings[python]' pymdown-extensions
python -m mkdocs serve -f mkdocs.yaml
To check the complete site without serving it:
python -m mkdocs build --strict -f mkdocs.yaml