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

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.2.0.tar.gz (13.6 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.2.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for venvm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b4a733c79d934a45201fff267667740306d62d81fdea38c902210fce389db5d9
MD5 4276b83474afb5942041914b64ab5886
BLAKE2b-256 87b54b08c15f88dc5d3b83a681048597957db12e7bd20942e84fa4954cabf7cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for venvm-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: venvm-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26350f70f47f576a3768336d227b107f6bcd930089282236d811ac907a6772b0
MD5 ecd43cf52f7dd0531bab91297f71dd2d
BLAKE2b-256 781847c75c32515f4cc07b1735d022051bc9fb22f9acc94e59bc0af6e0aadbc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for venvm-0.2.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