V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
echo1937
V2EX  ›  Python

Python 如何访问 Samba 或者 NFS 等网络文件系统?

  •  
  •   echo1937 · 2017-05-08 10:19:12 +08:00 · 5909 次点击
    这是一个创建于 2553 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一直以来,公司都是使用 Java 的 jcifs 来访问和修改 Samba 服务器中的文件资源。

    最近有个项目,需要用 Python 去访问 Samba 服务器中的文件资源,我对这方面用得比较少,只找到一个 pysmb,但是 pysmb 官网介绍明确标示这是一个实验性库,生产环境可能会有一些问题。

    ---- “ pysmb is an experimental SMB/CIFS library ”

    那么 Python 访问 Samba 或者 NFS 等网络文件系统,有什么可靠好用的库吗?感谢。

    4 条回复    2019-05-30 13:11:45 +08:00
    tinypig
        1
    tinypig  
       2017-05-08 10:39:52 +08:00
    挂载到本机,当本地文件访问。
    pheyx
        2
    pheyx  
       2017-05-08 15:42:39 +08:00
    客户端是类 unix 的话,用 pysmbc,是 libsmbclient(samba 自带的库)的 python binding
    itfanr
        3
    itfanr  
       2017-05-08 21:52:43 +08:00 via Android
    挂载在本地使用 最好不用其他库
    kaiser1992
        4
    kaiser1992  
       2019-05-30 13:11:45 +08:00
    libnfs
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2261 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 03:36 · PVG 11:36 · LAX 20:36 · JFK 23:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.