Skip to main content

smbio

SMB protocol wrapper for python

Installation

pip install smbio

Usage

import smbio

connector = smbio.Connector(
    url=r"\\localhost\Share",
    username="Username",
    password="StrongPa$$w0rd"
)

with (
    connector.connect() as conn,
    connector.mount(conn) as session,
    connector.tree(session) as tree,
    connector.open(tree, r"Directory\Subdirectory") as directory
):
    files = smbio.glob(connector, directory, recurse=False)
    for out in files:
        if out.is_directory:
            continue
        
        with (
            open(smbio.Path(out.path), mode="rb") as inp_file,
            connector.open(tree, out.path) as out_file
        ):
            out_file.write(inp_file.read())

Metadata

Release files for smbio 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smbio 0.1.0
File Size Uploaded Provenance Actions
smbio-0.1.0.tar.gz 4.1 kB Without provenance Details for smbio-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smbio 0.1.0
File Interpreter ABI Platform Actions
smbio-0.1.0-py3-none-any.whl Python 3 none any Details for smbio-0.1.0-py3-none-any.whl

Total release size: 9.4 kB

Release files / smbio-0.1.0.tar.gz

Download URL smbio-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
488eab3de1f23c5d006027d6ce14b782417c2b8cbc280dcbaf978ceade4891d0
BLAKE2b-256 checksum
How to use checksums
f4e1f2c4688228d10d3dfa0f802910b5e3cce9b20c6ca8345fcb5932476e2497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / smbio-0.1.0-py3-none-any.whl

Download URL smbio-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
093ebf07bc058486bc4db45eea0988902c9f6a9e319dae9c3dd38c9fd03dcfc4
BLAKE2b-256 checksum
How to use checksums
c1f04af163e7f98e3ae3c680e5511406b6f03c5e0ab020561ce904195700bb37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Security for smbio 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page