> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/curator/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/curator/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/curator/_mcp/server.

# nemo_curator.utils.client_utils

## Module Contents

### Classes

| Name                                                | Description                                                               |
| --------------------------------------------------- | ------------------------------------------------------------------------- |
| [`FSPath`](#nemo_curator-utils-client_utils-FSPath) | Wrapper that combines filesystem and path for convenient file operations. |

### Functions

| Name                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [`is_remote_url`](#nemo_curator-utils-client_utils-is_remote_url) | -           |

### API

```python
class nemo_curator.utils.client_utils.FSPath(
    fs: fsspec.AbstractFileSystem,
    path: str
)
```

Wrapper that combines filesystem and path for convenient file operations.

```python
nemo_curator.utils.client_utils.FSPath.__repr__()
```

```python
nemo_curator.utils.client_utils.FSPath.__str__()
```

```python
nemo_curator.utils.client_utils.FSPath.as_posix() -> str
```

```python
nemo_curator.utils.client_utils.FSPath.get_bytes_cat_ranges(
    part_size: int = 10 * 1024 ** 2
) -> bytes
```

Read object into memory using fsspec's cat\_ranges.
Modified from [https://github.com/rapidsai/cudf/blob/ba64909422016ba389ab06ed01d7578336c19e8e/python/dask\_cudf/dask\_cudf/io/json.py#L26-L34](https://github.com/rapidsai/cudf/blob/ba64909422016ba389ab06ed01d7578336c19e8e/python/dask_cudf/dask_cudf/io/json.py#L26-L34)

```python
nemo_curator.utils.client_utils.FSPath.open(
    mode: str = 'rb',
    kwargs = {}
) -> fsspec.spec.AbstractBufferedFile
```

```python
nemo_curator.utils.client_utils.is_remote_url(
    url: str
) -> bool
```