Skip to main content

enctempfile

enctempfile allows you to transparently encrypt temporary files. These files are buffered in memory and broken down into blocks, and each individual block is written to a temporary file and encrypted using Fernet encryption, with temporary keys unique to each block.

Usage

import enctempfile

with enctempfile.TemporaryFile() as fp:

    fp.write(b"hello")
    fp.flush()

    fp.seek(0)

    print(fp.read())

All temporary files are currently mode wb+, text mode is not supported. Block size can be specified to the constructor using the block_size argument.

Metadata

Release files for enctempfile 1.0

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 enctempfile 1.0
File Interpreter ABI Platform Actions
enctempfile-1.0-py3-none-any.whl Python 3 none any Details for enctempfile-1.0-py3-none-any.whl

Release files / enctempfile-1.0-py3-none-any.whl

Download URL enctempfile-1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec8fcf69759b878e744af25d19493bdb79d043a1e5eac5517cf8ca4b6ad8a088
BLAKE2b-256 checksum
How to use checksums
d8b2553249f5c86213b1c9cbc51da2678c732ee76a273ee3e9a58d740d7fb28e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Security for enctempfile 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.

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