Published
Print versions of imported packages.
pip install session-info2
Package Downloads
Authors
Project URLs
Requires Python
>=3.10
Dependencies
- click
!=8.3; extra == "docs" - furo
; extra == "docs" - hatch
; extra == "docs" - ipywidgets
; extra == "docs" - myst-nb
; extra == "docs" - numpy
; extra == "docs" - session-info
; extra == "docs" - sphinx
; extra == "docs" - sphinx-autodoc-typehints
; extra == "docs" - sphinx-codeautolink
; extra == "docs" - ipywidgets
; extra == "jupyter" - ipywidgets
; extra == "notebook" - numpy
; extra == "notebook" - session-info
; extra == "notebook" - coverage
[toml]>=6.5; extra == "test" - ipykernel
; extra == "test" - jupyter-client
; extra == "test" - pytest
; extra == "test" - pytest-asyncio
; extra == "test" - pytest-md
; extra == "test" - pytest-subprocess
; extra == "test" - testing-common-database
; extra == "test"
session-info2
Installation
pip install session-info2
Usage
See https://session-info2.readthedocs.io/ In short:
Use the session-info CLI program (see session-info -h) or use it programmatically:
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