Skip to main content

tempdir(), tempfile() functions

Project description

Install

[sudo] pip install temp

Usage

>>> from temp import tempdir, tempfile, TMPDIR

>>> tempdir() # dir
>>> tempfile() # file

Example

>>> tempdir() # dir
'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T/tmpqlLDxb'

>>> tempfile() # file
'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T/tmpsctFHJ'

>>> TMPDIR
'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T'

Examples/

Feedback github_issues gitter github_follow

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

temp-0.0.14.tar.gz (2.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page