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

Method from_mb

src/crawlee/_utils/byte_size.py:37–38  ·  view source on GitHub ↗
(cls, mb: float)

Source from the content-addressed store, hash-verified

35
36 @classmethod
37 def from_mb(cls, mb: float) -> ByteSize:
38 return cls(int(mb * _BYTES_PER_MB))
39
40 @classmethod
41 def from_gb(cls, gb: float) -> ByteSize:

Callers 3

from_configMethod · 0.80
test_initializationsFunction · 0.80
test_conversionsFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_initializationsFunction · 0.64
test_conversionsFunction · 0.64