Registry / http-networking / temp
library2020.7.2pypypi✓ verified 84d ago

Provides temporary file and directory creation functions (temp.tempdir(), temp.tempfile()). Version 2020.7.2 is the latest release, with irregular cadence. The library is essentially a wrapper around tempfile with a different API.

pip install temp
INSTALL
IMPORT
SIG · TEMP
T
temp
http-networkingpythonv2020.7.2
Install
2.5s avg
Import
11ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2020.7.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.012s · 19.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.5s · import 0.010s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tempfile
from temp import tempfile
import tempfile
tempfile is a standard library, but this library provides a different 'tempfile' function
tempdir
from temp import tempdir
Use 'from temp import tempdir' to get the tempdir function

Basic usage of tempfile and tempdir context managers.

from temp import tempfile, tempdir # Create a temporary file with tempfile() as f: f.write(b'test') f.seek(0) print(f.read()) # Create a temporary directory with tempdir() as d: print(d)
Debug
Known issues
gotchaDo not confuse 'temp.tempfile' with the standard library 'tempfile' module. They are different APIs.
fix
Use 'from temp import tempfile' instead of 'import tempfile'.
affects: all
gotchaThe package version uses a date-based versioning scheme (year.month.minor). The version 2020.7.2 does not indicate patches or features.
fix
Treat version numbers as release dates; check for updates manually.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'temp'
The package is not installed, or you are trying to import the wrong name.
fix
Run 'pip install temp'.
AttributeError: module 'temp' has no attribute 'tempfile'
The package might be imported incorrectly, or an older version lacks the function.
fix
Use 'from temp import tempfile' and ensure you have version 2020.7.2 or later.
Upgrade
Version history
2020.7.2latest on PyPI · released Jul 7, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
temp — pip install temp · libregistry