PAV
PAV is an advanced Python command-line tool that simplifies virtual environment (venv) management and streamlines project execution. With PAV, you can run files, manage dependencies, and execute commands in a virtual environment without needing to manually activate the venv. PAV automates environment detection, activation, and optimized dependency handling.
Installation
Use the package manager pip to install PAV.
pip install pav
Usage
You can use PAV through terminal. Here's a quick example:
pav file main.py
For a complete list of available commands:
pav --help
Features
file
It takes the file path for argument and if the venv path was not given manually, it detects the venv path if it exists and activates it and runs the Python file (If the venv is located in a specific path that the program may not automatically recognize, it is better to enter it manually)
Here are some examples:
pav file ./project/main.py
To specify the venv path manually:
pav file ./project/main.py --venv-path ../venv_dir
If the file you want to execute needs to take some arguments, you can use --arguments:
pav file ./project/main.py --arguments "create --name file_name -u"
cmd
It works like "file" except that it takes a command as input and executes it after activating venv.
pav cmd "pip install lib"
shell
It opens a shell with activate venv to execute commands.
pav shell
> pip list
Package Version
------------- -------
numpy 2.0.0
pip 24.0
reqs
It finds requirements for a project. It also can install them after finding. example:
pav reqs -p core -e false -o
Options
| Option | Description |
|---|---|
-p, --project |
Path to project for finding requirements (default: current directory .) |
-s, --standard |
Filter based on Python's built-in modules (true | false) |
-e, --exist |
Filter based on modules installed in venv (true | false) |
--version |
Find module versions from venv or PyPi |
-o, --output |
Save results to a file (default: requirements.txt) |
-i, --install |
Install the found packages in venv |
-E, --extension |
Specify the file extensions to search for modules. You can provide multiple extensions (choices: py, pyw, ipynb - default: py) |
Requirements
- Python 3.6 or higher
- Click library for command-line handling (automatically installed as a dependency)
Metadata
Release files for pav 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pav-1.5.0.tar.gz | 21.7 kB | Without provenance | Details for pav-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pav-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for pav-1.5.0-py3-none-any.whl |
Total release size: 42.8 kB
Release files / pav-1.5.0.tar.gz
| Download URL | pav-1.5.0.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b2a6fa0b9ac9a6b96581076c5669eb301de5bd0dcd7d6c88d59d05fcb59af9d
|
|
BLAKE2b-256 checksum How to use checksums |
97b4e4618d1cb97dd5b83d5d11a0ae978f0e3009f0d0a1f842e795d6895ca7f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|
Release files / pav-1.5.0-py3-none-any.whl
| Download URL | pav-1.5.0-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80077dab243ff4cd371f955fa9151cc5685aabe88f8cded5f44da0ee89ee875e
|
|
BLAKE2b-256 checksum How to use checksums |
9426420b9958aa06eb9a73b33d3835169b71d03c28e34bb47bf381f70a512a2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|
Security for pav 1.5.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.