# python-imports-search **Repository Path**: mirrors_sourcegraph/python-imports-search ## Basic Information - **Project Name**: python-imports-search - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2025-12-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Python imports search ## ⚠️ Deprecation notice **Sourcegraph extensions have been deprecated with the September 2022 Sourcegraph release. [Learn more](https://docs.sourcegraph.com/extensions/deprecation).** The repo and the docs below are kept to support older Sourcegraph versions. ## Description Lets you easily search for all files using a python module. Adds a new operator `py.imports:` for all import statements of the module passed to the operator. NOTE: regular expression search mode is required for the `py.imports` keyword to work. The extension automatically appends `patternType:regexp` to queries containing `py.imports`. This extension also adds a \"See all usages\" link at the end of import statement lines, which will execute the `py.imports` search for the relevant module. To enable "See all usages" links, add `"pyImports.showAllUsagesLinks": true` to your user settings. ## Prerequisites Sourcegraph extensions are written in TypeScript and are distributed as bundled JavaScript files that run on the client. For creation, publishing, and viewing, you need: - **Creation**: Install [Node.js](https://nodejs.org). - **Publishing**: Install the [Sourcegraph CLI (`src`)](https://github.com/sourcegraph/src-cli#installation) and create a [Sourcegraph.com account](https://sourcegraph.com/sign-up). - **Viewing**: Install the Sourcegraph extension for [Chrome](https://chrome.google.com/webstore/detail/sourcegraph/dgjhfomjieaadpoljlnidmbgkdffpack) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/sourcegraph/). ## Set up ``` npm install ``` ## Lint and type check ``` npm run tslint npm run typecheck ``` ## Publish ``` src extensions publish ``` ## Sourcegraph extension API Visit the [Sourcegraph extension documentation](https://github.com/sourcegraph/sourcegraph-extension-docs) and check out some [Sourcegraph extension samples](https://github.com/sourcegraph/sourcegraph-extension-samples).