Skip to main content

jose5

JSON Composer

The fifth José in Aplazame

Example

The following file, dev.json ...

{
    "__extends": "./base.json",
    "__variables": {
        "ENVIRONMENT": "dev",
        "tfstate": {
            "with": {
                "stuff": 42
            }
        }
    },
    "environment": [
        {
            "name": "LOG_LEVEL",
            "value": "DEBUG"
        },
        {
            "name": "EXTRA_DEVELOPMENT_PARAM",
            "value": 20
        },
        {
            "name": "TFSTATE_STUFF",
            "value": "${tfstate.with.stuff}"
        }
    ],
    "secrets": [
        {
            "name": "SECRET_KEY",
            "valueFrom": "${PARAM_BASE_PATH}/SECRET_KEY"
        }
    ],
    "mergemap": {
        "b": "dev",
        "c": "dev"
    },
    "list": "${LIST_TEST}",
    "map": "${LIST_MAP}"
}

... with base.json

{
    "__variables": {
        "PARAM_BASE_PATH": "/app/${ENVIRONMENT}",
        "LIST_TEST": [
            1,
            2,
            3
        ],
        "LIST_MAP": {
            "a": 44
        }
    },
    "environment": [
        {
            "name": "ENVIRONMENT",
            "value": "${ENVIRONMENT}"
        },
        {
            "name": "LOG_LEVEL",
            "value": "INFO"
        }
    ],
    "mergemap": {
        "a": "base",
        "b": "base"
    }
}

... produces this result

{
  "environment": [
    {
      "name": "ENVIRONMENT",
      "value": "dev"
    },
    {
      "name": "LOG_LEVEL",
      "value": "DEBUG"
    },
    {
      "name": "EXTRA_DEVELOPMENT_PARAM",
      "value": 20
    },
    {
      "name": "TFSTATE_STUFF",
      "value": 42
    }
  ],
  "mergemap": {
    "a": "base",
    "b": "dev",
    "c": "dev"
  },
  "secrets": [
    {
      "name": "SECRET_KEY",
      "valueFrom": "/app/dev/SECRET_KEY"
    }
  ],
  "list": [
    1,
    2,
    3
  ],
  "map": {
    "a": 44
  }
}

Release files for jose5 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jose5 0.4.0
File Size Uploaded
jose5-0.4.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jose5 0.4.0
File Interpreter ABI Platform
jose5-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / jose5-0.4.0.tar.gz

Download URL jose5-0.4.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
84c9ec39c672955bf0a5b29cb85032de11ad63c40e077ff87c7542d979714e9f
BLAKE2b-256 checksum
How to use checksums
7949e3d6f27bb095bb209ad56961674c031a14f9a16c5866813ffd66422db6b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

Release files / jose5-0.4.0-py3-none-any.whl

Download URL jose5-0.4.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e19935661343ec95387556e7b5361e9d6a8787a5c3ab032fdde745ceea97d81
BLAKE2b-256 checksum
How to use checksums
571c45f0026927d07e5a006ecd8501a9e2223803a69a01d4b70b242a3aea7b61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release 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