Callable.source_code()

Returns the source code of the function/modifier.

source_code() → str

Example

from glider import *
def query():
  functions = Functions().exec(1,1)

  for function in functions:
    # Aggregate the code of each function along with their name
    print(f"function: {function.name}, code: {function.source_code()}")

  return functions

Example output

Last updated