Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76569

dynamic values in yaml

Newsgroups comp.lang.python
Date 2014-08-19 07:32 -0700
Message-ID <c3aefcb3-7a4f-4dab-98b5-000defd17f03@googlegroups.com> (permalink)
Subject dynamic values in yaml
From raphinou@gmail.com

Show all headers | View raw


Hi,

I'm using pyyaml, and need some values in a yaml files to be dynamic, for example somethin like:

  filename: /tmp/backup_{% time.strftime('%Y-%m-%d') }.tgz

Is there a simple way to achieve this? (Eg with a templating system that would first handle the template parts from the yaml file)

Thanks

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

dynamic values in yaml raphinou@gmail.com - 2014-08-19 07:32 -0700
  Re: dynamic values in yaml Laurent Pointal <laurent.pointal@laposte.net> - 2014-08-19 19:01 +0200
    Re: dynamic values in yaml Rustom Mody <rustompmody@gmail.com> - 2014-08-19 10:15 -0700
      Re: dynamic values in yaml raphinou@gmail.com - 2014-08-19 23:50 -0700
        Re: dynamic values in yaml Rustom Mody <rustompmody@gmail.com> - 2014-08-20 00:36 -0700
        Re: dynamic values in yaml Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-20 09:59 +0100
        Re: dynamic values in yaml Laurent Pointal <laurent.pointal@laposte.net> - 2014-08-20 18:59 +0200

csiph-web