GHGA-Transpiler - excel to JSON converter
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ghga_transpiler-2.2.1.tar.gz
.
File metadata
- Download URL: ghga_transpiler-2.2.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6563b3aa52d0a9bb5d03989b7309f3471c5fae2ed5c7fa314ae74d851cb6f187 |
|
MD5 | ea894f09ba0370e8620fd20048c5627b |
|
BLAKE2b-256 | fd448e2ab8a8fa2546fa3b2feb507bc044266ccbaaf77e6247233a34571f9d0e |
File details
Details for the file ghga_transpiler-2.2.1-py3-none-any.whl
.
File metadata
- Download URL: ghga_transpiler-2.2.1-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92c43b15dfb6a226d3aad5cd4c97ff87cd53682de9eddfe3268b60d02416c04 |
|
MD5 | 5f821d0cb38662d2aa800bb81c872d5e |
|
BLAKE2b-256 | 35637b80d2ec8cc672f15e0fe262c02b36f90c39605448e5e0da34eb17aecc1b |