Skip to main content

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)

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)

Source distribution for pav 1.5.0
File Size Uploaded
pav-1.5.0.tar.gz 21.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pav 1.5.0
File Interpreter ABI Platform
pav-1.5.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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