Skip to main content

Add SMB (Server Message Block) dataset support to dtool

Project description

PyPi package

Features

  • Copy datasets to and from SMB storage
  • List all the datasets in an SMB share
  • Create datasets directly to an SMB share

Installation

To install the dtool-smb package:

pip install dtool-smb

Configuration

Then create the file .config/dtool/dtool.json and add the SMB account using the format below:

```
{
  "DTOOL_SMB_USERNAME_jicinformatics": "<username>",
  "DTOOL_SMB_PASSWORD_jicinformatics": "<password>",
  "DTOOL_SMB_SERVER_NAME_jicinformatics": "<server-name>",
  "DTOOL_SMB_SERVER_PORT_jicinformatics": <server-port>,
  "DTOOL_SMB_DOMAIN_jicinformatics": "<smb-domain>",
  "DTOOL_SMB_SERVICE_NAME_jicinformatics": "<smb-share>",
  "DTOOL_SMB_PATH_jicinformatics": "<path-within-share>"
}
```

Note that <server-port> is typically 445. The name of the ‘share’ is specified through the DTOOL_SMB_SERVICE_NAME_* key.

Usage

To copy a dataset from local disk (my-dataset) to an SMB storage account (jicinformatics) one can use the command below:

dtool cp ./my-dataset smb://jicinformatics/

To list all the datasets in an SMB share one can use the command below:

dtool ls smb://jicinformatics/

See the dtool documentation for more detail.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dtool-smb, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size dtool-smb-0.1.0.tar.gz (9.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page