smart_open
Utils for streaming large files (S3, HDFS, gzip, bz2...) (by piskvorky)
PyFilesystem2
Python's Filesystem abstraction layer (by PyFilesystem)
smart_open | PyFilesystem2 | |
---|---|---|
6 | 7 | |
3,093 | 1,949 | |
0.7% | 0.3% | |
8.3 | 0.0 | |
12 days ago | 17 days ago | |
Python | Python | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
smart_open
Posts with mentions or reviews of smart_open.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-29.
- smart_open: Utils for streaming large files (S3, HDFS, gzip, bz2...)
-
Use AWS to unzip all of Wikipedia in 10 minutes
We’re using smart_open, which is an amazing library that lets you open objects in S3 (and other cloud object stores) as if they’re files on your filesystem. It’s obviously critical that we’re able to seek to an arbitrary position in an S3 file without first downloading the whole thing. We’ll assume you’re using Poetry, but you should be able to follow along with any other package manager:
-
Using AWS and Hyperscan to match regular expressions on 100GB of text
If you didn’t follow along with the first article in this series, you should be able to follow this article with your own dataset as long as you install smart_open and Meadowrun. smart_open is an amazing library that lets you open objects in S3 (and other cloud object stores) as if they’re files on your filesystem, and Meadowrun makes it easy to run your Python code on the cloud.
-
Ask HN: Codebases with great, easy to read code?
I see that you're primarily looking into Python work, so I'd recommend `smart_open` as a nice, compact way to get started.
https://github.com/RaRe-Technologies/smart_open
-
How to open an s3 binary file in lambda using python open() function?
You want smart_open. It gives you a (more complete) file-like interface to many different storage systems, including s3. You can read and seek as needed.
-
Fsspec: Filesystem Interfaces for Python
See also smart_open: https://github.com/RaRe-Technologies/smart_open which might be more user-friendly? Never used it myself but it was on HN before. Discussion on their bugtracker: https://github.com/RaRe-Technologies/smart_open/issues/579
PyFilesystem2
Posts with mentions or reviews of PyFilesystem2.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-29.
-
A File Organizer in Python
Or this: https://www.pyfilesystem.org/
-
What're the cleanest, most beautifully written projects in Github that are worth studying the code?
Pyfilesytem2 is pretty swell. Also a big fan of nox.
- Why I'm working on Open Source full time
-
Introducing Tube Archivist, your self hosted Youtube media server
A better way would be to use this package: https://www.pyfilesystem.org/
-
I'm the author of Rich and Textual, two highly starred Python projects on Github. AMA
Working on PyFilesystem (https://github.com/PyFilesystem/pyfilesystem2) I've written a lot of the kind of loops that the walrus operator would help with.
- Filesystem Abstraction for Python
- Fsspec: Filesystem Interfaces for Python
What are some alternatives?
When comparing smart_open and PyFilesystem2 you can also consider the following projects:
s3fs - Amazon S3 filesystem for PyFilesystem2
watchdog - Python library and shell utilities to monitor filesystem events.
Streamz - Real-time stream processing for python
python-magic - A python wrapper for libmagic
s3path - s3path is a pathlib extension for AWS S3 Service
vignette - A Python library for generating thumbnails following the FreeDesktop specification - mirror of https://gitlab.com/hydrargyrum/vignette
rxsci - ReactiveX for data science
pathlib
fluvio-client-python - The Fluvio Python Client!
s3fs-fuse - FUSE-based file system backed by Amazon S3
requests - A simple, yet elegant, HTTP library.
path.py - Object-oriented file system path manipulation