MCPcopy Index your code
hub / github.com/brettcannon/python-launcher

github.com/brettcannon/python-launcher @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
88 symbols 160 edges 12 files 15 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The Python Launcher for Unix

Motivation

Launch your Python interpreter the lazy/smart way!

This project is an implementation of the py command for Unix-based platforms (with some potential experimentation for good measure 😉).

Example

Typical usage would be:

py -m venv .venv
py ...  # Normal `python` usage.

This creates a virtual environment in a .venv directory using the latest version of Python installed. Subsequent uses of py will then use that virtual environment as long as it is in the current (or higher) directory; no environment activation required (although the Python Launcher supports activated environments as well)!

Core symbols most depended-on inside this repo

change
called by 8
tests/common/mod.rs
touch_file
called by 7
tests/common/mod.rs
log_exit
called by 3
src/main.rs
supports
called by 3
src/lib.rs
all_executables
called by 3
src/lib.rs
version_from_flag
called by 3
src/cli.rs
parse_python_shebang
called by 3
src/cli.rs
find_executable
called by 3
src/cli.rs

Shape

Function 67
Method 14
Class 4
Enum 3

Languages

Rust97%
Python3%

Modules by API surface

src/lib.rs31 symbols
src/cli.rs19 symbols
tests/main_tests.rs11 symbols
tests/cli_system_tests.rs10 symbols
tests/common/mod.rs8 symbols
src/main.rs3 symbols
tests/lib_system_tests.rs2 symbols
release/version.py2 symbols
release/tarball.py1 symbols
benches/list.rs1 symbols

For agents

$ claude mcp add python-launcher \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page