{ "info": { "author": "Adam Kaufman", "author_email": "kaufman.blue@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=======\nworkdir\n=======\n\n|Latest Version| |Travis Status| |Coveralls Status|\n\nA simple module for easily isolating temporary file I/O to a directory. Ever developed a command-line tool which required a lot of file manipulation? Caching, perhaps? You don't want to use the cwd and keeping all of your paths straight if you're working outside of it can be a pain. This tool may be the pain-reliever you need!\n\nA tale of sin and woe\n=====================\n\nWell, not really. I've just developed a bunch of tools that rely on various bits of temporary or isolated file I/O, and found myself implementing this pattern over and over again. Eventually, I got tired of doing it and decided to develop this handy module. Now I'm passing the savings on to you!\n\nCompatibility\n=============\n\nAs far as I know, ``workdir`` is compatible with every version of Python from 2.6 through 3.5. It should also be compatible with all major platforms including Linux, OSX, and Windows. If not, let me know!\n\nInstallation\n============\n\n.. code-block ::\n\n pip install workdir\n\nExamples\n========\n\nUse it as a staging area for downloaded archives:\n\n.. code:: python\n\n import workdir\n import shutil\n workdir.options.path = '~/.myfilecache'\n with workdir.as_cwd():\n download_remote_archive('somefile')\n unpack_archive('somefile', 'somedir')\n shutil.copy(workdir.path_to_file('somedir', 'unpackedfilefromarchive'),\n os.path.join('otherdir', 'unpackedfilefromarchive'))\n\nUse it as a working directory in your git repo (added to `.gitignore`, of course):\n\n.. code:: python\n\n import workdir\n workdir.options.path = '.gitrepo.work'\n workdir.sync()\n with workdir.as_cwd():\n futz_with_source_tree()\n more_futzing()\n\n.. |Latest Version| image:: https://img.shields.io/pypi/v/workdir.svg\n :target: https://pypi.python.org/pypi/workdir\n :alt: Latest Version\n.. |Travis Status| image:: https://img.shields.io/travis/ajk8/workdir-python/master.svg\n :target: https://travis-ci.org/ajk8/workdir-python\n :alt: Travis-ci build status\n.. |Coveralls Status| image:: https://coveralls.io/repos/github/ajk8/workdir-python/badge.svg?branch=master \n :target: https://coveralls.io/github/ajk8/workdir-python?branch=master \n :alt: Coveralls test coverage\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/ajk8/workdir-python/tarball/0.3.5", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ajk8/workdir-python", "keywords": "development workdir isolate temporary working directory", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "workdir", "package_url": "https://pypi.org/project/workdir/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/workdir/", "project_urls": { "Download": "https://github.com/ajk8/workdir-python/tarball/0.3.5", "Homepage": "https://github.com/ajk8/workdir-python" }, "release_url": "https://pypi.org/project/workdir/0.3.5/", "requires_dist": [ "dirsync (>=2.2.1)", "funcy (>=1.4)", "six" ], "requires_python": "", "summary": "Simple module for easily isolating temporary file I/O", "version": "0.3.5" }, "last_serial": 2118960, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "50e2135decacd175b161a6f7d4c83260", "sha256": "778e229cb446471f87959bd87f94b8b3c281d3aea799ec9faa652a1b3b2f6b15" }, "downloads": -1, "filename": "workdir-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "50e2135decacd175b161a6f7d4c83260", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3647, "upload_time": "2016-02-25T02:24:04", "url": "https://files.pythonhosted.org/packages/9a/68/47eabeb33ca56b631cd63489dd48fa262a6a5936a6ff970be47110efb50d/workdir-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3455b7a21d01713f945dd946e9b6d1f7", "sha256": "740de339104232da5f0f1a52546bbb8520005013282f183733671ccf90db4da6" }, "downloads": -1, "filename": "workdir-0.1.tar.gz", "has_sig": false, "md5_digest": "3455b7a21d01713f945dd946e9b6d1f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3177, "upload_time": "2016-02-25T02:24:09", "url": "https://files.pythonhosted.org/packages/b6/fc/8dae3bc47a16f14f9bc25ab1d9cdb7f560cd548592a7629bd2b2d9f16b50/workdir-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4b809c8ad8c37434cc1b0bfa7d0650c6", "sha256": "fe33ea6410d9662cceb2355e6912143035da634b5bb6341c373c2b962effe146" }, "downloads": -1, "filename": "workdir-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4b809c8ad8c37434cc1b0bfa7d0650c6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3684, "upload_time": "2016-02-25T03:23:37", "url": "https://files.pythonhosted.org/packages/24/dd/b44d3b197b65f24e8d51b02944fe90b3b446d0d7b9c0542c0a6874a1a7ba/workdir-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4f65a9668a07e9a8c4d61c5454444692", "sha256": "1635699fc208962f6cc5bfc722481042f0d4fd4df4cef0057a9a0c7a92cc73c9" }, "downloads": -1, "filename": "workdir-0.2.tar.gz", "has_sig": false, "md5_digest": "4f65a9668a07e9a8c4d61c5454444692", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3269, "upload_time": "2016-02-25T03:23:43", "url": "https://files.pythonhosted.org/packages/db/af/7a2286237cdf4242180f7fe8c3174cd1c137b7b3badfa63f9366fb15daea/workdir-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "cf4a0ff7c4c4001fd73058d93d1b4900", "sha256": "67a818818d5af136326ed3a606ae12414b6a167da13f460bee101a454387062e" }, "downloads": -1, "filename": "workdir-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cf4a0ff7c4c4001fd73058d93d1b4900", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3675, "upload_time": "2016-02-28T00:41:05", "url": "https://files.pythonhosted.org/packages/26/8e/2e94e2148d0cd84c12f33415d146f342ab9f88cbc8774d682ce411229f65/workdir-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db3002aac786088938efffc902dacaf5", "sha256": "23e19853c74940b48035a010ea2ec39eac9fe6b0e77b8d8eae59361993c170ba" }, "downloads": -1, "filename": "workdir-0.3.tar.gz", "has_sig": false, "md5_digest": "db3002aac786088938efffc902dacaf5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3304, "upload_time": "2016-02-28T00:41:10", "url": "https://files.pythonhosted.org/packages/01/26/644bea7748024409ebd77768184a888a8c7684443f5f2ec376a9cfd27ce9/workdir-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "2c838cb00d0b7537c81d456d8f5a21cf", "sha256": "1e246315000ddb0462b6335e4e52f9bd45711524b4afd1011a90bfebfb558bc8" }, "downloads": -1, "filename": "workdir-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2c838cb00d0b7537c81d456d8f5a21cf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3893, "upload_time": "2016-02-28T21:07:22", "url": "https://files.pythonhosted.org/packages/d5/2c/09323eb0b3fe342ce60b0853cccf726364dda68ec76dd94f5b2d4733ff30/workdir-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e37d4c4629416bfc361b44b221955bb4", "sha256": "a345698fbb40607f92acae1badda4ff6fb59a1d22874ca953a4e23b84306e746" }, "downloads": -1, "filename": "workdir-0.3.1.tar.gz", "has_sig": false, "md5_digest": "e37d4c4629416bfc361b44b221955bb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3434, "upload_time": "2016-02-28T21:07:29", "url": "https://files.pythonhosted.org/packages/d3/f9/4a8a1bcbcacc26ab837084243132c82d65876e519c4738bc9450e05d3401/workdir-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "11595bf69d439cb125f0173fbb57fc0c", "sha256": "bfb0f0b0781bbab13a884d456047a137700f4c704a1c3112ab7e5a3c8830f77b" }, "downloads": -1, "filename": "workdir-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "11595bf69d439cb125f0173fbb57fc0c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3891, "upload_time": "2016-03-08T01:57:56", "url": "https://files.pythonhosted.org/packages/0e/17/d74173d1c5afdc5ed61bd8f7b2d0637568462afba099c8a4c5b1f4a9dd66/workdir-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8a4ab1110cba3932a631359a9abec55d", "sha256": "8be0d0fb22e922ac4d6a394defb00bee9e9302db596fc7ea65ec53342d0fc947" }, "downloads": -1, "filename": "workdir-0.3.2.tar.gz", "has_sig": false, "md5_digest": "8a4ab1110cba3932a631359a9abec55d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3562, "upload_time": "2016-03-08T01:58:22", "url": "https://files.pythonhosted.org/packages/2d/91/c981b7c190643f0db9d7988bfe75f4de55436e9b7b6de55b8105f6f829c5/workdir-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "209ad72e7fc217a363efe35b8f863c8a", "sha256": "4f38a9c2d85f621056d85c7a2490248fa14fcf969083bdf9900911476558e873" }, "downloads": -1, "filename": "workdir-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "209ad72e7fc217a363efe35b8f863c8a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3890, "upload_time": "2016-03-08T02:00:35", "url": "https://files.pythonhosted.org/packages/ac/c3/1de4ec96f8cbf3d81556bafc8c6c81ef0f76a82c9be990879a9722933c87/workdir-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2f80ae2aad1d9bc2f6a3e257ed11f90", "sha256": "fff32f9c50e75dfbb3f20645f04e4f8320a4a85225f319c47597efc9f57bd5a6" }, "downloads": -1, "filename": "workdir-0.3.3.tar.gz", "has_sig": false, "md5_digest": "b2f80ae2aad1d9bc2f6a3e257ed11f90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3555, "upload_time": "2016-03-08T02:00:43", "url": "https://files.pythonhosted.org/packages/ce/be/37c220844fc1d3f0418f08b9859572ff5f77093b5dc8fb998a510875de0a/workdir-0.3.3.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "e7f200ae4776f0d8d4d2bf5feb52ed13", "sha256": "e92e13b6d91620139f7207ae867ad9537ade75dc09f642455ef55f97ac60f62a" }, "downloads": -1, "filename": "workdir-0.3.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e7f200ae4776f0d8d4d2bf5feb52ed13", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3931, "upload_time": "2016-05-17T01:52:04", "url": "https://files.pythonhosted.org/packages/8e/8f/e6d551b9075c2cd4bfe499fe78d3a157059b4fb7970583102a23a026a3d9/workdir-0.3.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "33a326e1811c4a32a9e9ff6213530b5a", "sha256": "5629ad5907932e349922c75d93c5a985438837bebc5447eafc5d27b4db187118" }, "downloads": -1, "filename": "workdir-0.3.5.tar.gz", "has_sig": false, "md5_digest": "33a326e1811c4a32a9e9ff6213530b5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3668, "upload_time": "2016-05-17T01:52:14", "url": "https://files.pythonhosted.org/packages/91/74/4f2fe2c850a5fb503f57a39f4254be4c71c950648050980d51d1ae72177f/workdir-0.3.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e7f200ae4776f0d8d4d2bf5feb52ed13", "sha256": "e92e13b6d91620139f7207ae867ad9537ade75dc09f642455ef55f97ac60f62a" }, "downloads": -1, "filename": "workdir-0.3.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e7f200ae4776f0d8d4d2bf5feb52ed13", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3931, "upload_time": "2016-05-17T01:52:04", "url": "https://files.pythonhosted.org/packages/8e/8f/e6d551b9075c2cd4bfe499fe78d3a157059b4fb7970583102a23a026a3d9/workdir-0.3.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "33a326e1811c4a32a9e9ff6213530b5a", "sha256": "5629ad5907932e349922c75d93c5a985438837bebc5447eafc5d27b4db187118" }, "downloads": -1, "filename": "workdir-0.3.5.tar.gz", "has_sig": false, "md5_digest": "33a326e1811c4a32a9e9ff6213530b5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3668, "upload_time": "2016-05-17T01:52:14", "url": "https://files.pythonhosted.org/packages/91/74/4f2fe2c850a5fb503f57a39f4254be4c71c950648050980d51d1ae72177f/workdir-0.3.5.tar.gz" } ] }