Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sftpovw: safer overwrite file over sftp

protect against corruption:

  • old file: data lost if overwrite fails
  • new file: partial write may leave corrupt/incomplete file
  • readers: processes opening the file may observe unspecified/intermediate data

when PUT localfile to remotefile,

safe level 0

protect nothing

  1. just put localfile to remotefile

safe level 1

protect readers

  1. unlink remotefile
  2. put localfile to remotefile

safe level 2

protect old file and readers

  1. rename remotefile to tmpfile
  2. put localfile to remotefile
  3. unlink tmpfile

safe level 3

protect new file, old file, and readers

  1. put localfile to tmpfile
  2. rename tmpfile to remotefile

safe level 4

protect new file, old file, and readers

usually this level is unnecessary. should only be used if your rename is not atomic.

  1. put localfile to tmpfile1
  2. rename remotefile to tmpfile2
  3. rename tmpfile1 to remotefile
  4. unlink tmpfile2

Metadata

Release files for sftpovw 0.1.dev1

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

Built distribution (wheel)

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

Release files / sftpovw-0.1.dev1-py3-none-any.whl

Download URL sftpovw-0.1.dev1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9e4b208e81944ecbd7fca95bd0b4b70b95f4a4f0c6cf6aa531769c59be3c90e
BLAKE2b-256 checksum
How to use checksums
518eb56b27072ae093b38cebdc86e75c81c5024b2c9087c7e9ff66df97e8dc92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for sftpovw 0.1.dev1

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
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