pipimport3


Namepipimport3 JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://github.com/BiscuitBobby/pipimport
SummaryAutomatically install missing modules using pip at import time. Best used with virtualenv. Updated fork of original by Carles F. Julia.
upload_time2024-02-08 19:26:49
maintainer
docs_urlNone
authorBiscuitBobby
requires_python
licenseMIT
keywords pip virtualenv import hook
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Python3 compatible fork of original pipimport

Pipimport automatically installs missing modules using pip at import time.
It is best used with virtualenv.

Just import pipimport and call install():

>>> import pipimport
>>> pipimport.install()

Now you can normally import modules that are not currently installed.
Pipimport will call pip (form your virtualenv) and install it before importing.

>>> import unipath
Will install module unipath
Downloading/unpacking unipath
  Downloading Unipath-1.0.tar.gz
  Running setup.py egg_info for package unipath  
Installing collected packages: unipath
  Running setup.py install for unipath
Successfully installed unipath
Cleaning up...
>>> unipath
<module 'unipath' from '/home/carles/Projectes/piphook/ve/local/lib/python2.7/site-packages/unipath/__init__.pyc'>

The modules that can't be found are remembered so sequential imports don't try to
download them again. This list is saved in the virtualenv directory ( sys.prefix )
or in the working directory (the first with writing permissions) with the name
of .pipimport-ignore . The list is loaded in subsequent sessions.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/BiscuitBobby/pipimport",
    "name": "pipimport3",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pip virtualenv import hook",
    "author": "BiscuitBobby",
    "author_email": "simeddon@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/67/94/284961031cc8903d600495caaad2de058653940a8f66574545c47bf6d566/pipimport3-0.3.1.tar.gz",
    "platform": null,
    "description": "Python3 compatible fork of original pipimport\n\nPipimport automatically installs missing modules using pip at import time.\nIt is best used with virtualenv.\n\nJust import pipimport and call install():\n\n>>> import pipimport\n>>> pipimport.install()\n\nNow you can normally import modules that are not currently installed.\nPipimport will call pip (form your virtualenv) and install it before importing.\n\n>>> import unipath\nWill install module unipath\nDownloading/unpacking unipath\n  Downloading Unipath-1.0.tar.gz\n  Running setup.py egg_info for package unipath  \nInstalling collected packages: unipath\n  Running setup.py install for unipath\nSuccessfully installed unipath\nCleaning up...\n>>> unipath\n<module 'unipath' from '/home/carles/Projectes/piphook/ve/local/lib/python2.7/site-packages/unipath/__init__.pyc'>\n\nThe modules that can't be found are remembered so sequential imports don't try to\ndownload them again. This list is saved in the virtualenv directory ( sys.prefix )\nor in the working directory (the first with writing permissions) with the name\nof .pipimport-ignore . The list is loaded in subsequent sessions.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Automatically install missing modules using pip at import time. Best used with virtualenv. Updated fork of original by Carles F. Julia.",
    "version": "0.3.1",
    "project_urls": {
        "Homepage": "https://github.com/BiscuitBobby/pipimport"
    },
    "split_keywords": [
        "pip",
        "virtualenv",
        "import",
        "hook"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b24e27b79e1644af870c4b220d45bce366956174b07991014e4bc8a729c1ff26",
                "md5": "d6f463fbbb8149b6ed04660d81ea984a",
                "sha256": "e097fc9918724f6e7d185839f0f713c3d1200ef1723a2500237e179cbb0897d1"
            },
            "downloads": -1,
            "filename": "pipimport3-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d6f463fbbb8149b6ed04660d81ea984a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2840,
            "upload_time": "2024-02-08T19:26:48",
            "upload_time_iso_8601": "2024-02-08T19:26:48.393122Z",
            "url": "https://files.pythonhosted.org/packages/b2/4e/27b79e1644af870c4b220d45bce366956174b07991014e4bc8a729c1ff26/pipimport3-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6794284961031cc8903d600495caaad2de058653940a8f66574545c47bf6d566",
                "md5": "4f622a6edfbff66f051e388ccde30086",
                "sha256": "5e285d432061980ccdb17ae43c2fd4e573446bbc44999e1d2f4011fd6dc1b81b"
            },
            "downloads": -1,
            "filename": "pipimport3-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4f622a6edfbff66f051e388ccde30086",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2728,
            "upload_time": "2024-02-08T19:26:49",
            "upload_time_iso_8601": "2024-02-08T19:26:49.935468Z",
            "url": "https://files.pythonhosted.org/packages/67/94/284961031cc8903d600495caaad2de058653940a8f66574545c47bf6d566/pipimport3-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-08 19:26:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BiscuitBobby",
    "github_project": "pipimport",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pipimport3"
}
        
Elapsed time: 0.18057s