Skip to content

Using smart_open for reading gzip file with sftp #827

Answered by ddelange
dineshbvadhia asked this question in Q&A
Discussion options

You must be logged in to vote
>>> from smart_open import open
>>> with open('sftp://username:password@host:port/path/file.gz') as fin:
...     print(fin.read(32))
It was a bright cold day in Apri

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@ddelange
Comment options

@dineshbvadhia
Comment options

@mpenkov
Comment options

mpenkov Jul 3, 2024
Collaborator

@ddelange
Comment options

Answer selected by dineshbvadhia
@ddelange
Comment options

@dineshbvadhia
Comment options

@ddelange
Comment options

@dineshbvadhia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants