Skip to main content

CLI tools for CEOS-ARD to generate and validate PFS documents

Project description

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.

Installation

Pixi is a modern package management tool that handles both conda and PyPI dependencies.

  1. Install Pixi by following the installation instructions
  2. Clone this repository: 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
  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 SAR-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 SAR-NRB.

To create a combined PFS, e.g. SAR, the following command can be used: ceos-ard generate SAR-NRB SAR-POL SAR-ORB SAR-GSLC -o ../ceos-ard-spec/build/ -i ../ceos-ard-spec --docx --title="Combined Synthetic Aperture Radar" --version="1.1" --pfs-type="SAR" --id="SAR"

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

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.

Project details


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.2.0.tar.gz (35.2 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.2.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ceos_ard_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for ceos_ard_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fa36b4be4647f640446c9c9c3f0db83f89ba6c043d127f932b910675966d6c6c
MD5 bb062c941a36e8efe994ccbd1623897d
BLAKE2b-256 dc480a8b1513db9f725c8158d82f90338175c00b13d6d2c09b6b054e99387ee8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ceos_ard_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for ceos_ard_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d8a644fd41eb5208073f495d0d123d758a03b4112e6003d8d0c68f695875745
MD5 6b7e9b207d2c20eb10df912a14521c0c
BLAKE2b-256 0ef6232bad766951bd19d973318b5068f477881557bc4bdf1f1d1e2af507084b

See more details on using hashes here.

Supported by

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