---
sidebar:
  hidden: true
title: roboto.storage
---
Transfer of file contents between local disk and Roboto, and reads of byte ranges from a file Roboto stores.

To move whole files between local disk and Roboto, use [`FileService`](/docs/reference/python-sdk/roboto/storage#roboto.storage.FileService); to read a file at a URL, such as a signed download URL, fetching only the bytes read and writing nothing to disk, use [`HttpRangeReader`](/docs/reference/python-sdk/roboto/storage#roboto.storage.HttpRangeReader). Methods such as [`upload_files()`](/docs/reference/python-sdk/roboto/domain/datasets#roboto.domain.datasets.Dataset.upload_files), [`download()`](/docs/reference/python-sdk/roboto/domain/files#roboto.domain.files.File.download) and [`get_data()`](/docs/reference/python-sdk/roboto/domain/topics#roboto.domain.topics.Topic.get_data) move data through this package, so most code never calls it.

## Submodules

- [roboto.storage.api_operations](/docs/reference/python-sdk/roboto/storage/api_operations)
- [roboto.storage.cache](/docs/reference/python-sdk/roboto/storage/cache)
- [roboto.storage.credentials](/docs/reference/python-sdk/roboto/storage/credentials)
- [roboto.storage.download_session](/docs/reference/python-sdk/roboto/storage/download_session)
- [roboto.storage.file_service](/docs/reference/python-sdk/roboto/storage/file_service)
- [roboto.storage.http_range_reader](/docs/reference/python-sdk/roboto/storage/http_range_reader)
- [roboto.storage.object_store](/docs/reference/python-sdk/roboto/storage/object_store)
- [roboto.storage.sparse_buffer](/docs/reference/python-sdk/roboto/storage/sparse_buffer)
- [roboto.storage.upload_transaction](/docs/reference/python-sdk/roboto/storage/upload_transaction)

## Package Contents

- [AbortTransactionsRequest](/docs/reference/python-sdk/roboto/storage/api_operations#roboto.storage.api_operations.AbortTransactionsRequest) (class): Request body for `POST /v1/files/transactions/abort`, which abandons uploads.

- [BeginSignedUrlUploadRequest](/docs/reference/python-sdk/roboto/storage/api_operations#roboto.storage.api_operations.BeginSignedUrlUploadRequest) (class): Request body for `POST /v1/files/signed_url_upload`, which begins an upload of one file to a pre-signed URL.

- [BeginSignedUrlUploadResponse](/docs/reference/python-sdk/roboto/storage/api_operations#roboto.storage.api_operations.BeginSignedUrlUploadResponse) (class): Response body of `POST /v1/files/signed_url_upload`.

- [BeginUploadRequest](/docs/reference/python-sdk/roboto/storage/api_operations#roboto.storage.api_operations.BeginUploadRequest) (class): Request body for `POST /v1/files/upload`, which begins an upload of one or more files.

- [BeginUploadResponse](/docs/reference/python-sdk/roboto/storage/api_operations#roboto.storage.api_operations.BeginUploadResponse) (class): Response body of `POST /v1/files/upload`.

- [CachePolicy](/docs/reference/python-sdk/roboto/storage/cache#roboto.storage.cache.CachePolicy) (class): Cache policy of a topic data read: whether each data file is downloaded to the local cache before it is read.

- [DownloadableFile](/docs/reference/python-sdk/roboto/storage/download_session#roboto.storage.download_session.DownloadableFile) (class): A file to download: the object that holds its content and the local path to write it to.

- [FileService](/docs/reference/python-sdk/roboto/storage/file_service#roboto.storage.file_service.FileService) (class): Service that uploads local files to Roboto and downloads files Roboto stores to local disk.

- [HttpRangeReader](/docs/reference/python-sdk/roboto/storage/http_range_reader#roboto.storage.http_range_reader.HttpRangeReader) (class): A seekable, read-only file-like object over a file at an HTTP URL, which fetches only the bytes it reads.

- [ReportUploadProgressRequest](/docs/reference/python-sdk/roboto/storage/api_operations#roboto.storage.api_operations.ReportUploadProgressRequest) (class): Request body for [`await_uploads()`](/docs/reference/python-sdk/roboto/storage/upload_transaction#roboto.storage.upload_transaction.UploadTransaction.await_uploads).

- [ReportUploadProgressResponseItem](/docs/reference/python-sdk/roboto/storage/api_operations#roboto.storage.api_operations.ReportUploadProgressResponseItem) (class): Item of the response body of `PUT /v1/files/upload/{upload_id}/progress`.

- [RobotoCredentials](/docs/reference/python-sdk/roboto/storage/credentials#roboto.storage.credentials.RobotoCredentials) (class): Temporary AWS credentials for reading or writing files in one S3 bucket where Roboto stores them.

- [SparseBuffer](/docs/reference/python-sdk/roboto/storage/sparse_buffer#roboto.storage.sparse_buffer.SparseBuffer) (class): A read-only, seekable file-like object over a file of which only some regions are held in memory.

- [as_io_bytes()](/docs/reference/python-sdk/roboto/storage/http_range_reader#roboto.storage.http_range_reader.as_io_bytes) (function): Return `reader` unchanged, typed as `typing.IO[bytes]` for type checkers.
