temp.tempdir(), temp.tempfile() functions
Project description
Installation
$ [sudo] pip install temp
Functions
function | __doc__ |
---|---|
temp.tempdir() |
create temp dir and return path |
temp.tempfile() |
create temp file and return path |
Examples
>>> import temp
>>> temp.tempdir() # dir
'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T/tmpqlLDxb'
>>> temp.tempfile() # file
'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T/tmpsctFHJ'
>>> temp.TMPDIR
'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T'
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
temp-2019.3.24.tar.gz
(1.3 kB
view hashes)
Built Distribution
temp-2019.3.24-py2.py3-none-any.whl
(176.1 kB
view hashes)
Close
Hashes for temp-2019.3.24-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce1e769dcec84ce0190ecea7f307bf072a79bc2b860c13fb3a22bdc825af0e08 |
|
MD5 | 61c4dc2b026368dab8a9ce1f511c47d6 |
|
BLAKE2b-256 | f69cd737248bcd2a66634d28172c8eeaa0abdcadd9f624487e62d6f48a4efb28 |