xrootd / xrootd-python

Python bindings for XRootD are now part of the main repository.
https://github.com/xrootd/xrootd
6 stars 6 forks source link

Pythonic file objects #14

Open rmatev opened 8 years ago

rmatev commented 8 years ago

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 of XRootD.client.File, which makes synchronous requests and throws exceptions when they are not successful.

simonmichal commented 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.