Skip to main content

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.

  1. 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).
  2. Clone this repository and the ceos-ard repository:
    • git clone https://github.com/ceos-org/ceos-ard
    • git clone https://github.com/ceos-org/ceos-ard-cli
  3. Navigate to the directory: cd ceos-ard-cli
  4. Install dependencies: pixi install
  5. Install browser for PDF rendering: pixi run install-browser

Run the CLI

  1. Run pixi shell
  2. Switch into the folder that contains the contents of the ceos-ard repository: cd ../ceos-ard
  3. Run ceos-ard with 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

  1. Fork this repository if you plan to change the code or create pull requests.
  2. Clone either your forked repository or this repository, e.g. git clone https://github.com/ceos-org/ceos-ard-cli
  3. Switch into the newly created folder: cd ceos-ard-cli
  4. Follow the Installation instructions above
  5. Install dependencies and set up the development environment: pixi run -e dev install-dev
  6. Switch into the development envionment: pixi shell -e dev
  7. You can now run the CLI in development mode as normal.
  8. Run the checks (lint, format, tests) through pixi run check-all
  9. Optionally, you can install pre-commit hooks (pre-commit install) to run lint and format automatically for each commit.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ceos_ard_cli-0.5.7.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ceos_ard_cli-0.5.7-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file ceos_ard_cli-0.5.7.tar.gz.

File metadata

  • Download URL: ceos_ard_cli-0.5.7.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ceos_ard_cli-0.5.7.tar.gz
Algorithm Hash digest
SHA256 19efe43e29b57965e851ee7f210362f46034744493985211841acda72711cde9
MD5 4fc55e7ca971c6e9c48044bc57b503b2
BLAKE2b-256 9724eea997b6d4e5bcf1572a980fdb8e4606ae42b02ab958af41f8158767e5e5

See more details on using hashes here.

File details

Details for the file ceos_ard_cli-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: ceos_ard_cli-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ceos_ard_cli-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d2eab2ff8fb9b390fc09c22a23b52c52b7b665f83dfb07659a5fc881c4405289
MD5 8fb3bb64ccc1fa05bd914980d60da14e
BLAKE2b-256 082feeeb9262d7ba9fa72558c6f4dfe74ca79197ced0c49e2449af5354d6e94b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.9

2 files

0.5.8

2 files

This release

0.5.7 This release

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page