Skip to main content

venv-init

venv-init is a small command-line utility for creating and activating Python virtual environments. On Windows, activation starts a PowerShell session that sets a process-only execution policy before loading the environment's activation script—no machine-wide policy change is made.

Install from PyPI

py -m pip install venv-init

Upgrade an existing installation with:

venv-init --update

Usage

venv-init --help
venv-init --version
venv-init --create [PATH]
venv-init --activate [PATH]
venv-init --update

PATH defaults to .venv in the current directory. Create it first:

venv-init --create

The command asks which installed Python version to use. Press Enter to use the same interpreter that is running venv-init, or enter a version such as 3.11. It shows a success message after creation and clear errors if the requested Python or environment cannot be found.

Then activate it:

venv-init --activate

On Windows, --activate opens a child PowerShell session and runs Set-ExecutionPolicy -Scope Process Bypass before it runs Activate.ps1. The virtual environment stays active until you run deactivate or close that session. The execution-policy setting disappears when the session ends. The PowerShell session also confirms when activation succeeds. --update prints a confirmation when the upgrade completes.

On macOS and Linux, --activate prints the shell command to run, because a program cannot activate an environment in its parent shell.

License

MIT

Download files

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

Source Distribution

venv_init-1.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

venv_init-1.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file venv_init-1.1.1.tar.gz.

File metadata

  • Download URL: venv_init-1.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for venv_init-1.1.1.tar.gz
Algorithm Hash digest
SHA256 2585b3a67b7d446efca9c785d39a76c76318bda893ee5bf3aeb9fd58bfb378b7
MD5 e88197a882ff3fb3608f5d8d906296b1
BLAKE2b-256 345a19c05a475bfab0caf4dcec8409034e45465bb621fb02b9e82013bdee8b72

See more details on using hashes here.

Provenance

The following attestation bundles were made for venv_init-1.1.1.tar.gz:

Publisher: release.yml on HaloMaster6482/venv-init

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

File details

Details for the file venv_init-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: venv_init-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for venv_init-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20db7f78b15d5341c435a0e6cd0a1ce61d3147f74269c8f87015191e851a0414
MD5 79805403cb76310ce51f365543b97fb1
BLAKE2b-256 871af2dddd4b31e41aee02da4c4e1442bf973d50286b4a76626668670a3de7ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for venv_init-1.1.1-py3-none-any.whl:

Publisher: release.yml on HaloMaster6482/venv-init

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