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

Method to_kb

src/crawlee/_utils/byte_size.py:48–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 return cls(int(tb * _BYTES_PER_TB))
47
48 def to_kb(self) -> float:
49 return self.bytes / _BYTES_PER_KB
50
51 def to_mb(self) -> float:
52 return self.bytes / _BYTES_PER_MB

Callers 2

__str__Method · 0.95
test_conversionsFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_conversionsFunction · 0.64