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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2585b3a67b7d446efca9c785d39a76c76318bda893ee5bf3aeb9fd58bfb378b7
|
|
| MD5 |
e88197a882ff3fb3608f5d8d906296b1
|
|
| BLAKE2b-256 |
345a19c05a475bfab0caf4dcec8409034e45465bb621fb02b9e82013bdee8b72
|
Provenance
The following attestation bundles were made for venv_init-1.1.1.tar.gz:
Publisher:
release.yml on HaloMaster6482/venv-init
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
venv_init-1.1.1.tar.gz -
Subject digest:
2585b3a67b7d446efca9c785d39a76c76318bda893ee5bf3aeb9fd58bfb378b7 - Sigstore transparency entry: 2233065150
- Sigstore integration time:
-
Permalink:
HaloMaster6482/venv-init@dbf968855f4ec672ffb324b3c13aa57a4da9dc08 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/HaloMaster6482
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dbf968855f4ec672ffb324b3c13aa57a4da9dc08 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20db7f78b15d5341c435a0e6cd0a1ce61d3147f74269c8f87015191e851a0414
|
|
| MD5 |
79805403cb76310ce51f365543b97fb1
|
|
| BLAKE2b-256 |
871af2dddd4b31e41aee02da4c4e1442bf973d50286b4a76626668670a3de7ba
|
Provenance
The following attestation bundles were made for venv_init-1.1.1-py3-none-any.whl:
Publisher:
release.yml on HaloMaster6482/venv-init
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
venv_init-1.1.1-py3-none-any.whl -
Subject digest:
20db7f78b15d5341c435a0e6cd0a1ce61d3147f74269c8f87015191e851a0414 - Sigstore transparency entry: 2233065716
- Sigstore integration time:
-
Permalink:
HaloMaster6482/venv-init@dbf968855f4ec672ffb324b3c13aa57a4da9dc08 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/HaloMaster6482
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dbf968855f4ec672ffb324b3c13aa57a4da9dc08 -
Trigger Event:
push
-
Statement type: