{ "info": { "author": "Sam Kingston and AUTHORS", "author_email": "sam@sjkwi.com.au", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "virtualenv-api - an API for virtualenv\n======================================\n\n|Build Status|\n|Latest version|\n|BSD License|\n\n`virtualenv`_ is a tool to create isolated Python environments. Unfortunately,\nit does not expose a native Python API. This package aims to provide an API in\nthe form of a wrapper around virtualenv.\n\nIt can be used to create and delete environments and perform package management\ninside the environment.\n\nFull support is provided for Python 2.7 and Python 3.3+.\n\n.. _virtualenv: http://www.virtualenv.org/\n.. |Build Status| image:: https://travis-ci.org/sjkingo/virtualenv-api.svg\n :target: https://travis-ci.org/sjkingo/virtualenv-api\n.. |Latest version| image:: https://img.shields.io/pypi/v/virtualenv-api.svg\n :target: https://pypi.python.org/pypi/virtualenv-api\n.. |BSD License| image:: https://img.shields.io/pypi/l/virtualenv-api.svg\n :target: https://github.com/sjkingo/virtualenv-api/blob/master/LICENSE\n\n\nInstallation\n------------\n\nThe latest stable release is available on `PyPi`_:\n\n::\n\n $ pip install virtualenv-api\n\nPlease note that the distribution is named ``virtualenv-api``, yet the Python\npackage is named ``virtualenvapi``.\n\nAlternatively, you may fetch the latest version from git:\n\n::\n\n $ pip install git+https://github.com/sjkingo/virtualenv-api.git\n\n.. _PyPi: https://pypi.python.org/pypi/virtualenv-api\n\nExamples\n--------\n\n- To begin managing an environment (it will be created if it does not\n exist):\n\n.. code:: python\n\n from virtualenvapi.manage import VirtualEnvironment\n env = VirtualEnvironment('/path/to/environment/name')\n\nYou may also specify the Python interpreter to use in this environment by\npassing the ``python`` argument to the class constructor (new in 2.1.3):\n\n.. code:: python\n\n env = VirtualEnvironment('/path/to/environment/name', python='python3')\n\nIf you have already activated a virtualenv and wish to operate on it, simply\ncall ``VirtualEnvironment`` with no arguments:\n\n.. code:: python\n\n env = VirtualEnvironment()\n\n*New in 2.1.7:*\n\nAn optional argument ``readonly`` may be provided (defaults to ``False``) that\nwill prevent all operations that could potentially modify the environment.\n\n- Check if the ``mezzanine`` package is installed:\n\n.. code:: python\n\n >>> env.is_installed('mezzanine')\n False\n\n- Install the latest version of the ``mezzanine`` package:\n\n.. code:: python\n\n >>> env.install('mezzanine')\n\n- A wheel of the latest version of the ``mezzanine`` package (new in\n 2.1.4):\n\n.. code:: python\n\n >>> env.wheel('mezzanine')\n\n- Install version 1.4 of the ``django`` package (this is pip\u2019s syntax):\n\n.. code:: python\n\n >>> env.install('django==1.4')\n\n- Upgrade the ``django`` package to the latest version:\n\n.. code:: python\n\n >>> env.upgrade('django')\n\n- Upgrade all packages to their latest versions (new in 2.1.7):\n\n.. code:: python\n\n >>> env.upgrade_all()\n\n- Uninstall the ``mezzanine`` package:\n\n.. code:: python\n\n >>> env.uninstall('mezzanine')\n\nPackages may be specified as name only (to work on the latest version), using\npip\u2019s package syntax (e.g. ``django==1.4``) or as a tuple of ``('name',\n'ver')`` (e.g. ``('django', '1.4')``).\n\n- A package may be installed directly from a git repository (must end\n with ``.git``):\n\n.. code:: python\n\n >>> env.install('git+git://github.com/sjkingo/cartridge-payments.git')\n\n*New in 2.1.10:*\n\n- A package can be installed in pip's *editable* mode by prefixing the package\n name with `-e` (this is pip's syntax):\n\n.. code:: python\n\n >>> env.install('-e git+https://github.com/stephenmcd/cartridge.git')\n\n- Instances of the environment provide an ``installed_packages``\n property:\n\n.. code:: python\n\n >>> env.installed_packages\n [('django', '1.5'), ('wsgiref', '0.1.2')]\n\n- A list of package names is also available in the same manner:\n\n.. code:: python\n\n >>> env.installed_package_names\n ['django', 'wsgiref']\n\n- Search for a package on PyPI (changed in 2.1.5: this now returns a\n dictionary instead of list):\n\n.. code:: python\n\n >>> env.search('virtualenv-api')\n {'virtualenv-api': 'An API for virtualenv/pip'}\n >>> len(env.search('requests'))\n 231\n\n- The old functionality (pre 2.1.5) of ``env.search`` may be used:\n\n.. code:: python\n\n >>> list(env.search('requests').items())\n [('virtualenv-api', 'An API for virtualenv/pip')]\n\nVerbose output from each command is available in the environment\u2019s\n``build.log`` file, which is appended to with each operation. Any errors are\nlogged to ``build.err``.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zerotk/virtualenv-api", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "zerotk.virtualenv-api", "package_url": "https://pypi.org/project/zerotk.virtualenv-api/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zerotk.virtualenv-api/", "project_urls": { "Homepage": "https://github.com/zerotk/virtualenv-api" }, "release_url": "https://pypi.org/project/zerotk.virtualenv-api/2.2.1/", "requires_dist": null, "requires_python": "", "summary": "An API for virtualenv/pip", "version": "2.2.1" }, "last_serial": 2633893, "releases": { "2.1.14": [ { "comment_text": "", "digests": { "md5": "90a250c1a63dc7bd0b0ea8d6f87b2ee6", "sha256": "3b78ab613178a4df20a54b7b49a59ff49406c279b7c6fe471bf0832fb96a7a77" }, "downloads": -1, "filename": "zerotk.virtualenv-api-2.1.14.tar.gz", "has_sig": false, "md5_digest": "90a250c1a63dc7bd0b0ea8d6f87b2ee6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7208, "upload_time": "2017-02-08T16:25:16", "url": "https://files.pythonhosted.org/packages/1d/90/14675063b2a0e339056b7d417c6c4e2606bea330dcb2c4cbc5c89faec17f/zerotk.virtualenv-api-2.1.14.tar.gz" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "854dd40136457380cbf0052f3d11a8ae", "sha256": "e1ad57b36cdc2ffd02b5d6ffbee78d5b4ce2e834ce44e2d3638f64137d2b1b95" }, "downloads": -1, "filename": "zerotk.virtualenv-api-2.2.0.tar.gz", "has_sig": false, "md5_digest": "854dd40136457380cbf0052f3d11a8ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12166, "upload_time": "2017-02-08T17:44:21", "url": "https://files.pythonhosted.org/packages/a6/e4/c6310504ed494045f772876c31006c075fba45d4667f875c13586c94f353/zerotk.virtualenv-api-2.2.0.tar.gz" } ], "2.2.1": [ { "comment_text": "", "digests": { "md5": "10830db6ce20ba69bf106d3954191abd", "sha256": "7d8195ec6ad7d3670ce3761ba0065a95993e71fa5c35d6f47b26a1a7d661bd82" }, "downloads": -1, "filename": "zerotk.virtualenv-api-2.2.1.tar.gz", "has_sig": false, "md5_digest": "10830db6ce20ba69bf106d3954191abd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12165, "upload_time": "2017-02-10T17:07:49", "url": "https://files.pythonhosted.org/packages/fb/7e/db66bc8da2f1e96698d37fb92c1e32ffa98dbb3510abd54b0e7577fe2489/zerotk.virtualenv-api-2.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "10830db6ce20ba69bf106d3954191abd", "sha256": "7d8195ec6ad7d3670ce3761ba0065a95993e71fa5c35d6f47b26a1a7d661bd82" }, "downloads": -1, "filename": "zerotk.virtualenv-api-2.2.1.tar.gz", "has_sig": false, "md5_digest": "10830db6ce20ba69bf106d3954191abd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12165, "upload_time": "2017-02-10T17:07:49", "url": "https://files.pythonhosted.org/packages/fb/7e/db66bc8da2f1e96698d37fb92c1e32ffa98dbb3510abd54b0e7577fe2489/zerotk.virtualenv-api-2.2.1.tar.gz" } ] }