{ "info": { "author": "Jeremy Banks", "author_email": "jeremy@jeremybanks.ca", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "tmpdir\n======\n\n\n\ntmpdir is a Python 2.6/2.7 module and command-line tool for working with\ntemporary directories. It reads and writes tar, tgz, tbz2 and zip archives.\n\ntmpdir is available [in PyPi][1], so you can install with setuptools...\n\n $ easy_install tmpdir\n\n...or with pip...\n\n $ pip install tmpdir\n\n**It's not stable yet**, but is mostly working.\n\n [1]: http://pypi.python.org/pypi/tmpdir\n\nCommand-line Tool\n-----------------\n\nThe command line tool initializes a temporary folder, runs a command inside\nit, then deletes it. All options/arguments are optional.\n\n tmpdir\n $ARCHIVE\n loads an archive into the temporary folder.\n \n -o, --out=$ARCHIVE\n dumps folder contents into an archive after command exits.\n \n -c, --command=\"foo [bar bar bar...]\"\n -s, --shell=\"echo foo > bar\"\n specifies the command to run in the directory.\n use --shell to run inside /bin/sh.\n \n -d, --delete=secure\n uses srm --simple to delete directory.\n fails if srm command is unavailable.\n =pseudo-secure (default for empty directories)\n overwrites and renames files before erasing,\n providing some security on some platforms. \n =attempt-secure (default for loaded archives)\n attempts --secure, falls back to --pseudo-secure.\n =not-secure\n deletes directory normally.\n \n -r, --on-error=ignore\n discard subcommand exit status.\n =fail (default)\n returns exit status from subcommand.\n =abort\n returns exit status from subcommand, and\n does not archive if it's nonzero.\n\nIf a command isn't given, it defaults to `bash --login` if run from a shell\nand `read -p \"Press enter to delete directory...\"` otherwise.\n\nWhen loading an archive it defaults to `--not-secure`, when creating a new one\nit defaults to `--attempt-secure`.\n\n### Example Usage\n\nRun `wget --mirror` in a temporary folder and archive the output files in a\ntarball.\n\n ~ $ tmpdir -c \"wget stackoverflow.com --mirror -Q 2M\" -o so.tgz\n\nWant to compile and install something, but not need to hold on to the source?\n\n ~ $ tmpdir\n Initializing temporary directory... (secure delete: True)\n /var/folders/fo/fouMw75NGU0zIHpZkU2RF++++TI/-Tmp-/tmpsDGvow/tmp\n ----------------\n tmp $ wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2 \n \n [download, ./configure, make, make test, make install...]\n \n tmp $ logout\n ----------------\n Deleting temporary directory... (secure delete: True)\n ~ $\n\nPython Module\n-------------\n\n*...*\n\nLicense (MIT)\n-------------\n\nCopyright 2011 Jeremy Banks \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/tmpdir/0.0.0.DEV.1309041773", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jeremybanks/tmpdir", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "tmpdir", "package_url": "https://pypi.org/project/tmpdir/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tmpdir/", "project_urls": { "Download": "http://pypi.python.org/pypi/tmpdir/0.0.0.DEV.1309041773", "Homepage": "https://github.com/jeremybanks/tmpdir" }, "release_url": "https://pypi.org/project/tmpdir/0.0.0.DEV.1309041773/", "requires_dist": null, "requires_python": null, "summary": "A module and command line tool for working with temporary directories.", "version": "0.0.0.DEV.1309041773" }, "last_serial": 800767, "releases": { "0.0.0.DEV.1308906033": [ { "comment_text": "", "digests": { "md5": "cf3686c7c1c84ba87de1b52975241f6b", "sha256": "10939a43463f2410121249e665e882139397dd0f86ed21c85c503e41a7fe47d9" }, "downloads": -1, "filename": "tmpdir-0.0.0.DEV.1308906033.tar.gz", "has_sig": false, "md5_digest": "cf3686c7c1c84ba87de1b52975241f6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7276, "upload_time": "2011-06-24T11:00:35", "url": "https://files.pythonhosted.org/packages/ba/1b/d507e4b06e3699fb031472221a4c2086b2de8ecec248c175251ad202619c/tmpdir-0.0.0.DEV.1308906033.tar.gz" } ], "0.0.0.DEV.1309041773": [ { "comment_text": "", "digests": { "md5": "b9a28385afd367678ac1646b2e1a8471", "sha256": "f8bbd9b07d0764c1d9486820ba69b6000eaee580974d9495b81af49ac838b42b" }, "downloads": -1, "filename": "tmpdir-0.0.0.DEV.1309041773.tar.gz", "has_sig": false, "md5_digest": "b9a28385afd367678ac1646b2e1a8471", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7334, "upload_time": "2011-06-26T00:42:55", "url": "https://files.pythonhosted.org/packages/2e/54/369451a58f7b687b74d099f54493ca3bfb2f4f33b794463e6ef1b0a1ba07/tmpdir-0.0.0.DEV.1309041773.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b9a28385afd367678ac1646b2e1a8471", "sha256": "f8bbd9b07d0764c1d9486820ba69b6000eaee580974d9495b81af49ac838b42b" }, "downloads": -1, "filename": "tmpdir-0.0.0.DEV.1309041773.tar.gz", "has_sig": false, "md5_digest": "b9a28385afd367678ac1646b2e1a8471", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7334, "upload_time": "2011-06-26T00:42:55", "url": "https://files.pythonhosted.org/packages/2e/54/369451a58f7b687b74d099f54493ca3bfb2f4f33b794463e6ef1b0a1ba07/tmpdir-0.0.0.DEV.1309041773.tar.gz" } ] }