Skip to content

Transfer files to/from memory #137

@jl-wynen

Description

@jl-wynen

When Scitacean is tightly integrated into a workflow, there may not be a need to save data to disk. Instead, it could be useful to load some data directly into memory from the fileserver or write an in-memory buffer to the fileserver.

This would require support from File which could store a BytesIO instead of a Path for local. And the file transfers would read from / write to the buffer instead of a actual file.

There are some downsides:

  • For downloads, the data wouldn't be cached on the local machine. So it would have to be downloaded again if the program needs to run again.
  • For uploads, if the upload fails, the data may be lost if the program can't recover automatically (or through user input in an interactive session).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions