Skip to main content

Stow

stow lets you write filesystem agnostic code. It gives local and remote files and directories one rich, familiar interface - a drop in replacement for os.path, extended with put, get, ls, cp, mv, rm and sync - so the same code works on your machine, on Amazon S3, on a remote machine over SFTP/SSH, or inside a Kubernetes pod.

import stow

for art in stow.ls():
    print(art)
# <stow.Directory: /home/kieran/stow/tests>
# <stow.File: /home/kieran/stow/requirements.txt modified(2020-05-25 14:00:59.423165) size(16 bytes)>

stow.put("requirements.txt", "s3://example-bucket/projects/stow/requirements.txt")

with stow.open("s3://example-bucket/projects/stow/requirements.txt", "r") as handle:
    print(handle.read())

print(stow.getmtime("s3://example-bucket/projects/stow/requirements.txt"))
# 1617381185.341602

# Work with remote artefacts as if they were local
with stow.localise("s3://example-bucket/image.jpg") as abspath:
    cv2.imwrite(abspath, framedata)

Every transfer also has an async counterpart (aget, aput, acp, amv, arm, als, async_sync).

Installation

Install stow with the extras for the storage backends you use:

pip install stow               # local filesystem and the `stow` command line
pip install "stow[s3]"         # + Amazon S3
pip install "stow[sftp,ssh]"   # + remote machines over SFTP/SSH
pip install "stow[k8s]"        # + Kubernetes pods
pip install "stow[all]"        # every backend

stow requires Python 3.14 or later.

Development

uv sync installs stow with every backend plus the test and docs tools.

uv run pytest                                # run the tests
uv run pytest --cov --cov-report html        # with coverage
uv run zensical serve                        # preview the documentation
uv build && uv publish                       # publish a release

Metadata

Release files for stow 2.0.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 stow 2.0.0
File Size Uploaded Provenance Actions
stow-2.0.0.tar.gz 96.4 kB Without provenance Details for stow-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 185.5 kB

Release files / stow-2.0.0.tar.gz

Download URL stow-2.0.0.tar.gz
Size 96.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7d7da53a228b4792bedf152665aeb19f9f4ba701a3ee3ece689641356a9b2485
BLAKE2b-256 checksum
How to use checksums
27b34885c421a8a9e103a48758b3fa38dff32f1af897f957c10b0ef0e10d8e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / stow-2.0.0-py3-none-any.whl

Download URL stow-2.0.0-py3-none-any.whl
Size 89.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0901f6c4161f46469fab07a3764dab9769b8f4a62639fd841fbbdee905fb1221
BLAKE2b-256 checksum
How to use checksums
f82763b34470f3eab924417d5b2246482d8bb74a21034928d767c8105848df19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for stow 2.0.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.

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