envscan — CLI to discover Python environments
envscan is a small, open-source command-line tool that scans a directory tree and reports the Python environments it finds — venv, virtualenv, uv, and conda, plus pipenv/poetry and pyenv markers — in a clean, aligned table.
Install
pip install envscan
For local development (editable install from source):
python -m pip install -e .
Quick start
- Scan the current directory:
envscan
- Scan a specific directory and print JSON:
envscan --path ./project --format json
- Show each environment's Python version:
envscan --python-version
- List installed packages in each environment:
envscan --packages
- Search for a specific library across every environment found (optionally pinned to an exact version):
envscan --search "monai"
envscan --search "monai==1.2.7"
Command reference
--path PATH: Path to scan (default.)--depth INT: Max recursion depth (default3)--format {text,json}: Output format (defaulttext)--include-hidden: Include hidden files and directories (.venvis always scanned regardless of this flag, since it's the standard name across venv/virtualenv/uv)--follow-symlinks: Follow symbolic links--python-version: Show each environment's Python version (runs its interpreter; failures are shown inline in the table, no--verboseneeded)--packages: List installed packages in each environment (runs pip/conda/uv)--search QUERY: Only show environments with a given library installed, e.g.--search "monai"or--search "monai==1.2.7"(exact-version matching only —>=,<=, etc. are not supported)--json-file PATH: Write JSON output to the given file--verbose: Verbose output (extra diagnostic logging)
Notes
- By default envscan uses conservative file-marker heuristics (e.g., presence of
pyvenv.cfg,conda-meta,Pipfile,.python-version) and does not execute any discovered interpreters. Use--python-versionor--packagesto opt into running an environment's own interpreter/pip/conda/uv.
Contributing
Contributions welcome — open a PR with tests.
License
MIT
Metadata
Release files for envscan 0.2.1
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 |
|---|---|---|---|---|
| envscan-0.2.1.tar.gz | 17.6 kB | Without provenance | Details for envscan-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| envscan-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for envscan-0.2.1-py3-none-any.whl |
Total release size: 31.6 kB
Release files / envscan-0.2.1.tar.gz
| Download URL | envscan-0.2.1.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea0b79211d678c71659e57cdb6645d82746c4d7b16412b5156c2a6580299bef5
|
|
BLAKE2b-256 checksum How to use checksums |
aa241a4e34bad7970e225c8b3ce99b9488ec6431ca9579e82c2f28a5b8fb23b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / envscan-0.2.1-py3-none-any.whl
| Download URL | envscan-0.2.1-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf98c1003b0853379efec716d524ea4a38dbb98be324f1f1246986083a89af96
|
|
BLAKE2b-256 checksum How to use checksums |
bb54c959690ebde85b40256add9851e4884d1091519a6006e0cd134c6ecfebcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Security for envscan 0.2.1
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.