{ "info": { "author": "Lars Holm Nielsen", "author_email": "lars.holm.nielsen@cern.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Quality Assurance", "Topic :: Utilities" ], "description": "py-import-search\n================\n\nUtility to search Python source files for imports matching given patterns.\n\nInstallation\n------------\n\n```\npip install py-import-search\n```\n\nUsage\n-----\n\n```\nusage: py-import-search [-h] [-p --pattern PATTERN] [-d --dir DIR]\n [-r --recursive] [-e --exclude-module MODULE]\n\nSearch Python source files for imports\n\noptional arguments:\n -h, --help show this help message and exit\n -p --pattern PATTERN pattern for matching imports (multiple allowed).\n -d --dir DIR path of directory containing Python source files.\n -r --recursive read all source files under each directory,\n recursively.\n -e --exclude-module MODULE\n exclude module (multiple allowed).\n```\n\nExamples\n--------\nPrint all imports for source files in a directory:\n```\n$ py-import-search -d .\n.../src/py-import-search/setup.py: from setuptools import find_packages\n.../src/py-import-search/setup.py: from setuptools import setup\n.../src/py-import-search/setup.py: import os\n```\n\nPrint all imports for source files in a directory all subdirectories:\n```\n$ py-import-search -d . -r\n.../src/py-import-search/setup.py: from setuptools import find_packages\n.../src/py-import-search/setup.py: from setuptools import setup\n.../src/py-import-search/setup.py: import os\n.../src/py-import-search/src/pyimportsearch/__init__.py: import argparse\n.../src/py-import-search/src/pyimportsearch/__init__.py: import ast\n.../src/py-import-search/src/pyimportsearch/__init__.py: import os\n.../src/py-import-search/src/pyimportsearch/__init__.py: import re\n```\n\nPrint imports matching 'setup':\n```\n$ py-import-search -d . -p setup\n.../src/py-import-search/setup.py: from setuptools import find_packages\n.../src/py-import-search/setup.py: from setuptools import setup\n```\n\nPrint imports matching 'setup$':\n```\n$ py-import-search -d . -p 'setup$'\n.../src/py-import-search/setup.py: from setuptools import setup\n```\n\nPrint imports matching 'setup$':\n```\n$ py-import-search -d . -p 'setup$'\n.../src/py-import-search/setup.py: from setuptools import setup\n```\n\nPrint all imports for source files in a directory excluding os module:\n```\n$ py-import-search -d . -e os\n.../src/py-import-search/setup.py: from setuptools import find_packages\n.../src/py-import-search/setup.py: from setuptools import setup\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/lnielsen-cern/py-import-search", "keywords": null, "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "py-import-search", "package_url": "https://pypi.org/project/py-import-search/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/py-import-search/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/lnielsen-cern/py-import-search" }, "release_url": "https://pypi.org/project/py-import-search/0.3/", "requires_dist": null, "requires_python": null, "summary": "A small utility for searching your source files for specific imports", "version": "0.3" }, "last_serial": 796840, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "94e9df7c6335ad485e4b3f3f617754b6", "sha256": "21f37220ee79907237771d99a77e9bf9351346dc73cf04de32dccfcdff9eb415" }, "downloads": -1, "filename": "py-import-search-0.1.tar.gz", "has_sig": false, "md5_digest": "94e9df7c6335ad485e4b3f3f617754b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3454, "upload_time": "2013-04-11T08:53:09", "url": "https://files.pythonhosted.org/packages/05/61/60e1255ef9e49e98c785158e7116dc5f72ea88ccfa74750e02e8321387e2/py-import-search-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "fcb171cf2c6c279a4a8b297a744f8d4b", "sha256": "65e7c348caf3c33c45c97927fe1d67e5ff1fc59b4513183ab2078ed36b8b1189" }, "downloads": -1, "filename": "py-import-search-0.2.tar.gz", "has_sig": false, "md5_digest": "fcb171cf2c6c279a4a8b297a744f8d4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3701, "upload_time": "2013-04-11T11:39:55", "url": "https://files.pythonhosted.org/packages/0a/43/7625b5b3549c7a34994781d037703c378d57dab9c536149cf9dfc207d698/py-import-search-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "93b216f2692f64e40243698816c0cb36", "sha256": "52e2140a87c6bebe078e6ae92811b02a7c0a34be88c88761f143679a4482e137" }, "downloads": -1, "filename": "py-import-search-0.3.tar.gz", "has_sig": false, "md5_digest": "93b216f2692f64e40243698816c0cb36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10566, "upload_time": "2013-04-11T11:45:30", "url": "https://files.pythonhosted.org/packages/79/a3/78fc1ee0ce629f2f2759b036721f846846ecfc3b87443dc2bdf84997727f/py-import-search-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "93b216f2692f64e40243698816c0cb36", "sha256": "52e2140a87c6bebe078e6ae92811b02a7c0a34be88c88761f143679a4482e137" }, "downloads": -1, "filename": "py-import-search-0.3.tar.gz", "has_sig": false, "md5_digest": "93b216f2692f64e40243698816c0cb36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10566, "upload_time": "2013-04-11T11:45:30", "url": "https://files.pythonhosted.org/packages/79/a3/78fc1ee0ce629f2f2759b036721f846846ecfc3b87443dc2bdf84997727f/py-import-search-0.3.tar.gz" } ] }