{ "info": { "author": "dhubbard", "author_email": "dhubbard@yahoo-inc.com", "bugtrack_url": null, "classifiers": [ "Topic :: Utilities" ], "description": "python_shebang Description\n==========================\n\n[![Build Status](https://travis-ci.org/yahoo/python_shebang.svg?branch=master)](https://travis-ci.org/yahoo/python_shebang)\n\nThis package provides a command that can be run from /usr/bin/env on the\nshebang line of a script that will find an appropriate python interpreter\nto run it.\n\nUnlike plain /usr/bin/env this script allows specifying the version of python\nand python modules that are required.\n\n\nSupported Operating Systems\n===========================\nThis script is designed to operate on Unix operating systems. It is of no\nvalue on Windows which does not use shebang.\n\n\nDependencies\n============\npython_shebang is written to be able to run under any python version 2.6 or\nhigher using only modules in the python standard library.\n\n\nExamples\n========\n\nHere is a shebang line that will run the script with a python2.6 interpreter\nthat has both the foo and bar modules:\n\n```#!/usr/bin/env python_shebang version:2.6 module:foo module:bar```\n\n\nThis shebang line will run the script with a python 3 interpreter that has\nthe paramiko module:\n\n```#!/usr/bin/env python_shebang version:3 module:paramiko```\n\n\nRunning the command directly will give a python shell that meets the\nrequirements (the asyncio module was added in python 3.4):\n\n```\n$ python_shebang module:asyncio\nPython 3.4.0 (v3.4.0:04f714765c13, Mar 15 2014, 23:02:41)\n[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>>\n```\n\n\nIf a compatible interpreter cannot be found it will generate an exception (the\nasyncio module was added in python 3.4)\n\n```\n$ python_shebang module:asyncio version:3.3\nTraceback (most recent call last):\n File \"/usr/bin/python_shebang\", line 173, in \n version, modules, python_interpreters=python_interpreters\n File \"/usr/bin/python_shebang\", line 139, in __search_for_interpreters\n raise PythonNotFound('No usable python interpreters found')\n__main__.PythonNotFound: No usable python interpreters found\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/yahoo/python_shebang", "keywords": "shebang hashbang", "license": "Apache V2", "maintainer": null, "maintainer_email": null, "name": "pythonenv", "package_url": "https://pypi.org/project/pythonenv/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pythonenv/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/yahoo/python_shebang" }, "release_url": "https://pypi.org/project/pythonenv/0.0.34/", "requires_dist": null, "requires_python": null, "summary": "find a compatible python interpreter for a script", "version": "0.0.34" }, "last_serial": 1810567, "releases": { "0.0.34": [ { "comment_text": "", "digests": { "md5": "b4ceb8fec668c6ea42175c07f087944e", "sha256": "5c5eccc5a56d60a3cfb4e996820d981eb78385b16cc5882d0446a6203a8d3a06" }, "downloads": -1, "filename": "pythonenv-0.0.34-py2-none-any.whl", "has_sig": false, "md5_digest": "b4ceb8fec668c6ea42175c07f087944e", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7558, "upload_time": "2015-11-10T23:26:18", "url": "https://files.pythonhosted.org/packages/68/41/41ac9c6315e3a083e27c19417d785abec6913a9d0c1a7dda17636fb9b620/pythonenv-0.0.34-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f524911f6c4a967892eb9a08204cde1", "sha256": "6e00b3df70373f77deb0fac7795928ee113462b5f7c30e4d333913ac4cd32d38" }, "downloads": -1, "filename": "pythonenv-0.0.34.tar.gz", "has_sig": false, "md5_digest": "7f524911f6c4a967892eb9a08204cde1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5563, "upload_time": "2015-11-10T23:25:58", "url": "https://files.pythonhosted.org/packages/e5/eb/14e2e50432cda9fc9d08398d01cee3dd2443a150623226538d57fcee5e56/pythonenv-0.0.34.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4ceb8fec668c6ea42175c07f087944e", "sha256": "5c5eccc5a56d60a3cfb4e996820d981eb78385b16cc5882d0446a6203a8d3a06" }, "downloads": -1, "filename": "pythonenv-0.0.34-py2-none-any.whl", "has_sig": false, "md5_digest": "b4ceb8fec668c6ea42175c07f087944e", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7558, "upload_time": "2015-11-10T23:26:18", "url": "https://files.pythonhosted.org/packages/68/41/41ac9c6315e3a083e27c19417d785abec6913a9d0c1a7dda17636fb9b620/pythonenv-0.0.34-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f524911f6c4a967892eb9a08204cde1", "sha256": "6e00b3df70373f77deb0fac7795928ee113462b5f7c30e4d333913ac4cd32d38" }, "downloads": -1, "filename": "pythonenv-0.0.34.tar.gz", "has_sig": false, "md5_digest": "7f524911f6c4a967892eb9a08204cde1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5563, "upload_time": "2015-11-10T23:25:58", "url": "https://files.pythonhosted.org/packages/e5/eb/14e2e50432cda9fc9d08398d01cee3dd2443a150623226538d57fcee5e56/pythonenv-0.0.34.tar.gz" } ] }