packages/staging/: pysmbc-binary-1.0.15.9 metadata and description

Homepage Simple index

Python bindings for libsmbclient

author ['Tim Waugh <twaugh@redhat.com>', 'Tsukasa Hamano <hamano@osstech.co.jp>', 'Roberto Polli <rpolli@babel.it>']
classifiers
  • Intended Audience :: Developers
  • Topic :: Software Development :: Libraries :: Python Modules
  • License :: OSI Approved :: GNU General Public License (GPL)
  • Development Status :: 5 - Production/Stable
  • Operating System :: Unix
  • Programming Language :: C
download_url http://cyberelk.net/tim/data/pysmbc/
license GPLv2+
platform
  • UNKNOWN

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
pysmbc_binary-1.0.15.9-cp27-cp27m-manylinux1_i686.whl
Type
Python Wheel
Python
2.7
pysmbc_binary-1.0.15.9-cp27-cp27m-manylinux1_x86_64.whl
Type
Python Wheel
Python
2.7
pysmbc_binary-1.0.15.9-cp27-cp27mu-manylinux1_i686.whl
Type
Python Wheel
Python
2.7
pysmbc_binary-1.0.15.9-cp27-cp27mu-manylinux1_x86_64.whl
Type
Python Wheel
Python
2.7
pysmbc_binary-1.0.15.9-cp34-cp34m-manylinux1_i686.whl
Type
Python Wheel
Python
3.4
pysmbc_binary-1.0.15.9-cp34-cp34m-manylinux1_x86_64.whl
Type
Python Wheel
Python
3.4
pysmbc_binary-1.0.15.9-cp35-cp35m-manylinux1_i686.whl
Type
Python Wheel
Python
3.5
pysmbc_binary-1.0.15.9-cp35-cp35m-manylinux1_x86_64.whl
Type
Python Wheel
Python
3.5
pysmbc_binary-1.0.15.9-cp36-cp36m-manylinux1_i686.whl
Type
Python Wheel
Python
3.6
pysmbc_binary-1.0.15.9-cp36-cp36m-manylinux1_x86_64.whl
Type
Python Wheel
Python
3.6

This is a set of Python bindings for the libsmbclient library from the samba project.

>>> # Directory listing example:
>>> import smbc
>>> ctx = smbc.Context (auth_fn=my_auth_callback_fn)
>>> entries = ctx.opendir ("smb://SERVER").getdents ()
>>> for entry in entries:
...     print entry
<smbc.Dirent object "music" (File share) at 0x7fbd7c42b3a0>
<smbc.Dirent object "IPC$" (IPC share) at 0x7fbd7c42b148>
<smbc.Dirent object "Charlie" (Printer share) at 0x7fbd7c42b3c8>
>>> d = ctx.open ("smb://SERVER/music")
>>> # Write file example:
>>> import smbc
>>> import os
>>> ctx = smbc.Context (auth_fn=my_auth_callback_fn)
>>> file = ctx.open ("smb://SERVER/music/file.txt", os.O_CREAT | os.O_WRONLY)
>>> file.write ("hello")
>>> # Read file example:
>>> import smbc
>>> ctx = smbc.Context (auth_fn=my_auth_callback_fn)
>>> file = ctx.open ("smb://SERVER/music/file.txt")
>>> print file.read()
hello