etgen.sepa

A set of generator tags for building SEPA documents.

Requires Python 2.7 because it needs the default_namespace for ElementTree.write.

Usage:

>>> from etgen.sepa import E
>>> x = E.pain_001_001_02(
...   E.GrpHdr(
...     E.MsgId("SAL63023CP20130621022043"),
...     E.CreDtTm("2013-06-21T02:20:43") ,
...     E.NbOfTxs("8") ,
...     E.Grpg("MIXD") ,
...     E.InitgPty(E.Nm(u"ÖSHZ Nispert")) )
...   )
>>> print (E.tostring_pretty(x))
<pain.001.001.02 xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02">
<GrpHdr>
<MsgId>SAL63023CP20130621022043</MsgId>
<CreDtTm>2013-06-21T02:20:43</CreDtTm>
<NbOfTxs>8</NbOfTxs>
<Grpg>MIXD</Grpg>
<InitgPty>
<Nm>&#214;SHZ Nispert</Nm>
</InitgPty>
</GrpHdr>
</pain.001.001.02>