Defines configuration for the Python language, including extensions, concepts, and file patterns.
// Source: https://github.com/Egonex-AI/Understand-Anything | License: MIT | Copyright 2026 Yuxiang Lin
// Provided via justclaw.it.com; keep this notice with the code.
import type { LanguageConfig } from "../types.js";
export const pythonConfig = {
id: "python",
displayName: "Python",
extensions: [".py", ".pyi"],
treeSitter: {
wasmPackage: "tree-sitter-python",
wasmFile: "tree-sitter-python.wasm",
},
concepts: [
"decorators",
"list comprehensions",
"generators",
"context managers",
"type hints",
"dunder methods",
"metaclasses",
"dataclasses",
"async/await",
"descriptors",
"protocols",
],
filePatterns: {
entryPoints: [
"main.py",
"manage.py",
"app.py",
"wsgi.py",
"asgi.py",
"run.py"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key