Skip to main content

emit files from one yaml file

Project description

https://travis-ci.org/podhmo/nejimaki.svg?branch=master

generating file tree from one yamle file.

example

data.yaml

./conf:
  ./base:
    base.yaml:
      logging:
        asctime: 2013-04-10 15:39:26,014
        created: 1365604766.014612
        levelname: INFO
        message: test message
        name: logger_name
  dev.yaml:
    debug: true
    $inherits: "./base/base.yaml"
  staging.yaml:
    debug: false
    $inherits: "./base/base.yaml"
  production.yaml:
    $inherits: "./staging.yaml"
$ nejimaki examples/readme/data.yaml --position=examples/readme
 INFO   nejimaki      emit:conf/base/base.yaml
 INFO   nejimaki      emit:conf/dev.yaml
 INFO   nejimaki      emit:conf/staging.yaml
 INFO   nejimaki      emit:conf/production.yaml

$ tree examples/readme/conf
examples/readme/conf
├── base
│   └── base.yaml
├── dev.yaml
├── production.yaml
└── staging.yaml

1 directory, 4 files

0.1.1

  • raw format

0.1.0

  • initial release

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

nejimaki-0.1.2.tar.gz (2.7 kB view hashes)

Uploaded source

Built Distribution

nejimaki-0.1.2-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded 3 5

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page