{"modulePath":"github.com/Luqueee/kivgraph","version":"v0.10.4","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package pythonloader\n\nPackage pythonloader turns the Python code of a registered repository into semantic facts, through Pyright where it is available and through a fallback worker where it is not.\n\n## Constants\n\n```go\nconst PayloadVersion = 1\n```\n\n## Functions\n\n```go\nfunc ProducerFile(command, analyzerCommand, analyzerMode, pythonPath, workingDirectory string) string\n```\nProducerFile is the file whose content decides the facts of one pass: the bundled script for the adapters that run one, or the resolved executable for an external producer. The fact cache fingerprints it, so a change to the producer forces a re-observation instead of reusing what the previous producer said.\n\nIt resolves with the same rules as resolveCommand, on purpose: two resolution rules is how a cache ends up keyed on a file nobody runs. Editing the exact adapter used to leave the fingerprint untouched, and a rebuild republished facts the current code would not produce.\n\n```go\nfunc Run(ctx context.Context, command, pythonPath string, repository workspace.Repository, workingDirectory string) (facts.SemanticPayload, error)\n```\nRun executes the configured Python indexer and decodes its versioned facts. When scip-python is not installed, the repository's deterministic AST worker is used as a development fallback; it intentionally reports dynamic cases as unresolved rather than guessing.\n\n```go\nfunc RunWithOptions(ctx context.Context, options Options, repository workspace.Repository, workingDirectory string) (facts.SemanticPayload, error)\n```\nRunWithOptions runs a type-aware producer when exact mode is requested and otherwise preserves the hermetic bundled fallback. External producers use the same JSON payload contract, so the normalizer remains the single source of durable identities and graph semantics.\n\n## Types\n\n```go\ntype Options struct {\n\tIndexerCommand   string\n\tAnalyzerCommand  string\n\tAnalyzerMode     string\n\tPythonPath       string\n\tIncludeTests     bool\n\tIncludeGenerated bool\n\tIncludeExternal  bool\n}\n```\nOptions configures one Python facts producer. AnalyzerMode is \\`fallback\\` for the bundled AST worker or \\`exact\\` for a configured type-aware producer.\n\n","path":"github.com/Luqueee/kivgraph/internal/pythonloader","name":"pythonloader","synopsis":"Package pythonloader turns the Python code of a registered repository into semantic facts, through Pyright where it is available and through a fallback worker where it is not.","isRedistributable":true}
