Description
smart_open is a Python 3 library for streaming very large files to and from storage services such as Amazon S3, Google Cloud Storage, Azure Blob Storage, HDFS, HTTP, HTTPS, SFTP and the local filesystem. It works as a drop-in replacement for Python's built-in open function, so code that uses open can read and write remote files without changes. It also decompresses and compresses files on the fly for several formats, such as gzip and bz2. The project was created because working with large remote files through boto3 requires boilerplate, and smart_open builds on boto3 and other storage libraries to offer one Pythonic API. It is well tested and documented, and the API reference is available through help('smart_open') or the help file in the repository. The library installs without dependencies by default, and you choose the storage backends you need through optional extras. It is licensed under the MIT licence.…
Highlights
- Streams large files from S3, GCS, Azure and more
- Drop-in replacement for open
- On-the-fly compression for gzip, bz2 and more
- Optional extras per storage backend
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate Smart Open.
People also visit

troubleshooting-s3-files
Diagnoses and resolves Amazon S3 Files issues including mount failures

mickaelkerjean/filestash
Remote storage access: SFTP, S3, FTP, SMB, NFS, WebDAV, Git, FTPS, Google Cloud

tigris-s3-migration
Migrating from AWS S3, Google Cloud Storage, or Azure Blob to Tigris
Smart Open FAQ
What is smart_open?
A Python library for streaming large files to and from cloud and remote storage using a familiar open-style API.
How is it different from boto3?
The project says boto3 needs boilerplate such as file-like wrappers, while smart_open offers a single unified API built on top of it.
Which storage services are supported?
S3, GCS, Azure Blob Storage, HDFS, WebHDFS, HTTP, HTTPS, SFTP and the local filesystem.
How do I install it?
Install the base package, then add the optional extras for the storage backends you use.
What are the best Smart Open alternatives?
Popular alternatives to Smart Open include Zipfly. See all Smart Open alternatives






