MCPcopy 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:

Calls

no outgoing calls