Skip to content

FFY00/python-introspection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-introspection PyPI version

pre-commit.ci status Discord

Python library and CLI tool to introspect Python installations.

Installation

$ pip install python-instrospection

Usage (CLI)

$ python -m python_introspection (options) <command> ...
Option Description
--interpreter <path> Selects the Python interpreter to instrospect.
--output <path> Write introspection data to the specified file.

generate-build-details

Generated a build-details.json file (from PEP 739).

$ python -m python_introspection generate-build-details (options)
Option Description
--schema-version <value> Schema version of the build-details.json file to generate.
--relative-paths Whether to specify paths as absolute, or as relative paths to base_prefix.

A full example, putting together the base --interpreter and --output options with the options to generate-build-details:

$ python -m python_introspection --interpreter $(which python) --output build-details.json generate-build-details --relative-paths

About

Python library and CLI tool to introspect Python installations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages