Skip to content

jesnie/hvorfra

Repository files navigation

hvorfra

A python library for inspecting the caller.

Minimal example

from hvorfra import assignment_name


def f() -> int:
    target = assignment_name()
    print(f"The result of this function is going to be assigned to: '{target}'.")
    return 42


some_variable_name = f()
some_other_variable_name = f()

prints

The result of this function is going to be assigned to: 'some_variable_name'.
The result of this function is going to be assigned to: 'some_other_variable_name'.

About

Python Framework for inspecting callers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •