@@ -65,11 +65,11 @@ def __init__(
6565 self ._container_name ,
6666 self ._path_prefix ,
6767 )
68- self .create_container ()
68+ self ._create_container ()
6969
70- def create_container (self ) -> None :
70+ def _create_container (self ) -> None :
7171 """Create the container if it does not exist."""
72- if not self .container_exists ():
72+ if not self ._container_exists ():
7373 container_name = self ._container_name
7474 container_names = [
7575 container .name
@@ -78,12 +78,12 @@ def create_container(self) -> None:
7878 if container_name not in container_names :
7979 self ._blob_service_client .create_container (container_name )
8080
81- def delete_container (self ) -> None :
81+ def _delete_container (self ) -> None :
8282 """Delete the container."""
83- if self .container_exists ():
83+ if self ._container_exists ():
8484 self ._blob_service_client .delete_container (self ._container_name )
8585
86- def container_exists (self ) -> bool :
86+ def _container_exists (self ) -> bool :
8787 """Check if the container exists."""
8888 container_name = self ._container_name
8989 container_names = [
@@ -119,7 +119,7 @@ def find(
119119 file_pattern .pattern ,
120120 )
121121
122- def blobname (blob_name : str ) -> str :
122+ def _blobname (blob_name : str ) -> str :
123123 if blob_name .startswith (self ._path_prefix ):
124124 blob_name = blob_name .replace (self ._path_prefix , "" , 1 )
125125 if blob_name .startswith ("/" ):
@@ -146,7 +146,7 @@ def item_filter(item: dict[str, Any]) -> bool:
146146 if match and blob .name .startswith (base_dir ):
147147 group = match .groupdict ()
148148 if item_filter (group ):
149- yield (blobname (blob .name ), group )
149+ yield (_blobname (blob .name ), group )
150150 num_loaded += 1
151151 if max_count > 0 and num_loaded >= max_count :
152152 break
@@ -203,7 +203,7 @@ async def set(self, key: str, value: Any, encoding: str | None = None) -> None:
203203 except Exception :
204204 log .exception ("Error setting key %s: %s" , key )
205205
206- def set_df_json (self , key : str , dataframe : Any ) -> None :
206+ def _set_df_json (self , key : str , dataframe : Any ) -> None :
207207 """Set a json dataframe."""
208208 if self ._connection_string is None and self ._storage_account_name :
209209 dataframe .to_json (
@@ -225,7 +225,7 @@ def set_df_json(self, key: str, dataframe: Any) -> None:
225225 force_ascii = False ,
226226 )
227227
228- def set_df_parquet (self , key : str , dataframe : Any ) -> None :
228+ def _set_df_parquet (self , key : str , dataframe : Any ) -> None :
229229 """Set a parquet dataframe."""
230230 if self ._connection_string is None and self ._storage_account_name :
231231 dataframe .to_parquet (
0 commit comments