Skip to main content

JEDI Configuration Builder

Project description

JEDI Configuration Builder

Repository status:

JCB Tests

Installation

For the latest development version from PyPI (published automatically on pushes to develop):

pip install jcb

For development or to install from source:

git clone https://github.com/noaa-emc/jcb
cd jcb

# Optional step if you want to run the client integration tests
./jcb_client_init.py  # May first require `pip install pyyaml` if it is not available

pip install --prefix=/path/to/where/you/want/installed .

# Run the tests
pytest

Description

How to use from the command line:

jcb render dictionary_of_templates.yaml jedi_config.yaml

The below shows two examples of calling jcb from a python client. In each case you have to provide a dictionary that describes all the ways that you want to render the templates in the contained JEDI YAML files.

First jcb provides a convenient single line call passing in the dictionary of templated and getting back the dictionary. The dictionary of templates has to contain an algorithm key telling the system which JEDI algorithm you want to run.

import jcb

jedi_config_dict = jcb.render(dictionary_of_templates)

For situations where you wish to create YAML files for several algorithms using the same dictionary of templates you can access the class directly.

import jcb

jcb_obj = jcb.Renderer(dictionary_of_templates)
jedi_dict_2_a = jcb_obj.render('hofx4d')
jedi_dict_2_b = jcb_obj.render('variational')

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

jcb-0.1.0.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

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

jcb-0.1.0-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file jcb-0.1.0.tar.gz.

File metadata

  • Download URL: jcb-0.1.0.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jcb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3fb5d99583d113da39c1f9da9460eca66f0067cabd28b34ef35e6b7353cabd17
MD5 a7376c11249b979f7e245345004a392c
BLAKE2b-256 97291bf87d4ef2b5ff59962066b2323cb246b66aa2420bcfe03cd1291e53c415

See more details on using hashes here.

Provenance

The following attestation bundles were made for jcb-0.1.0.tar.gz:

Publisher: release.yaml on NOAA-EMC/jcb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jcb-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jcb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jcb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28104f99b613169023742590caac4ae1d76659bcc558d2379075f93b52d93bb0
MD5 5f28768c5f7b79cb5185e2fc8a2b9271
BLAKE2b-256 4cd3e88c18b4d4aba51b13520024a534f2f313bfdaca9b57f8d0b356d1ba82ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for jcb-0.1.0-py3-none-any.whl:

Publisher: release.yaml on NOAA-EMC/jcb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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