Skip to main content
Help us improve Python packaging – donate today!

A Django app that displays dependency matrices and project architecture information

Project Description

Latest Version Development Status Download format Build Status Supported Python versions License

A Django app that displays dependency matrices using dependenpy Python module, and also project architecture information, using archan Python module.

It uses Twitter Bootstrap, JQuery, JQuery-UI and D3js libraries.

Screenshot Matrix

Screenshot Architecture

Architecture analysis tab


The archan Python module implements some of the design principles described in “The Protection of Information in Computer Systems” paper, written by Jerome H. Saltzer and Michael D. Schroeder. The aim of django-archan is to automate the analysis of the dependency matrix of your project (generated by the dependenpy Python module), and display it in a nice user-friendly way.


Just run:

pip install django-archan

Then add django-archan to the installed apps of your Django project:


INSTALLED_APPS += ('darchan')

Also add the urls into your main, something like:


url(r'^darchan/', include('darchan.urls'), name='darchan'),


The following options are available:

  • DARCHAN_PACKAGE_LIST : the list of installed packages that will be scanned to build the dependency matrices. Please read the documentation of dependenpy for more details.
  • DARCHAN_TEMPLATE : the path to the template that will include django_archan HTML/CSS/JS contents. The purpose of this option is to make django archan template inherit from your HTML base.



DARCHAN_TEMPLATE = "my_app/my_custom_template.html"
<!-- my_app/my_custom_template.html -->

{% extends "my_core/my_base.html" %}
{% load static %}

{% block my_content %}
    {% include "darchan/matrix.html" %}
{% endblock %}

{% block my_js %}
    {# overriden to remove inclusion of another jquery script #}
    {# that would enter in conflict with darchan's one #}
{% endblock %}

    'framework', ['django'],
    'core_lib', [
    'app_lib', [
    'app_module', [
    'broker', ['security']


It is mandatory that you use the following names for naming your groups of packages, otherwise an exception will be raised by the archan module:

  • framework: obviously, django
  • core_lib: the django packages you installed and you didn’t modify
  • app_lib: the django packages that you wrote or modified
  • app_module: the main features of your project (packages in your project root, not in virtualenv)
  • broker: the modules that are used for security purposes
  • data: the modules that only deal with data (no views, no forms, …)

However, it does not mean that YOU HAVE to use ALL these names: you could take the above example and get rid of the ‘broker’ group, or any other group if you don’t need it. You can also put all your packages in one group called ‘app_module’

In the future it will maybe be possible to give the names you want, by associating them with the previous mentioned one in some way, but for now you can’t.

Now all you need to do is to add a link somewhere on your pages, like this:

<a href="{% url "view_last_matrix" %}">
    Click to see the last generated matrix, or to generate one if there are not.

<!-- or like this, matching the above example: -->

<a href="/darchan/view_matrix/">
    Click to see the last generated matrix, or to generate one if there are not.

Please check django-archan’s file to see the other available URLs.

Release history Release notifications

This version
History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_archan-0.0.4-py27.py33.py34-none-any.whl (13.7 kB) Copy SHA256 hash SHA256 Wheel 2.7 Apr 7, 2015
django-archan-0.0.4.tar.gz (17.6 kB) Copy SHA256 hash SHA256 Source None Apr 7, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page