{ "info": { "author": "Chris Fournier", "author_email": "chris.m.fournier@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Testing" ], "description": ".. image:: https://travis-ci.org/cfournie/important.svg?branch=master\n :target: https://travis-ci.org/cfournie/important\n.. image:: https://coveralls.io/repos/github/cfournie/important/badge.svg?branch=master\n :target: https://coveralls.io/github/cfournie/important?branch=master\n\nImportant\n=========\n\nA simple source code import checker that checks your project for whether you:\n\n- Import and use everything in your `requirements.txt` file; and/or\n- Import packages with specified frequencies using a constraint file (use to\n wean a project off of a dependency).\n\nInstallation\n------------\n\nInstall the latest stable version from PyPI using:\n\n.. code:: bash\n\n pip install important\n\nOtherwise, to grab the latest version on master, use:\n \n.. code:: bash\n \n pip install git+https://github.com/cfournie/important.git\n\nRequirements\n------------\n\nThis works best when run from a virtualenv where your project's requirements\nare installed (to translate requirements to module names).\n\nThis tool requires that it be installed with the same Python version as the\nsource code that it's analyzing and that the source code is syntactically correct.\n\nUsage\n-----\n\nCheck for unused requirements using:\n\n.. code:: bash\n\n $ important -v --requirements requirements.txt .\n Parsed 52 imports in 8 files\n Error: Unused requirements or violated constraints found\n caniusepython3 (unused requirement)\n\n\nCheck for imports that are used too frequently (to prevent further usage of a\nrequirement while you phase it out) using:\n\n.. code:: bash\n\n $ important -v --constraints constraints.txt .\n Parsed 52 imports in 8 files\n Error: Unused requirements or violated constraints found\n click<=1 (constraint violated by click==2)\n\n\nCheck for unused requirements but exclude test files using:\n\n.. code:: bash\n\n $ important -v --requirements requirements.txt --exclude **/test_*.py .\n Parsed 52 imports in 8 files\n Error: Unused requirements or violated constraints found\n caniusepython3 (unused requirement)\n\n\nIgnore errors related to some of your requirements using:\n\n.. code:: bash\n\n $ important -v --requirements requirements.txt --ignore caniusepython3 .\n Parsed 52 imports in 8 files\n $ important -v --requirements requirements.txt --ignorefile ignored.txt .\n Parsed 52 imports in 8 files\n\n\nAlternatively, you can configure ``important`` using a ``setup.cfg`` file in the current working directory, e.g.:\n\n.. code:: ini\n\n [important]\n requirements=\n requirements.txt\n constraints=\n constraints.txt\n ignore=\n Sphinx\n flake8\n exclude=\n .git\n sourcecode=.\n\nThen run using:\n\n.. code:: bash\n\n $ important -v\n Parsed 52 imports in 8 files", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/cfournie/important/tarball/0.1.4", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cfournie/important", "keywords": "import,requirement,unused", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "important", "package_url": "https://pypi.org/project/important/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/important/", "project_urls": { "Download": "https://github.com/cfournie/important/tarball/0.1.4", "Homepage": "https://github.com/cfournie/important" }, "release_url": "https://pypi.org/project/important/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Utility to find unused packages in requirements and to constrain package usage", "version": "0.1.4" }, "last_serial": 2626894, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "d1df6b4e716f9665becf8218e34f3243", "sha256": "a2584132016bc53b4229c961a177448f6e3549e9eb6016328023fc0a50375bdb" }, "downloads": -1, "filename": "important-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d1df6b4e716f9665becf8218e34f3243", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7290, "upload_time": "2017-02-06T04:49:03", "url": "https://files.pythonhosted.org/packages/97/73/ee0d346eecc09c95ab44108884627121fa3f37d85f62fc688996f0cdabdc/important-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "903161285b202c8c416cc58557b727c8", "sha256": "b3e9afabd100c61dcc46f086eb813ae5e24930d1c604f55207b07b6567c53f26" }, "downloads": -1, "filename": "important-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "903161285b202c8c416cc58557b727c8", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10992, "upload_time": "2017-02-06T05:47:17", "url": "https://files.pythonhosted.org/packages/c3/e2/74ca33361c10e54a3979b5c5c2b6af2e9b21f9f493c3863f46411c176d15/important-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f0a10bc31c5350a38ec7bb45021edde4", "sha256": "18b03898cc1dc6c5554fbb6ae0fa5ff223743858dc1ed0dda20ac6b17bb04a7a" }, "downloads": -1, "filename": "important-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f0a10bc31c5350a38ec7bb45021edde4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8013, "upload_time": "2017-02-06T05:47:15", "url": "https://files.pythonhosted.org/packages/4d/5a/568fc4c23c9d2b9c056a144ca211d4c7f043803a8cb1f38ca9e254cfece5/important-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "45bac3cd97ae9929b2fddbd4e72585af", "sha256": "d48c1bc27f3569cbca692589a88e926b21b0e283c5cf9604e1ac579f0725716b" }, "downloads": -1, "filename": "important-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "45bac3cd97ae9929b2fddbd4e72585af", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10991, "upload_time": "2017-02-08T01:42:24", "url": "https://files.pythonhosted.org/packages/60/9e/6fdff0c43806aefe0e67464eecc0b6635f7487b04f15e499a5a8975d2184/important-0.1.3-py2.py3-none-any.whl" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "99a0f735b2ab9b2c7550b97641d0c314", "sha256": "448aec08a66b00f3ebcfbb1928b407b2cbf6ccf84fe6104ecd53bfe870ab70be" }, "downloads": -1, "filename": "important-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "99a0f735b2ab9b2c7550b97641d0c314", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10994, "upload_time": "2017-02-08T01:50:37", "url": "https://files.pythonhosted.org/packages/74/10/c709c553e5f1063ef8c57bc31cba10ed3182935b90a202b1955cc58d45f9/important-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f11e61f70afebe55277d49705aaa41b9", "sha256": "0b59e8f8b399d23b26080fb56404dfd11cb6a947aa780abdd303784b7b86c23b" }, "downloads": -1, "filename": "important-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f11e61f70afebe55277d49705aaa41b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8025, "upload_time": "2017-02-08T01:50:34", "url": "https://files.pythonhosted.org/packages/53/3c/553a170167a2eca92a0b59d78ee8647166be9f933de2022b21c8c7cc1f31/important-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "99a0f735b2ab9b2c7550b97641d0c314", "sha256": "448aec08a66b00f3ebcfbb1928b407b2cbf6ccf84fe6104ecd53bfe870ab70be" }, "downloads": -1, "filename": "important-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "99a0f735b2ab9b2c7550b97641d0c314", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10994, "upload_time": "2017-02-08T01:50:37", "url": "https://files.pythonhosted.org/packages/74/10/c709c553e5f1063ef8c57bc31cba10ed3182935b90a202b1955cc58d45f9/important-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f11e61f70afebe55277d49705aaa41b9", "sha256": "0b59e8f8b399d23b26080fb56404dfd11cb6a947aa780abdd303784b7b86c23b" }, "downloads": -1, "filename": "important-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f11e61f70afebe55277d49705aaa41b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8025, "upload_time": "2017-02-08T01:50:34", "url": "https://files.pythonhosted.org/packages/53/3c/553a170167a2eca92a0b59d78ee8647166be9f933de2022b21c8c7cc1f31/important-0.1.4.tar.gz" } ] }