PeaSTB - Python Environment Analyzer
Project description
PeaSTB - Python Environment Analyzer
PeaSTB inspects your current Python environment and prints a structured report.
What It Reports
PeaSTB can report the following information:
- Report metadata: date, computer name, and user name
- Operating system information: system, release, version, and architecture
- Used Python information: executable path and Python version
- Environment paths on the operating system level: reachable Python and pip commands with resolved paths
- Pip executable paths: detected pip and pip3 executables
- Version information: output of python --version, pip --version, and pip3 --version
- Installed packages: package name mapped to version and installation path
- Module search paths: Python module search path entries from sys.path
- Site packages paths: paths returned by site.getsitepackages()
- Virtual environment status: whether a virtual environment is active and where it is located
If you provide --packagefile, PeaSTB also adds:
- Package import check: per-package import result
- Package import summary: counts of successful and failed imports
Installation
Install from PyPI with pip:
python -m pip install peastb
Usage
Show the command-line help:
peastb --help
Help text:
usage: peastb [-h] [--version] [--analyze] [--outputfile OUTPUTFILE] [--outputfileonly]
[--packagefile PACKAGEFILE]
PeaSTB - Python Environment Analyzer
options:
-h, --help show this help message and exit
--version Shows the current version of the Python Environment Analyzer.
--analyze Analyzes the Python Environment.
--outputfile OUTPUTFILE
Writes the analysis output to the given file path.
--outputfileonly Writes output only to the output file. Requires --outputfile.
--packagefile PACKAGEFILE
Path to a text file with package names (one package per line) to check
imports for.
Run a full analysis with package checks:
peastb --analyze --packagefile sample_packages.txt
You can also run the module directly:
python -m peastb.pea01_main --analyze --packagefile sample_packages.txt
Package File Example
# sample package list
sys
colorama
non_existing_demo_package
Version
Current version: 0.1.0a1
License
MIT © Markus Breuer.
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 peastb-0.1.0a2.tar.gz.
File metadata
- Download URL: peastb-0.1.0a2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.8.0-124-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826ae61d4db0da88debc5c19d5fe7cca4eaeabd4195651cdc242e0a1b8711d3c
|
|
| MD5 |
7be94dd909ba2e1005cbdcdeb153bc2d
|
|
| BLAKE2b-256 |
b3ba55eb8777ba307bc6900df891e5b68f3b48322f5c4b5c04b4af2fb6a010c1
|
File details
Details for the file peastb-0.1.0a2-py3-none-any.whl.
File metadata
- Download URL: peastb-0.1.0a2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.8.0-124-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de8cd0e6d738204d8216c953e7656dbdbb7dc10365c418ebb4ba96ce4c16b4f1
|
|
| MD5 |
56ba3d72af8375107af1a2a134630f10
|
|
| BLAKE2b-256 |
6dadce02a0de65f2308cf4763647655fb3cefbee06eb7aa67d90420236042e1f
|