semvec/pypi-packages huggingface dataset:
radioscopyext 0.0.2
Minio Client API library
Requires Python: >=3.6

radioscopyext
-------------

Library for Minio Api's
### Installation
```sh
$ pip install radioscopyext
```

### Import 
```sh
from radioscopyext import MinioClient
```

### make Object of MinioClient class
```sh
obj = MinioClient(endpoint_url, access_key, secret_key, logger, secure=True)
```

### Run Any module
```sh

obj = MinioClient(endpoint_url, access_key, secret_key, logger, secure=True)

obj.get_file_path( bucket, folder_prefix, file_pattern, recursive=False)

```


### MinioClient All Methods  
```sh 

get_file_path( bucket, folder_prefix, file_pattern, recursive=False)
        This method will get the path of file from minio bucket
```

```sh
get_file_object( bucket: str, filepath: str)
        This method will saves file locally keeping the same relative path
```

```sh
put_file_object( bucket, local_filepath, minio_filepath)
        This method will saves file locally keeping the same relative path
```

```sh
remove_file_object( bucket, minio_filepath)
        This method will remove file object in minio
```

```sh
copy_object_within_storage( src_bucket, src_filepath, targetbucket, target_filepath)
        This method will copy object from a location to other in within minio
```

```sh
compose_to_minio( bucket_name, filepath, sources)
        This method will compose in minio
```

```sh
html_save( bucketname, fullpath, filename)
        This method save html to minio
```

```sh
get_object_from_storage( bucket_name, filepath)
        This method will get object from minio
```

```sh
get_bytes_data( bucket_name: str, filename: str)
        this method read data as bytes from minio bucket
```

```sh
create_bucket_if_not_exist( bucket_name: str)
        this method checks if bucket exists otherwise create it
```

```sh
write_df_to_storage( df: pd.DataFrame, bucket_name: str, outname: str)
        this method writes pandas dataframe to minio bucket with given object path
```

```sh
write_pickled_df_to_storage( df: pd.DataFrame, bucket_name: str, outname: str)
        this method writes pickled pandas dataframe to minio bucket with given object path
```

```sh
write_dict_to_storage( dict_obj: Dict, bucket_name: str, outname: str)
        this method writes dictionary to minio bucket with given object path as json object
```

```sh
write_df_as_xls( df: pd.DataFrame, bucket_name: str, outname: str)
        this method write dataframe to minio bucket as xls file
```

```sh
save_event_to_storage( df: pd.DataFrame, metadata, outname: str, bucket_name: str)
        this method pickle object to minio bucket
```

```sh
get_dataframe( bucket_name: str, filename: str, index_col: Union[str, bool, int] = None)
        this method Read files from bucket as dataframe
```

```sh
get_pickle( bucket_name: str, filename: str)
        this method Read files from bucket as pickle object
```

```sh
get_dict( bucket_name: str, filename: str)
        this method Read files from bucket as dict

```