PAV is a Python library with features to easily work with venv
Project description
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 |
Requirements
- Python 3.6 or higher
- Click library for command-line handling (automatically installed as a dependency)
Project details
Release history Release notifications | RSS feed
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 pav-1.4.1.tar.gz.
File metadata
- Download URL: pav-1.4.1.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd5f7da93ae348b54aa06b33e574a95f0cc9d064f87b0e6b034e58b5b6e64f65
|
|
| MD5 |
8467d9e3e56ecd977a3b24c6c6146066
|
|
| BLAKE2b-256 |
45eed76c1a1d7e496e8c82714d81c3816f33f45758c3c6064e38fede0a857d72
|
File details
Details for the file pav-1.4.1-py3-none-any.whl.
File metadata
- Download URL: pav-1.4.1-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5690216aefefa10d207983a7f4f00745442ea13c3f139934275918b6b20a4e29
|
|
| MD5 |
ba497ecf9fc47b222dd6a34638564dd4
|
|
| BLAKE2b-256 |
175109f7a3dfc8f11998fdeac171ae95ddbe301d52465f0c8381822b20aededf
|