Open rmatev opened 8 years ago
Could you please have a look at: http://pythonhosted.org/xrootdpyfs/ https://pypi.python.org/pypi/xrootdpyfs
I think it is exactly what you are looking for.
If there is a very strong desire, we can integrate it into core xrootd-python.
It would be really useful to have a class that behaves as much as possible like python's
File
. This will allow for interfacing with e.g.gzip.GzipFile
,pickle.load
, etc. This can be a simple wrapper ofXRootD.client.File
, which makes synchronous requests and throws exceptions when they are not successful.