Skip to main content

venvm

Select a Python virtual environment and run scripts or modules with it.

PyPI version Python versions Tests License

English | Türkçe

Installation

Install venvm from PyPI:

python -m pip install venvm

Usage

Select an environment and script interactively:

venvm

In an interactive terminal, use the arrow keys and Enter or type an option number and press Enter. Numbered prompts remain available in non-interactive terminals.

Run a script with arguments:

venvm app.py --port 8000

Select an environment explicitly or use the system interpreter:

venvm --env .venv app.py
venvm --system app.py

Run a Python module:

venvm --env .venv --module pytest -q
venvm --system --module http.server 8000

Values after --module are passed directly to the module. Place environment options before --module.

List detected environments without running anything:

venvm --list

--yes accepts confirmation prompts. If multiple environments exist, .venv is used when available. Otherwise, specify the environment with --env.

Use --install-deps to install detected dependency sources without additional confirmation. --yes alone never installs dependencies automatically.

The command scans direct children of the current directory for pyvenv.cfg and the platform-specific Python executable. If no environment exists, it offers to create .venv. The system Python interpreter remains available as an option.

After creating an environment, venvm detects requirements.txt, requirements-dev.txt, and pyproject.toml. It asks for confirmation before installing each source.

Project Configuration

Add .venvm.json to the project root to define defaults:

{
  "environment": ".venv",
  "script": "app.py"
}

For a module:

{
  "environment": ".venv",
  "module": "pytest"
}

script and module cannot be used together. Command-line values override the configuration file. When run from a subdirectory, venvm searches parent directories for the nearest .venvm.json and uses its directory as the project root.

Development

Install the repository in editable mode:

python -m pip install -e .

Run the standard-library test suite:

python -m unittest discover -s tests

Roadmap

Planned configuration and project management work is tracked in .github/TODO.md.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

venvm-0.3.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

venvm-0.3.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file venvm-0.3.0.tar.gz.

File metadata

  • Download URL: venvm-0.3.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for venvm-0.3.0.tar.gz
Algorithm Hash digest
SHA256 94a2df270fe7e6ff7c043967e3e6d776316cde0a7ed61647b9a1aae35df28be3
MD5 dfca89792f14d54a0a0f59eb7f439cc3
BLAKE2b-256 ffd0fc8d938a5f56cedb507300b02ed2530ecb1f2feb8416fcc67e75eedbf939

See more details on using hashes here.

Provenance

The following attestation bundles were made for venvm-0.3.0.tar.gz:

Publisher: release.yml on fastfingertips/venvm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file venvm-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: venvm-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for venvm-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a917fc562098151cbc0b17496e95548b36d3f4d2cd1b40c9214df96668985a4
MD5 bb0fe49d69b16b5a5a4686f7878154fd
BLAKE2b-256 57a7881690b8023f9ad8197c797c8908d3f87f0ee7d8f0d8daeb598b0512f64d

See more details on using hashes here.

Provenance

The following attestation bundles were made for venvm-0.3.0-py3-none-any.whl:

Publisher: release.yml on fastfingertips/venvm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page