PyNFS is another python binding libnfs
Go to file
indigo 709a4ba935 Modify README.md 2023-03-15 04:36:30 +08:00
.vscode Initial commit 2022-12-04 22:47:05 +08:00
python Initial commit 2022-12-04 22:47:05 +08:00
src Initial commit 2022-12-04 22:47:05 +08:00
.gitattributes Initial commit 2022-12-04 22:47:05 +08:00
.gitignore Initial commit 2022-12-04 22:47:05 +08:00
CMakeLists.txt Initial commit 2022-12-04 22:47:05 +08:00
LICENSE Initial commit 2022-12-04 22:47:05 +08:00
README.md Modify README.md 2023-03-15 04:36:30 +08:00

README.md

PyNFS

PyNFS is another python binding libnfs using pybind11. Now is only tested on windows platform, the purpose is for animation publish system

Build and running

Build Requirement

  • Visual Studio 2015 +
  • GCC
  • CMake

Dependencies

  • Python 2.7
  • pystring
  • pybind11
  • libnfs

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 (experimental)

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()