CEOS-ARD CLI
CLI for working with the CEOS-ARD building blocks and PFSes.
Getting Started
In order to make working with CEOS-ARD easier we have developed command-line interface (CLI) tools.
[!TIP] Most people won't need to install this tool. Instead, you can use the CEOS-ARD Editor to edit and/or generate the CEOS-ARD PFS documents.
Installation
Pixi is a modern package management tool that handles both conda and PyPI dependencies.
- Install Pixi by following the installation instructions (don't follow the "Get Started" instructions, you only need to run the single command provided in the "Installation" section).
- Clone this repository and the ceos-ard repository:
git clone https://github.com/ceos-org/ceos-ardgit clone https://github.com/ceos-org/ceos-ard-cli
- Navigate to the directory:
cd ceos-ard-cli - Install dependencies:
pixi install - Install browser for PDF rendering:
pixi run install-browser
Run the CLI
- Run
pixi shell - Switch into the folder that contains the contents of the
ceos-ardrepository:cd ../ceos-ard - Run
ceos-ardwith the command you want to execute, e.g.ceos-ard generate-all -o build
See the available commands for further details.
Commands
ceos-ard compile: Compile PFS document to a Markdown file
To compile a PFS document to a Markdown file, run:
- With Pixi:
ceos-ard compile SR - With traditional setup:
ceos-ard compile SR
The last part is the PFS to create, e.g. SR or NRB.
Check ceos-ard compile --help (or ceos-ard compile --help) for more details.
ceos-ard generate: Create Word/HTML/PDF documents for a single PFS
To create the Word, HTML, and PDF versions of a single PFS, run:
- With Pixi:
ceos-ard generate SR - With traditional setup:
ceos-ard generate SR
The last part is the PFS to create, e.g. SR or NRB.
To create a combined PFS, e.g. SAR, the following command can be used:
ceos-ard generate NRB POL ORB GSLC -o ../ceos-ard/build/Combined-SAR -i ../ceos-ard --title="Combined Synthetic Aperture Radar" --pfs-type="SAR" --id="SAR"
By default, HTML, PDF, and Word documents are generated.
Pass --pdf to skip the PDF output and/or --docx to skip the Word output; the HTML version is always generated.
Check ceos-ard generate --help (or ceos-ard generate --help) for more details.
ceos-ard generate-all: Create Word/HTML/PDF documents for all PFSes
To create the Word, HTML, and PDF versions for all PFSes, run:
- With Pixi:
ceos-ard generate-all - With traditional setup:
ceos-ard generate-all
As with ceos-ard generate, pass --pdf and/or --docx to skip the PDF and/or Word outputs.
Check ceos-ard generate-all --help (or ceos-ard generate-all --help) for more details.
ceos-ard validate: Validate CEOS-ARD components
To validate (most of) the building blocks, run:
- With Pixi:
ceos-ard validate - With traditional setup:
ceos-ard validate
Check ceos-ard validate --help (or ceos-ard validate --help) for more details.
Development
- Fork this repository if you plan to change the code or create pull requests.
- Clone either your forked repository or this repository, e.g.
git clone https://github.com/ceos-org/ceos-ard-cli - Switch into the newly created folder:
cd ceos-ard-cli - Follow the Installation instructions above
- Install dependencies and set up the development environment:
pixi run -e dev install-dev - Switch into the development envionment:
pixi shell -e dev - You can now run the CLI in development mode as normal.
- Run the checks (lint, format, tests) through
pixi run check-all - Optionally, you can install pre-commit hooks (
pre-commit install) to run lint and format automatically for each commit.
Metadata
Release files for ceos-ard-cli 0.5.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ceos_ard_cli-0.5.9.tar.gz | 42.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ceos_ard_cli-0.5.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.9 kB
Release files / ceos_ard_cli-0.5.9.tar.gz
| Download URL | ceos_ard_cli-0.5.9.tar.gz |
|---|---|
| Size | 42.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b34eb99a55bd46c541cbcdc17d79102ebec3c8fa176fd30ee676d02f74a9e49
|
|
BLAKE2b-256 checksum How to use checksums |
2590d6428b623df462905622728a79da778e91f162323948a92d28243cc03617
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / ceos_ard_cli-0.5.9-py3-none-any.whl
| Download URL | ceos_ard_cli-0.5.9-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6872816b37b821ecf4ee48b36489ab535d7ba550bc757945e1e47f2e21ddf9c2
|
|
BLAKE2b-256 checksum How to use checksums |
28f14f58fdb76ff4f27792a7c45ed519ac1319964a3391120699baa62049a16f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|