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

Method get_storage_client

src/crawlee/_service_locator.py:93–104  ·  view source on GitHub ↗

Get the storage client.

(self)

Source from the content-addressed store, hash-verified

91 self._event_manager = event_manager
92
93 def get_storage_client(self) -> StorageClient:
94 """Get the storage client."""
95 if self._storage_client is None:
96 logger.debug('No storage client set, implicitly creating and using default FileSystemStorageClient.')
97 if self._configuration is None:
98 logger.warning(
99 'Implicit creation of storage client will implicitly set configuration as side effect. '
100 'It is advised to explicitly first set the configuration instead.'
101 )
102 self._storage_client = FileSystemStorageClient()
103
104 return self._storage_client
105
106 def set_storage_client(self, storage_client: StorageClient) -> None:
107 """Set the storage client.

Callers 15

openMethod · 0.80
openMethod · 0.80
openMethod · 0.80
_snapshot_clientMethod · 0.80
__init__Method · 0.80
get_request_managerMethod · 0.80
get_datasetMethod · 0.80
get_key_value_storeMethod · 0.80
get_dataMethod · 0.80
export_dataMethod · 0.80
_add_requestsMethod · 0.80

Calls 1