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

Method from_kb

src/crawlee/_utils/byte_size.py:33–34  ·  view source on GitHub ↗
(cls, kb: float)

Source from the content-addressed store, hash-verified

31
32 @classmethod
33 def from_kb(cls, kb: float) -> ByteSize:
34 return cls(int(kb * _BYTES_PER_KB))
35
36 @classmethod
37 def from_mb(cls, mb: float) -> ByteSize:

Callers 1

test_initializationsFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_initializationsFunction · 0.64