A copy & paste backport of Python 3.3's ``shutil.which`` function.
Usage
=====
First, install the package: ``pip install shutilwhich``
Importing the package::
import shutilwhich
will monkey-patch the ``shutil`` package, so from that point on you can simply
import the ``which`` function::
from shutil import which
To keep things a little more concise, you can also import ``which`` directly
from ``shutilwhich``::
from shutilwhich import which
This will still monkeypatch the ``shutil`` module. On Python 3.3 and above, the
module never do anything but return the stdlib ``shutil.which`` function.
Raw data
{
"_id": null,
"home_page": "http://github.com/mbr/shutilwhich",
"name": "shutilwhich",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Marc Brinkmann",
"author_email": "git@marcbrinkmann.de",
"download_url": "https://files.pythonhosted.org/packages/66/be/783f181594bb8bcfde174d6cd1e41956b986d0d8d337d535eb2555b92f8d/shutilwhich-1.1.0.tar.gz",
"platform": "UNKNOWN",
"description": "A copy & paste backport of Python 3.3's ``shutil.which`` function.\n\nUsage\n=====\n\nFirst, install the package: ``pip install shutilwhich``\n\nImporting the package::\n\n import shutilwhich\n\nwill monkey-patch the ``shutil`` package, so from that point on you can simply\nimport the ``which`` function::\n\n from shutil import which\n\nTo keep things a little more concise, you can also import ``which`` directly\nfrom ``shutilwhich``::\n\n from shutilwhich import which\n\nThis will still monkeypatch the ``shutil`` module. On Python 3.3 and above, the\nmodule never do anything but return the stdlib ``shutil.which`` function.",
"bugtrack_url": null,
"license": "PSF",
"summary": "shutil.which for those not using Python 3.3 yet.",
"version": "1.1.0",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "http://github.com/mbr/shutilwhich"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "66be783f181594bb8bcfde174d6cd1e41956b986d0d8d337d535eb2555b92f8d",
"md5": "915947c5cdae7afd748ac715ee547adb",
"sha256": "db1f39c6461e42f630fa617bb8c79090f7711c9ca493e615e43d0610ecb64dc6"
},
"downloads": -1,
"filename": "shutilwhich-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "915947c5cdae7afd748ac715ee547adb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2300,
"upload_time": "2015-04-25T14:03:13",
"upload_time_iso_8601": "2015-04-25T14:03:13.563367Z",
"url": "https://files.pythonhosted.org/packages/66/be/783f181594bb8bcfde174d6cd1e41956b986d0d8d337d535eb2555b92f8d/shutilwhich-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2015-04-25 14:03:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mbr",
"github_project": "shutilwhich",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "shutilwhich"
}