Skip to main content

azyc: Yaml to azure deployment parameter json converter

PyPI - License PyPI PyPI - Python Version

Helper to create large large deployment-parameters.json files from small yaml files

Usage

You can specify deployment variables in a yml file.

Additionally to simple variables, you can add file pathes, which are read and written into the deplyoemnt file as string.

KeyVault values as also supported.

Examples:

foo: bar
booleanParam: true
numericParam: 22

arrayParam:
  array:
    - id: firstId
      name: firstName
    - id: secondId
      name: secondName

objectParam:
  object:
    id: firstId
    name: firstName
    
fileParam:
  file: path_to_file # will be read as utf-8, escaped and passed as string

binaryFileParam:
  binary: path_to_binary_file # will be read as binary, base64 encoded and passed as string

yamlParam:
  yaml: path_to_file # will be read as utf-8 yaml, optionally transformed and passed as escaped string
  overwrite: # optional, you can overwrite or add some parts in the yaml file with overwrite
    title: other title
 
keyVaultParam:
  keyVault: /subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.KeyVault/vaults/<vault-name>
  secretName: ExamplePassword

keyVaultParamWitVersion:
  keyVault: /subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.KeyVault/vaults/<vault-name>
  secretName: ExamplePassword
  secretVersion: cd91b2b7e10e492ebb870a6ee0591b68

Basic call:

python3 -m azyc -i path_to_config.yml -o paramters.json

You can add/overwrite parameters on the call:

python3 -m azyc -i path_to_config.yml -o paramters.json --param suffix=bar --param booleanParam=false 

Metadata

Release files for azyc 0.5.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 azyc 0.5.0
File Size Uploaded
azyc-0.5.0.tar.gz 4.4 kB Details

Built distribution (wheel)

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

Total release size: 9.2 kB

Release files / azyc-0.5.0.tar.gz

Download URL azyc-0.5.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4b3669d5e6ee824bc19ee4c317a258b379e31263a02177538c9ff2305b31af46
BLAKE2b-256 checksum
How to use checksums
40dcc36c4dd1fb6db50795cbaf10e6f58e82ca29d78da606cfa49112f47495b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / azyc-0.5.0-py3-none-any.whl

Download URL azyc-0.5.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be556d4788beb7b53c50fca1462c0cdb0d9df9ab3264380b63394a7ba2095263
BLAKE2b-256 checksum
How to use checksums
7f4696a8f0c37e2c6ab1c058418249deaf5ddbeb460c81d2c8a86ab20052d887
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

3 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