Skip to content

Instantly share code, notes, and snippets.

@strufkin
strufkin / export.py
Created April 17, 2020 08:47
dataclass example
@dataclass
class HistItem:
id: str
operation_date: date
total_amount: dict
trans_amount: dict
fee_data: list
amount: Decimal
category: str
@strufkin
strufkin / cayennelpp.py
Created January 5, 2018 00:11
CayenneLPP python lib for pycom
__author__ = __maintainer__ = "Helder Moreira"
__license__ = "MIT"
__version__ = "1.0.0"
# TYPE : [IPSO OBJ, SIZE(S)]
TYPE = {
'LPP_DIGITAL_INPUT' : [3200, 1 ],
'LPP_DIGITAL_OUTPUT' : [3201, 1 ],
'LPP_ANALOG_INPUT' : [3202, 2 ],
'LPP_ANALOG_OUTPUT' : [3203, 2 ],