quantlab.acquisition.refresh.RawTierRefreshResult#

class quantlab.acquisition.refresh.RawTierRefreshResult(vendor, parts)[source]#

Bases: object

What one raw-tier refresh did, part by part.

Attributes:
vendorstr

The vendor refreshed.

partstuple of RefreshedPart

One entry per part tried, in the order it was tried.

Examples

>>> result = RawTierRefreshResult("fred", (RefreshedPart("DTB3", "through 2024-01-05"),))
>>> result.failed
()
>>> result.summary()
'DTB3: through 2024-01-05'
property failed#

The parts not refreshed, in the order they were tried.

Examples

>>> RawTierRefreshResult("massive", (RefreshedPart.failure("news", "x"),)).failed
('news',)
summary()[source]#

One line naming every part and what was done to it.

Examples

>>> RawTierRefreshResult("massive", ()).summary()
'nothing refreshed'