Skip to main content

tests Coverage Status

Ghga Transpiler

GHGA-Transpiler - excel to JSON converter

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.

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-2.3.2.tar.gz (17.0 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-2.3.2-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghga_transpiler-2.3.2.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ghga_transpiler-2.3.2.tar.gz
Algorithm Hash digest
SHA256 419a8b61e106e9fb5116bfde5a538f4f0166d79185304401ceb361c049963647
MD5 cb7d81672c57e3cfdd63ec5ef65917b9
BLAKE2b-256 d8df9a63504ff72ccb62c018af9b7ad3769859a25e8e4cc2fea462b9c2d6ae82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ghga_transpiler-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0057d9affed531f56eadc59660796b3517b5aed7a772b6d9cce1e31c43c78812
MD5 34e227cd67e12f4ade85702253e1b3cc
BLAKE2b-256 a60fc9cca178f51792eee0fa93ea8f084f681a8d3964c7c3784d7cdee17b6155

See more details on using hashes here.

Release history Release notifications | RSS feed

2.5.0

2 files

2.4.1

2 files

2.4.0

2 files

This release

2.3.2 This release

2 files

2.3.1

2 files

2.2.1

2 files

2.2.0

2 files

2.1.5

2 files

2.1.4

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.0

2 files

1.4.0

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page