Print versions of imported packages.
Project Links
Meta
Author: Philipp A.
Requires Python: >=3.10
Classifiers
Development Status
- 4 - Beta
Programming Language
- Python
- Python :: 3 :: Only
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
Typing
- Typed
session-info2
Installation
pip install session-info2
Usage
See https://session-info2.readthedocs.io/ In short:
Import whayever your script/notebook relies on, as well as session_info.
>>> httpx
>>> from session_info2 import session_info
Some usage examples (see links above for more). Minimal output:
>>> session_info(os=False)
httpx 0.28.1
---- ----
Python 3.12.5 (main, Aug 6 2024, 19:08:49) [Clang 16.0.6 ]
Updated 2024-12-20 14:22
With indirect dependencies:
>>> session_info(dependencies=True)
httpx 0.28.1
---- ----
anyio 4.7.0
h11 0.14.0
sniffio 1.3.1
session-info2 0.1.2
certifi 2024.12.14
httpcore 1.0.7
appdirs 1.4.4
---- ----
Python 3.12.5 (main, Aug 6 2024, 19:08:49) [Clang 16.0.6 ]
OS macOS-15.1.1-arm64-arm-64bit
Updated 2024-12-20 14:24
Oct 09, 2025
0.2.3
Sep 12, 2025
0.2.2
Aug 20, 2025
0.2.1
Jul 24, 2025
0.2
Dec 17, 2024
0.1.2
Dec 12, 2024
0.1.1
Nov 22, 2024
0.1