Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apify/crawlee-python
/ from_gb
Method
from_gb
src/crawlee/_utils/byte_size.py:41–42 ·
view source on GitHub ↗
(cls, gb: float)
Source
from the content-addressed store, hash-verified
39
40
@classmethod
41
def
from_gb(cls, gb: float) -> ByteSize:
42
return
cls(int(gb * _BYTES_PER_GB))
43
44
@classmethod
45
def
from_tb(cls, tb: float) -> ByteSize:
Callers
8
test_initializations
Function · 0.80
default_memory_info
Function · 0.80
test_snapshot_memory_with_memory_info_sets_system_wide_fields
Function · 0.80
test_memory_load_evaluation_logs_warning_on_high_usage
Function · 0.80
test_memory_load_evaluation_silent_on_acceptable_usage
Function · 0.80
create_event_data
Function · 0.80
test_get_system_info
Function · 0.80
test_memory_overloaded_system_wide
Function · 0.80
Calls
no outgoing calls
Tested by
8
test_initializations
Function · 0.64
default_memory_info
Function · 0.64
test_snapshot_memory_with_memory_info_sets_system_wide_fields
Function · 0.64
test_memory_load_evaluation_logs_warning_on_high_usage
Function · 0.64
test_memory_load_evaluation_silent_on_acceptable_usage
Function · 0.64
create_event_data
Function · 0.64
test_get_system_info
Function · 0.64
test_memory_overloaded_system_wide
Function · 0.64