{ "info": { "author": "Naphat Sanguansin", "author_email": "naphat.krit@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "temp-utils\n===========\n\ntemp-utils is a set of convenient python utilities for dealing with temporary files and folders. It is built on top of the builtin tempfile module.\n\nContext Managers\n-----------------\n\nChanging Working Directory\n+++++++++++++++++++++++++++\nUse the context manager :code:`chdir` to change your working directory temporarily, changing it back at the end of the context.\n\n.. code-block:: python\n\n from temp_utils.contextmanagers import chdir\n\n with chdir('path/to/directory'):\n ...\n\n\nTemporary File\n++++++++++++++++\nUse the context manager :code:`temp_file` to create a new temporary file. This file gets deleted at the end of the context.\n\n.. code-block:: python\n\n from temp_utils.contextmanagers import temp_file\n\n with temp_file() as file_path:\n ...\n\nTemporary Folder\n+++++++++++++++++\nUse the context manager :code:`temp_dir` to create a new temporary folder. This folder gets deleted, along with everything in it, at the end of the context.\n\n.. code-block:: python\n\n from temp_utils.contextmanagers import temp_dir\n\n with temp_dir() as dir_path:\n ...\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/naphatkrit/temp-utils", "keywords": "temporary,temp,chdir,temp_file,tempfile,tempdir,temp_dir", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "temp-utils", "package_url": "https://pypi.org/project/temp-utils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/temp-utils/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/naphatkrit/temp-utils" }, "release_url": "https://pypi.org/project/temp-utils/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "A temporary file utilities", "version": "1.0.0" }, "last_serial": 2103966, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9fa171e83fac05685f5bdce9b934def0", "sha256": "e50e981066dc6035498b35b91007ef48049aa6c1566f04418860b7aa6b4564fc" }, "downloads": -1, "filename": "temp-utils-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9fa171e83fac05685f5bdce9b934def0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1844, "upload_time": "2016-05-07T13:09:15", "url": "https://files.pythonhosted.org/packages/42/2a/567fe779f8b1bd3490eb99b8789c80eb268954dcc7b38b4ddcc5e6c96b2e/temp-utils-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9fa171e83fac05685f5bdce9b934def0", "sha256": "e50e981066dc6035498b35b91007ef48049aa6c1566f04418860b7aa6b4564fc" }, "downloads": -1, "filename": "temp-utils-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9fa171e83fac05685f5bdce9b934def0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1844, "upload_time": "2016-05-07T13:09:15", "url": "https://files.pythonhosted.org/packages/42/2a/567fe779f8b1bd3490eb99b8789c80eb268954dcc7b38b4ddcc5e6c96b2e/temp-utils-1.0.0.tar.gz" } ] }