Skip to content

sourcegraph/python-imports-search

Repository files navigation

Python imports search

⚠️ Deprecation notice

Sourcegraph extensions have been deprecated with the September 2022 Sourcegraph release. Learn more.

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:

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 and check out some Sourcegraph extension samples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7