Add capability to read files from remote filesystems (e.g. http, ftp, ...)
Is your feature request related to a problem? Please describe.
Currently, Pyxel can only read local text or binaries files (e.g. CSV, FITS...). It would be useful if Pyxel could also access remote files from HTTP, FTP, ...
Describe the solution you'd like
To access a local/remote file in a YAML configuration, the user can write the filename like the following:
- Local filename:
C:/folder/filename.fits
(for Windows) or/folder/filename.fits
(for Linux/MacOS) - From HTTP:
http://site.com/filename.fits
orhttps://site.com/filename.fits
- From FTP:
ftp://site.com/filename.fits
orsftp://site.com/filename.fits
- From a Windows and Samba network share:
smb://folder/filename.fits
orsmb://username@folder/filename.fits
- From Amazon S3:
s3://bucket/filename.fits
The library fsspec
will be used to manage remote filesystems.
Additional context
Some remote filesystems may require additional information (e.g. username, password...). These extra parameters could be set with the option(s) (see #165 (closed))
This will be discussed later.
Edited by Frederic Lemmel