MCPcopy Create free account
hub / github.com/apify/crawlee-python / to_dict

Method to_dict

src/crawlee/statistics/_models.py:47–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 return make_table([(str(k), str(v)) for k, v in formatted_dict.items()], width=_STATISTICS_TABLE_WIDTH)
46
47 def to_dict(self) -> dict[str, float | int | list[int]]:
48 return {k: v.total_seconds() if isinstance(v, timedelta) else v for k, v in asdict(self).items()}
49
50 @override
51 def __str__(self) -> str:

Callers 2

_logMethod · 0.80
runMethod · 0.80

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected