Skip to main content

codeink draws your Python source code into beautiful graph structures

Project description

LICENSE Code Climate

CodeInk is a Python source code analyzer focused on complexity and interrelation of modules.

CodeInk draws the ihnerent relations of your modules along with their complexity and maintanability indexes in a beautiful graph powered by D3.js.

drawing of radon v1.2
  • drawing of radon v1.2

  • hover over a rounded rectangle to check which module is it


the animations that CodeInk creates are base on:

  • symbols: squares = modules, circle = Python, cross = target module, class = diamond, function = triangle-up, method = triangle-down

  • lines: each line represents an import

  • color: module maintainability index green = :) –> red = :(

  • size: ciclomatic complexity small = :) –> big = :(

hint: if A imports B, and B imports C, then A imports B and C, right? A –> B, B –> C, A –> B & C


with pip:

pip3 install codeink


git clone
python3 install


draw a package structure:

codeink draw /path/to/project

trace a module’s imports:

codeink trace /path/to/

check who imports a module:

codeink blame /path/to/

get an overview of a module:

codeink portrait /path/to/



In order to use CodeInk you must make sure that your python version uses the same syntax as the code that you are analyzing i.e. analyzing a code written with Python v2.7 syntax while using Python v3.x will result in an error.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeink-1.0.tar.gz (11.2 kB view hashes)

Uploaded source

Built Distribution

codeink-1.0-py3-none-any.whl (16.6 kB view hashes)

Uploaded 3 4

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page