-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status of this project #571
Comments
Looks bad :( - the last commit was almost a year ago and the tests don't run against 3.12 even though there's a PR which apparently fixes it. |
Friendly ping @tfeldmann @willmcgugan @althonos @odgalvin |
Yeah to be honest I'm migrating my projects away from pyfilesystem. Nowadays I mount remote filesystems locally and handle them with the standard library. For tests I migrated to |
@tfeldmann I'm mainly interested in MemoryFs for creating temporary files, packaging files and reducing disk i/o for applications. I wonder if |
I'm using it only with pytest at the moment. But something like this could work: from pathlib import Path
from pyfakefs.fake_filesystem_unittest import patchfs
@patchfs()
def sometempstuff(fs):
path = Path("./testfile.txt")
print(type(path))
path.write_text("Hello World")
return (path.read_text(), path.stat().st_size)
text, size = sometempstuff()
print(f"{text}: {size}")
print(f"Exists in real FS: {Path('./testfile.txt').exists()}") As I understand you need to be careful where you create the |
@tfeldmann Thank you for the example, I will give it a try. I also considered forking just the MemoryFS into a separate library, overall this package still works is just that there hasn't been any activity in 1 year, and several PR's ready to be merged |
You could have a look at fsspec: https://filesystem-spec.readthedocs.io/en/latest/api.html#implementations |
@frafra Thanks for sharing |
Are you still maintaining this project? Is it something that we can rely on when building products?
The text was updated successfully, but these errors were encountered: