Skip to content
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

handling remote access files inputs and outputs #50

Open
JessyBarrette opened this issue Aug 15, 2023 · 3 comments
Open

handling remote access files inputs and outputs #50

JessyBarrette opened this issue Aug 15, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@JessyBarrette
Copy link
Collaborator

JessyBarrette commented Aug 15, 2023

In some deployments, the input files and/or the output folder are within remote servers. It would be great to be able to handle those type of deployments:

key aspect to handle

inputs

  • input connection parameters in config
  • run glob on remote server
  • hash files

processing

  • load a temporary file locally
  • run parser on local temporary file or memory

output

  • output connection parameters in config
  • upload file to output server
@JessyBarrette
Copy link
Collaborator Author

SLGO is using Paramiko https://www.paramiko.org/ for handling the remote servers

@JessyBarrette
Copy link
Collaborator Author

After further thoughts into this, I'm thinking it would be good to leverage rsync ability to generate a table with a row per file, their hash and time modified all together.

odpy could then:

  1. Run that rsync command to the remote server
  2. compare to the local registry
  3. Download modified files
  4. Apply conversion
  5. Update registry
  6. (Optional) Drop local source copy

@JessyBarrette JessyBarrette self-assigned this Nov 28, 2023
@JessyBarrette JessyBarrette added the enhancement New feature or request label Nov 28, 2023
@JessyBarrette
Copy link
Collaborator Author

This should simplify a lot of the logic:
https://github.com/PyFilesystem/pyfilesystem2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant