Developing extensions for Inkscape

Inkscape logoThis document is intended to be a guide about how to develop extensions for Inkscape (a professional vector graphics editor). Although it is possible to find some information about how to develop extensions for Inkscape, the docs are scarce, old and (in my opinion) diffult to follow. Please note that THIS IS A WORK IN PROGRESS and there is still a lot write about it.

def factorial(x):
    assert x >= 0 and x % 1 == 0, "x debe ser un entero mayor o igual a 0."
    if x == 0:
        return 1
    else:
        return x * factorial(x - 1)