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

Metadata

Release files for venv-init 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for venv-init 1.1.1
File Size Uploaded
venv_init-1.1.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for venv-init 1.1.1
File Interpreter ABI Platform
venv_init-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / venv_init-1.1.1.tar.gz

Download URL venv_init-1.1.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2585b3a67b7d446efca9c785d39a76c76318bda893ee5bf3aeb9fd58bfb378b7
BLAKE2b-256 checksum
How to use checksums
345a19c05a475bfab0caf4dcec8409034e45465bb621fb02b9e82013bdee8b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.

Transparency log

Release files / venv_init-1.1.1-py3-none-any.whl

Download URL venv_init-1.1.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20db7f78b15d5341c435a0e6cd0a1ce61d3147f74269c8f87015191e851a0414
BLAKE2b-256 checksum
How to use checksums
871af2dddd4b31e41aee02da4c4e1442bf973d50286b4a76626668670a3de7ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page