Skip to main content

tempfile312

Backport of Python 3.12's tempfile library for older Python versions. Notably, supports the delete_on_close parameter to NamedTemporaryFile to make it useful on Windows.

See official documentation here: https://docs.python.org/3.12/library/tempfile.html.

Major changes from Python 3.8:

  • Added delete_on_close parameter to NamedTemporaryFile
  • Added ignore_cleanup_errors and delete parameters to TemporaryDirectory
  • gettempdir() always returns a str. Previously it would return any tempdir value regardless of type so long as it was not None.
  • SpooledTemporaryFile fully implements the io.BufferedIOBase and io.TextIOBase abstract base classes (depending on whether binary or text mode was specified).
  • mkdtemp() now always returns an absolute path, even if dir is relative.

Metadata

Release files for tempfile312 1.0.1

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

Source distribution (sdist)

Source distribution for tempfile312 1.0.1
File Size Uploaded
tempfile312-1.0.1.tar.gz 34.0 kB Details

Built distribution (wheel)

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

Total release size: 53.0 kB

Release files / tempfile312-1.0.1.tar.gz

Download URL tempfile312-1.0.1.tar.gz
Size 34.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0324691192bf2e1655af6f0c6366d9bee9612874a34b9bfd7f820fa2f4dd5031
BLAKE2b-256 checksum
How to use checksums
fbdcef06f6d6a68318cec0e9e2fee0bd881282a07ebce06b5e5bf782a83b3f4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.12

Release files / tempfile312-1.0.1-py3-none-any.whl

Download URL tempfile312-1.0.1-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45001c0645170bf6b350e3ff3154d726890e6432028fba2737ccd7b9c1a92315
BLAKE2b-256 checksum
How to use checksums
6decf2a0c83ac290c055c64b6e4515b2ba81199494016855d123feb77b509270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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