{ "info": { "author": "Vadim Kravcenko", "author_email": "vadim.kravcenko@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2.6", "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", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "picycle: Find and fix circular imports in python projects\n=========================================================\n\n.. image:: https://img.shields.io/pypi/v/picycle.svg\n :target: https://pypi.python.org/pypi/picycle\n\n.. image:: https://img.shields.io/pypi/l/picycle.svg\n :target: https://pypi.python.org/pypi/picycle\n\n.. image:: https://img.shields.io/pypi/wheel/picycle.svg\n :target: https://pypi.python.org/pypi/picycle\n\n.. image:: https://img.shields.io/pypi/pyversions/pipenv.svg\n :target: https://pypi.python.org/pypi/picycle\n\n.. image:: https://travis-ci.org/bndr/picycle.svg?branch=master\n :target: https://travis-ci.org/bndr/picycle\n\n---------------\n\n\n**picycle** is an experimental project that aims to help developers fix their circular dependencies problems.\n`ImportError: Cannot import name X` is a python exception that is related to the circular imports, but it's not clear from the start.\nThis tool automatically analyzes the imports of your projects, and looks for imports that may cause a circular dependency problem.\n\nFeatures\n--------\n\n- **Shows you the whole chain of the circular imports.**\n- Gives you lines of code where each import is, for you to easily find and fix the problem.\n- Visualizes your imports in a graph **(Not Yet Implemented)**\n\n\n\nUsage\n-----\n\n::\n\n $ picycle\n Usage: picycle [OPTIONS] COMMAND [ARGS]...\n\n\n Examples:\n Get the circular imports in current project:\n $ picycle --here\n Look for circular imports in another project\n $ picycle --source /home/user/workspace/awesome_project\n\n Options:\n --verbose Verbose output.\n --here Try to find cycles in the current project\n --source TEXT Try to find cycles in the path provided\n --help Show this message then exit.\n --version Show the version and exit.\n\n::\n\n $ picycle --here\n Project successfully transformed to AST, checking imports for cycles..\n Cycle Found :(\n a_module.a_file: Line 1 -> a_module.b_module.b_file: Line 1 -> c_module.c_file: Line 1 -> d_module.d_file: Line 1 =>> a_module.a_file\n Finished.\n\n::\n\n $ picycle --source /Users/vkravcenko/workspace/awesome_project\n Target source provided:/Users/vkravcenko/workspace/awesome_project\n Project successfully transformed to AST, checking imports for cycles..\n No worries, no cycles here!\n If you think some cycle was missed, please open an Issue on Github.\n Finished.\n\n\nInstallation\n------------\n\n::\n\n $ pip install picycle", "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/bndr/picycle", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "picycle", "package_url": "https://pypi.org/project/picycle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/picycle/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bndr/picycle" }, "release_url": "https://pypi.org/project/picycle/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Find and repair your import cycles in any project", "version": "0.0.1" }, "last_serial": 2603941, "releases": { "0.0.1": [] }, "urls": [] }