Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_config
Method · 0.80
test_initializations
Function · 0.80
test_conversions
Function · 0.80
Calls
no outgoing calls
Tested by
2
test_initializations
Function · 0.64
test_conversions
Function · 0.64