All Projects → althonos → fs.smbfs

althonos / fs.smbfs

Licence: MIT License
Pyfilesystem2 over SMB using pysmb

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to fs.smbfs

ksmbd
ksmbd kernel server(SMB/CIFS server)
Stars: ✭ 98 (+366.67%)
Mutual labels:  filesystem, smb, cifs
ksmbd
ksmbd kernel server(SMB/CIFS server)
Stars: ✭ 181 (+761.9%)
Mutual labels:  filesystem, smb, cifs
cockpit-samba-manager
A Cockpit plugin to manage Samba shares and users.
Stars: ✭ 28 (+33.33%)
Mutual labels:  smb, cifs
pmOCR
A wrapper for tesseract / abbyyOCR11 ocr4linux finereader cli that can perform batch operations or monitor a directory and launch an OCR conversion on file activity
Stars: ✭ 53 (+152.38%)
Mutual labels:  smb, cifs
smbj-rpc
Created by Paul Miseiko via the GitHub Connector
Stars: ✭ 31 (+47.62%)
Mutual labels:  smb, cifs
user external
👥 External user authentication methods like IMAP, SMB and FTP
Stars: ✭ 80 (+280.95%)
Mutual labels:  smb
go-mtree
File systems verification utility and library, in likeness of mtree(8)
Stars: ✭ 55 (+161.9%)
Mutual labels:  filesystem
ioBroker.backitup
Backitup enables the cyclical creation of backups of an IoBroker / Homematic installation
Stars: ✭ 43 (+104.76%)
Mutual labels:  cifs
parallel-disk-usage
Highly parallelized, blazing fast directory tree analyzer
Stars: ✭ 145 (+590.48%)
Mutual labels:  filesystem
fs-changes
A persistent file system changes monitor, backed by leveldb
Stars: ✭ 12 (-42.86%)
Mutual labels:  filesystem
haxe-files
A haxelib for cross-platform filesystem operations.
Stars: ✭ 36 (+71.43%)
Mutual labels:  filesystem
teamcity-deployer-plugin
Deployer plugin for TeamCity CI server
Stars: ✭ 37 (+76.19%)
Mutual labels:  smb
asl
A C++ cross-platform library including JSON, XML, HTTP, Sockets, WebSockets, threads, processes, logs, file system, CSV, INI files, etc.
Stars: ✭ 44 (+109.52%)
Mutual labels:  filesystem
storage
Go package for abstracting local, in-memory, and remote (Google Cloud Storage/S3) filesystems
Stars: ✭ 49 (+133.33%)
Mutual labels:  filesystem
docker-volume-plugins
Managed docker volume plugins
Stars: ✭ 126 (+500%)
Mutual labels:  cifs
Zeus
🔭 A modern cross platform `ls` with powerful searching and querying capabilities to scale your productivity to the moon 🚀 (and yeah it has file explorer like capabilities too 🤫)
Stars: ✭ 75 (+257.14%)
Mutual labels:  filesystem
mongoose-gridfs
mongoose gridfs on top of new gridfs api
Stars: ✭ 79 (+276.19%)
Mutual labels:  filesystem
DroidFS
Encrypted overlay filesystems implementation for Android. Also available on gitea: https://forge.chapril.org/hardcoresushi/DroidFS
Stars: ✭ 152 (+623.81%)
Mutual labels:  filesystem
yorm
Automatic object-YAML mapping for Python.
Stars: ✭ 23 (+9.52%)
Mutual labels:  filesystem
redis-fs
Mount a Redis database as a filesystem using fuse.
Stars: ✭ 76 (+261.9%)
Mutual labels:  filesystem

fs.smbfs star me

Source PyPI Actions Codecov Codacy License Versions Format GitHub issues Downloads Changelog

Requirements

PyFilesystem2 PyPI fs Source fs License fs
six PyPI six Source six License six
PySMB PyPI pysmb Source pysmb License pysmb

Installation

Install directly from PyPI, using pip :

$ pip install fs.smbfs

Usage

Opener

Use fs.open_fs to open a filesystem with an SMB FS URL:

import fs
smb_fs = fs.open_fs('smb://username:password@SAMBAHOSTNAME:port/share')

The opener can use either an IPv4 address or a NetBIOS hostname, using the NetBIOS name service to find the other token. Otherwise, if NetBIOS is not available, a new SMB connection can be established by using the IPv4 address and giving the hostname with the hostname URL parameter.

The following parameters can be passed as URL parameters: timeout, name-port, direct-tcp, hostname, and domain.

Constructor

import fs.smbfs
smb_fs = fs.smbfs.SMBFS(
    host, username="guest", passwd="", timeout=15,
    port=139, name_port=137, direct_tcp=False, domain=""
)

with each argument explained below:

  • host: either the host name (not the FQDN) of the SMB server, its IP address, or both in a tuple. If either the IP address or the host name is not given, NETBIOS is queried to get the missing data.
  • user: the username to connect with, defaults to "guest" for anonymous connection.
  • passwd: an optional password to connect with, defaults to "" for anonymous connection.
  • timeout: the timeout, in seconds, for NetBIOS and TCP requests.
  • port: the port the SMB server is listening on.
  • name_port: the port the NetBIOS naming service is listening on.
  • direct_tcp: set to True if the server is accessible directly through TCP, leave as False for maximum compatibility.
  • domain: the network domain to connect with, i.e. the workgroup on Windows. Usually safe to leave as empty string, the default.

Once created, the SMBFS filesystem behaves like any other filesystem (see the Pyfilesystem2 documentation), except if it was open in the root directory of the server, in which case the root directory of the SMBFS instance will be read-only (since SMB clients cannot create new shares).

Feedback

Found a bug ? Have an enhancement request ? Head over to the GitHub issue tracker of the project if you need to report or ask something. If you are filling in on a bug, please include as much information as you can about the issue, and try to recreate the same bug in a simple, easily reproducible situation.

Credits

fs.smbfs is developed and maintained by:

The following people contributed to fs.sshfs:

This project obviously owes a lot to the PyFilesystem2 project and all its contributors.

See also

  • fs, the core Pyfilesystem2 library
  • fs.archive, enhanced archive filesystems for Pyfilesystem2
  • fs.sshfs, Pyfilesystem2 over SSH using paramiko
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].