Below is an example of auto completion using Jedi in Python.
In [2]:
import jedi
source = """
def foo(bar: str):
print(bar.lo)
""".strip()
script = jedi.Script(source, 2, len(" print(bar.lo"))
print(script.completions())
References¶
In [ ]: