844 B
844 B
PyNFS
PyNFS is another python binding libnfs using pybind11. Now is only tested on windows platform
Build and running
Build Requirement
- Visual Studio 2015 +
- GCC
- CMake
Windows
Please follow the next steps to build shared library on windows:
mkdir build
cd build
cmake -G "Visual Studio 15 2017" -DCMAKE_INSTALL_PREFIX ../install ..
cmake -build . -config Release -target install
Linux
Please follow the next steps to build shared library on windows:
mkdir build
cd build
cmake -G "Makefile" -DCMAKE_INSTALL_PREFIX ../install ..
cmake -build . -config Release -target install
Example
Here is some example to demo the library usage
from PyNFS import NFS, NFSSH
nfs= NFS('nfs://127.0.0.1/data/tmp/')
a = nfs.open('/test.txt', mode='w+')
a.write('Test String')
a.close()