dazl

BasicsΒΆ

Mapping Daml types to Python types

Daml type

Python type

Unit or ()

dict() (an empty dictionary)

Bool

bool

Integer or Int

int

Decimal

decimal.Decimal

Text

str

Party

str

RelTime

datetime.timedelta

Date

datetime.datetime

Time

datetime.time

ContractId a

dazl.model.core.ContractId

List a

list

records

dict where keys are field names and values are as listed in this table

variants

dict containing a single key naming the specific constructor to use, and value as listed in this table