Skip to main content

YAML macro processor

Project description

iYAML

iYAML is a YAML macro processor.

iYAML provides the following YAML tags:

  • !include - to include the content of the specified file, or files matching the given wildcard
  • !env - to include the value of the specified environment variable

Installation

Install default version from the Python Package Index:

pip install iyaml

Examples

Here is an example of including files and environment variables:

foo:
  greeting: !include greeting.txt
  secret_token: !env TOKEN

bar: !include temlates/*.sql

To load the YAML file use the following code:

import iyaml


data = iyaml.load("file.yaml")

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

iyaml-0.1.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

iyaml-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file iyaml-0.1.2.tar.gz.

File metadata

  • Download URL: iyaml-0.1.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.0

File hashes

Hashes for iyaml-0.1.2.tar.gz
Algorithm Hash digest
SHA256 53cfd9d4bbde48a26e269e9cced5870786c8fc6ada461e306629b3ceb8276ddc
MD5 52254cb71c0be0834c0662a3b883fb80
BLAKE2b-256 556487ef5999b71ecc289c5ac9fd38b6860e3e4395e5f3d22ca87baa0b7c6ac5

See more details on using hashes here.

File details

Details for the file iyaml-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: iyaml-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.0

File hashes

Hashes for iyaml-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ed42e38b17b7ee2f5dc7237fedac9470494fa558fba6525d95e79b63e915838b
MD5 83ed432ed1c8192d335e5e4ef47af806
BLAKE2b-256 781a24d16af8cd075854ea92473cd54bddefb05bdfacb712c35f40af594f2393

See more details on using hashes here.

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