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.4.13.tar.gz
(1.4 kB
view hashes)