{ "info": { "author": "Aaron Halfaker", "author_email": "aaron.halfaker@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python" ], "description": "## Python Version\n\nThis package provides a basic python version checking utility. \nIt will check for a range of python versions and either report\nan error or exit depending on the parameters provided.\n\n## Example\n\n```\n$ python\nPython 3.5.1+ (default, Mar 30 2016, 22:46:26)\n[GCC 5.3.1 20160330] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import python_version\n>>>\n>>> try:\n... python_version.check(min=(3, 0, 0), max=(4, 0, 0))\n... except Exception as e:\n... print(repr(e))\n... else:\n... print(\"All good!\")\n...\nAll good!\n>>> try:\n... python_version.check(min=(3, 6, 0), max=(4, 0, 0))\n... except Exception as e:\n... print(repr(e))\n... else:\n... print(\"All good!\")\n...\nVersionConflict('requires python version >= 3.6.0 but the running python version is 3.5.1+',)\n>>> try:\n... python_version.check(min=(2, 7, 0), max=(2, 7, 999))\n... except Exception as e:\n... print(repr(e))\n... else:\n... print(\"All good!\")\n...\nVersionConflict('requires python version <= 2.7.999 but the running python version is 3.5.1+',)\n>>> try:\n... python_version.check(min=(2, 7, 0), max=(2, 7, 999), exit_on_error=True)\n... except Exception as e:\n... print(repr(e))\n... else:\n... print(\"All good!\")\n...\nrequires python version <= 2.7.999 but the running python version is 3.5.1+\n$\n```\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/halfak/python_version", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "python_version", "package_url": "https://pypi.org/project/python_version/", "platform": "", "project_url": "https://pypi.org/project/python_version/", "project_urls": { "Homepage": "https://gitlab.com/halfak/python_version" }, "release_url": "https://pypi.org/project/python_version/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "Provides a simple utility for checking the python version.", "version": "0.0.2" }, "last_serial": 3380698, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "4814649585d3e39b5435e07be8a00599", "sha256": "2c7429f3375cee19873892e5db4d10d2b42172d8851a8bb5111729e028470580" }, "downloads": -1, "filename": "python_version-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4814649585d3e39b5435e07be8a00599", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 3411, "upload_time": "2017-12-01T17:28:32", "url": "https://files.pythonhosted.org/packages/a8/e3/06841b7e2b5dab99f6e5ece60db926ce35b9cf351da87ecaf2d75e5d9009/python_version-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dfb13254eaa9f2adccc09f73d2cb5cf7", "sha256": "5c16de57c7f2d614621cf468e8f5a20bb6b3cec665c9c7f5e9f9f000bf04fe67" }, "downloads": -1, "filename": "python_version-0.0.2.tar.gz", "has_sig": false, "md5_digest": "dfb13254eaa9f2adccc09f73d2cb5cf7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1888, "upload_time": "2017-12-01T17:28:30", "url": "https://files.pythonhosted.org/packages/fe/74/8ed1d7f895b33a89565be4b1c8651d503fcb2cdda951fef4ec6f6906432c/python_version-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4814649585d3e39b5435e07be8a00599", "sha256": "2c7429f3375cee19873892e5db4d10d2b42172d8851a8bb5111729e028470580" }, "downloads": -1, "filename": "python_version-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4814649585d3e39b5435e07be8a00599", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 3411, "upload_time": "2017-12-01T17:28:32", "url": "https://files.pythonhosted.org/packages/a8/e3/06841b7e2b5dab99f6e5ece60db926ce35b9cf351da87ecaf2d75e5d9009/python_version-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dfb13254eaa9f2adccc09f73d2cb5cf7", "sha256": "5c16de57c7f2d614621cf468e8f5a20bb6b3cec665c9c7f5e9f9f000bf04fe67" }, "downloads": -1, "filename": "python_version-0.0.2.tar.gz", "has_sig": false, "md5_digest": "dfb13254eaa9f2adccc09f73d2cb5cf7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1888, "upload_time": "2017-12-01T17:28:30", "url": "https://files.pythonhosted.org/packages/fe/74/8ed1d7f895b33a89565be4b1c8651d503fcb2cdda951fef4ec6f6906432c/python_version-0.0.2.tar.gz" } ] }