Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Below is an example of auto completion using Jedi in Python.
import jedi
source = """
def foo(bar: str):
print(bar.lo)
""".strip()
script = jedi.Script(source, 2, len(" print(bar.lo"))
print(script.completions())[<Completion: lower>]