Backport of Python 3.12's tempfile library for Python 3.8+
Project description
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 notNone.SpooledTemporaryFilefully implements theio.BufferedIOBaseandio.TextIOBaseabstract base classes (depending on whether binary or text mode was specified).mkdtemp()now always returns an absolute path, even if dir is relative.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tempfile312-1.0.1.tar.gz.
File metadata
- Download URL: tempfile312-1.0.1.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0324691192bf2e1655af6f0c6366d9bee9612874a34b9bfd7f820fa2f4dd5031
|
|
| MD5 |
f89b4c33b152d9557c8ff778bca1b5f4
|
|
| BLAKE2b-256 |
fbdcef06f6d6a68318cec0e9e2fee0bd881282a07ebce06b5e5bf782a83b3f4f
|
File details
Details for the file tempfile312-1.0.1-py3-none-any.whl.
File metadata
- Download URL: tempfile312-1.0.1-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45001c0645170bf6b350e3ff3154d726890e6432028fba2737ccd7b9c1a92315
|
|
| MD5 |
779fe4ce4e416a932ea25429190fa37f
|
|
| BLAKE2b-256 |
6decf2a0c83ac290c055c64b6e4515b2ba81199494016855d123feb77b509270
|