{ "info": { "author": "David Cournapeau", "author_email": "cournape@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# import-profiler\nA basic python import profiler to find bottlenecks in import times. While not\noften a problem, imports can be an issue for applications that need to start\nquickly, such as CLI tools. The goal of import profiler is to help find the\nbottlenecks when importing a given package.\n\n## Example\n\nThis is Work in Progress. To try it out, write something as follows:\n\n``` python\nfrom import_profiler import profile_import\n\nwith profile_import() as context:\n # Anything expensive in here\n import requests\n\n# Print cumulative and inline times. The number of + in the 3rd column\n# indicates the depth of the stack.\ncontext.print_info()\n```\n\nOutput:\n\n```\n cumtime (ms) intime (ms) name\n 83 0.5 requests\n 55 0.5 +packages.urllib3.contrib\n 54.1 0.3 ++\n 53.1 0.7 +++connectionpool\n 6.3 1.1 ++++logging\n 1.4 0.5 +++++collections\n 2.7 1.3 +++++threading\n 1.4 0.3 ++++++re\n 7 0.7 ++++socket\n 5.7 5.7 +++++_ssl\n 7 0.1 ++++packages.ssl_match_hostname\n 6.9 0.1 +++++\n 6.8 2.3 ++++++ssl\n 3.2 1.5 +++++++textwrap\n 1.7 1.6 ++++++++string\n 12 0.4 ++++connection\n 7.7 1.1 +++++httplib\n 2.3 2.3 ++++++urlparse\n 4.2 0.2 ++++++mimetools\n 3.4 0.3 +++++++tempfile\n 2.1 1.4 ++++++++random\n 3.6 0.1 +++++util.ssl_\n 1.1 1 ++++++url\n 16.4 0.2 ++++request\n 1.5 1.4 +++++urllib.parse\n 14.7 0.2 +++++filepost\n 9.1 6 ++++++uuid\n 2.9 1.7 +++++++ctypes\n 5.4 0.2 ++++++fields\n 4.8 1.7 +++++++email.utils\n 2.4 0.2 ++++++++email._parseaddr\n 2.2 0.7 +++++++++calendar\n 1.4 1.4 ++++++++++locale\n 1.2 0.4 ++++response\n 24.8 0.4 +\n 1.8 1.7 ++cgi\n 5.4 5.4 ++platform\n 15.1 0.1 ++compat\n 2.4 0.2 +++json\n 1.5 0.5 ++++decoder\n 1.6 1.3 +++urllib2\n 7.6 6.8 +++cookielib\n 3 2.5 +++Cookie\n 1.5 0.6 +models\n 1 0.1 +api\n```\n\n# Missing features\n\nWe don't track where imports happen: it would be nice to know where a given\nimport in the profile output happens.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "import-profiler", "package_url": "https://pypi.org/project/import-profiler/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/import-profiler/", "project_urls": null, "release_url": "https://pypi.org/project/import-profiler/0.0.3/", "requires_dist": [ "tabulate (>=0.7.5)" ], "requires_python": "", "summary": "Import profiler to find bottlenecks in import times.", "version": "0.0.3" }, "last_serial": 2126606, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "eea22badc329f6b951ad4c37e421c13c", "sha256": "6b369524c576fa8f769499dff1d3f99d982d69fd8fb73d9447513f8e5ed0135d" }, "downloads": -1, "filename": "import_profiler-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eea22badc329f6b951ad4c37e421c13c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2705, "upload_time": "2016-04-07T15:28:46", "url": "https://files.pythonhosted.org/packages/ae/92/3bb5afa584e05b7001180fe93a38ca3b6345260d273a70b607c474379209/import_profiler-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f25e5269c652e2486da41d6d6f96e2d3", "sha256": "2a95b030dfb7a867e07890a3d8a6d24ef5c5cde626d30f6b1107eee6a2590dfe" }, "downloads": -1, "filename": "import_profiler-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f25e5269c652e2486da41d6d6f96e2d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1293, "upload_time": "2016-04-07T15:29:05", "url": "https://files.pythonhosted.org/packages/69/40/d85ab5bdf06815431339d1be0bfac71673b2d6c5d0f10dac7cc9f952889c/import_profiler-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "89b8800eee38d7964761967c7c866dcc", "sha256": "2ed7854e9aba4e014f8b7bab76c9943faec832c54060aa5d0ccb6dbd3911f49c" }, "downloads": -1, "filename": "import_profiler-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "89b8800eee38d7964761967c7c866dcc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5242, "upload_time": "2016-05-21T12:53:33", "url": "https://files.pythonhosted.org/packages/61/a6/75ffe156bb1337904f2fd18c4b55ec9a215c539bf7c77585ab4dd120434b/import_profiler-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da08dbb0090f2b24ca27acb467fb445f", "sha256": "8ca93c521d3360390ee18eefd2bf666704ba4d95d6bd9d683bb9b50c6d48f0b5" }, "downloads": -1, "filename": "import_profiler-0.0.3.tar.gz", "has_sig": false, "md5_digest": "da08dbb0090f2b24ca27acb467fb445f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3160, "upload_time": "2016-05-21T12:53:50", "url": "https://files.pythonhosted.org/packages/1f/cf/6a60ab41279a8c9a75c6370ccd41449bcc09a39385dd6c282bd8c123053a/import_profiler-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "89b8800eee38d7964761967c7c866dcc", "sha256": "2ed7854e9aba4e014f8b7bab76c9943faec832c54060aa5d0ccb6dbd3911f49c" }, "downloads": -1, "filename": "import_profiler-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "89b8800eee38d7964761967c7c866dcc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5242, "upload_time": "2016-05-21T12:53:33", "url": "https://files.pythonhosted.org/packages/61/a6/75ffe156bb1337904f2fd18c4b55ec9a215c539bf7c77585ab4dd120434b/import_profiler-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da08dbb0090f2b24ca27acb467fb445f", "sha256": "8ca93c521d3360390ee18eefd2bf666704ba4d95d6bd9d683bb9b50c6d48f0b5" }, "downloads": -1, "filename": "import_profiler-0.0.3.tar.gz", "has_sig": false, "md5_digest": "da08dbb0090f2b24ca27acb467fb445f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3160, "upload_time": "2016-05-21T12:53:50", "url": "https://files.pythonhosted.org/packages/1f/cf/6a60ab41279a8c9a75c6370ccd41449bcc09a39385dd6c282bd8c123053a/import_profiler-0.0.3.tar.gz" } ] }