# @codemirror/lang-python [](https://www.npmjs.org/package/@codemirror/lang-python) [ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-python/blob/main/CHANGELOG.md) ] This package implements Python language support for the [CodeMirror](https://codemirror.net/) code editor. The [project page](https://codemirror.net/) has more information, a number of [examples](https://codemirror.net/examples/) and the [documentation](https://codemirror.net/docs/). This code is released under an [MIT license](https://github.com/codemirror/lang-python/tree/main/LICENSE). We aim to be an inclusive, welcoming community. To make that explicit, we have a [code of conduct](http://contributor-covenant.org/version/1/1/0/) that applies to communication around the project. # API Reference
globalCompletion: CompletionSource
Autocompletion for built-in Python globals and keywords.
localCompletionSource(context: CompletionContext) → CompletionResult | null
Completion source that looks up locally defined names in Python code.
pythonLanguage: LRLanguage
A language provider based on the Lezer Python parser, extended with highlighting and indentation information.
python() → LanguageSupport
Python language support.