Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apify/crawlee-python
/ from_tb
Method
from_tb
src/crawlee/_utils/byte_size.py:45–46 ·
view source on GitHub ↗
(cls, tb: float)
Source
from the content-addressed store, hash-verified
43
44
@classmethod
45
def
from_tb(cls, tb: float) -> ByteSize:
46
return
cls(int(tb * _BYTES_PER_TB))
47
48
def
to_kb(self) -> float:
49
return
self.bytes / _BYTES_PER_KB
Callers
2
test_get_memory_info_returns_valid_values
Function · 0.80
test_initializations
Function · 0.80
Calls
no outgoing calls
Tested by
2
test_get_memory_info_returns_valid_values
Function · 0.64
test_initializations
Function · 0.64