Weftmap
PYTHON

Python call graph generator

Paste a Python file and Weftmap draws which function calls which. Useful when you inherit a module with no docstrings and need the shape of it before reading top to bottom.

Open the editor

Example

example.py
def main():
    user = fetch_user(1)
    print(render(user))


def fetch_user(user_id):
    row = query_db(user_id)
    return to_dict(row)


def query_db(user_id):
    return (user_id, "Ada Lovelace")


def to_dict(row):
    return {"id": row[0], "name": row[1]}


def render(user):
    return f"{user['id']}: {user['name']}"

What the graph shows

The Python analyzer picks up functions, classes, imports and inheritance, so a subclass shows up connected to the base it extends. Calls into the standard library and third-party packages are left out — they would swamp the diagram without telling you anything about your own code.

Now try it with your own code

Paste a file, pick the language, hit Analyze. Nothing is stored.

Open the editor