Skip to main content

tempdir(), tempfile() functions

Project description

https://img.shields.io/badge/language-python-blue.svg https://img.shields.io/pypi/pyversions/temp.svg

codacy.com landscape.io codeclimate.com scrutinizer-ci.com

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/

Sources:

Feedback github_issues gitter github_follow


russianidiot.github.io/python/ - Python packages

russianidiot.github.io/cli/ - command line scripts

README.rst - generated with readmemako.py (python+ mako templates) and .README dotfiles

Supported by

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