# CloudBlobLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/blob_loaders/cloud_blob_loader/CloudBlobLoader)

Load blobs from cloud URL or file:.

Example:

.. code-block:: python

    loader = CloudBlobLoader("s3://mybucket/id")

    for blob in loader.yield_blobs():
        print(blob)

## Signature

```python
CloudBlobLoader(
    self,
    url: Union[str, AnyPath],
    *,
    glob: str = '**/[!.]*',
    exclude: Sequence[str] = (),
    suffixes: Optional[Sequence[str]] = None,
    show_progress: bool = False,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `url` | `Union[str, AnyPath]` | Yes | Cloud URL to load from.  Supports s3://, az://, gs://, file:// schemes.  If no scheme is provided, it is assumed to be a local file.  If a path to a file is provided, glob/exclude/suffixes are ignored. |
| `glob` | `str` | No | Glob pattern relative to the specified path   by default set to pick up all non-hidden files (default: `'**/[!.]*'`) |
| `exclude` | `Sequence[str]` | No | patterns to exclude from results, use glob syntax (default: `()`) |
| `suffixes` | `Optional[Sequence[str]]` | No | Provide to keep only files with these suffixes       Useful when wanting to keep files with different suffixes       Suffixes must include the dot, e.g. ".txt" (default: `None`) |
| `show_progress` | `bool` | No | If true, will show a progress bar as the files are loaded.            This forces an iteration through all matching files            to count them prior to loading them. (default: `False`) |

## Extends

- `BlobLoader`

## Constructors

```python
__init__(
    self,
    url: Union[str, AnyPath],
    *,
    glob: str = '**/[!.]*',
    exclude: Sequence[str] = (),
    suffixes: Optional[Sequence[str]] = None,
    show_progress: bool = False,
) -> None
```

| Name | Type |
|------|------|
| `url` | `Union[str, AnyPath]` |
| `glob` | `str` |
| `exclude` | `Sequence[str]` |
| `suffixes` | `Optional[Sequence[str]]` |
| `show_progress` | `bool` |


## Properties

- `path`
- `glob`
- `suffixes`
- `show_progress`
- `exclude`

## Methods

- [`yield_blobs()`](https://reference.langchain.com/python/langchain-community/document_loaders/blob_loaders/cloud_blob_loader/CloudBlobLoader/yield_blobs)
- [`count_matching_files()`](https://reference.langchain.com/python/langchain-community/document_loaders/blob_loaders/cloud_blob_loader/CloudBlobLoader/count_matching_files)
- [`from_path()`](https://reference.langchain.com/python/langchain-community/document_loaders/blob_loaders/cloud_blob_loader/CloudBlobLoader/from_path)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/document_loaders/blob_loaders/cloud_blob_loader.py#L127)