Skip to main content

GHGA-Transpiler - GHGA metadata XLSX to JSON transpilation

Project description

tests Coverage Status

Ghga Transpiler

GHGA-Transpiler - GHGA metadata XLSX to JSON transpilation

Description

The GHGA Transpiler is a Python library and command line utility to transpile the official GHGA metadata XLSX workbooks to JSON. Please note that the GHGA Transpiler does not validate that the provided metadata is compliant with the GHGA Metadata Schema. This can be achieved by running the GHGA Validator on the JSON data generated by the GHGA Transpiler.

Installation

We recommend installing the latest version of the GHGA transpiler using pip

pip install ghga-transpiler

Usage:

Usage: ghga-transpiler [OPTIONS] SPREAD_SHEET [OUTPUT_FILE]

  ghga-transpiler is a command line utility to transpile the official GHGA
  metadata XLSX workbooks to JSON. Please note that ghga-transpiler does not
  validate that the provided metadata is compliant with the GHGA Metadata
  Schema. This can be achieved by running ghga-validator on the JSON data
  generated by the ghga-transpiler.

Arguments:
  SPREAD_SHEET   The path to input file (XLSX)  [required]
  [OUTPUT_FILE]  The path to output file (JSON).

Options:
  -f, --force                     Override output file if it exists.
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

Development

For setting up the development environment, we rely on the devcontainer feature of vscode in combination with Docker Compose.

To use it, you have to have Docker Compose as well as vscode with its "Remote - Containers" extension (ms-vscode-remote.remote-containers) installed. Then open this repository in vscode and run the command Remote-Containers: Reopen in Container from the vscode "Command Palette".

This will give you a full-fledged, pre-configured development environment including:

  • infrastructural dependencies of the service (databases, etc.)
  • all relevant vscode extensions pre-installed
  • pre-configured linting and auto-formating
  • a pre-configured debugger
  • automatic license-header insertion

Moreover, inside the devcontainer, a convenience commands dev_install is available. It installs the software with all development dependencies, installs pre-commit.

The installation is performed automatically when you build the devcontainer. However, if you update dependencies in the ./setup.cfg or the ./requirements-dev.txt, please run it again.

License

This repository is free to use and modify according to the Apache 2.0 License.

Readme Generation

This readme is autogenerate, please see readme_generation.md for details.

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

ghga_transpiler-1.0.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

ghga_transpiler-1.0.1-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file ghga_transpiler-1.0.1.tar.gz.

File metadata

  • Download URL: ghga_transpiler-1.0.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ghga_transpiler-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4aca71d4513490521a4923205349dfe0bee149573c1b30a70698a68da5eef518
MD5 8c9014b396365c0a652a81f2a645d1ff
BLAKE2b-256 5316d8e5a7f71b57111aac8b31224ce446d5f9a2b78e42d569ddba522801f05a

See more details on using hashes here.

File details

Details for the file ghga_transpiler-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ghga_transpiler-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 729246806e61c43b81d04f92358f1353b6923b84bf56a98e375c625bc7f2e1ab
MD5 e1e01740de9dfdc3eee49d593f3f1d46
BLAKE2b-256 ee8e30936801e620667c3eeeca68fa63fa7c7540fc3c65fe3f1a19fe8d2e1770

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