session-info2
Print versions of imported packages.
Decision gist · record as of 2026-08-14
Yes. Low install friction, no dependencies, active maintenance, and no known vulnerabilities. The copyleft license (MPL-2.0) is permissive for use and modification. Useful for anyone working in notebooks or scripts who needs to track or document their environment state.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later.
- Low friction: pure Python wheel with no runtime dependencies.
- Active maintenance with last commit 2026-08-11.
License · maintenance · safety
MPL-2.0 (copyleft) — Licensed under MPL-2.0 (copyleft). You may use and modify the package freely, but any modifications must be released under the same license if distributed.
last release 2026-08-04 (10 days) · last repo commit 2026-08-11 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,055,275 downloads/mo, #4,433 on PyPI
Alternatives
Verify before relying
pip install session-info2
from session_info2 import session_info
session_info()- Whether the CLI tool (`session-info` command) works identically to the programmatic API or has different output modes.
- How the package handles packages installed in editable mode or from non-standard sources.
- Performance characteristics when run on environments with hundreds of installed packages.
What it is and what it does
session-info2 is a utility for capturing and printing the versions of all packages imported in your Python environment. It works both as a command-line tool and as a library you can call from scripts or notebooks. The core use case is documenting your environment's dependency state for reproducibility—particularly useful in Jupyter notebooks where you want to record what versions were active when you ran an analysis.
The package has no runtime dependencies and works by introspecting the imported modules in your current session. You can call it with options to include or exclude OS info, list indirect dependencies, or format the output in different ways. It supports Python 3.12 and later, including PyPy, and is actively maintained.
Use it for
- Document the exact package versions used in a Jupyter notebook for reproducibility and sharing.
- Generate a dependency snapshot at the start of a script to include in logs or reports.
- Verify that a specific package version is loaded in your current session before running code.
- Compare environment states across different machines or CI/CD runs by capturing session info at key points.
- Include environment metadata in bug reports or issue discussions to help others reproduce problems.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, no dependencies, active maintenance, and no known vulnerabilities. The copyleft license (MPL-2.0) is permissive for use and modification. Useful for anyone working in notebooks or scripts who needs to track or document their environment state.
Install
session-info2 on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Active maintenance with last commit 2026-08-11. Requires Python 3.12 or later.
Requires Python 3.12 or later.
License in practice
Licensed under MPL-2.0 (copyleft). You may use and modify the package freely, but any modifications must be released under the same license if distributed.
Quickstart
pip install session-info2
from session_info2 import session_info
session_info()
Verify before relying
- Whether the CLI tool (`session-info` command) works identically to the programmatic API or has different output modes.
- How the package handles packages installed in editable mode or from non-standard sources.
- Performance characteristics when run on environments with hundreds of installed packages.
Package facts
| License | MPL-2.0 copyleft |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,055,275 / month, #4,433 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTyping :: Typed |
Evidence: session_info2-0.4.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
An agent finds packages by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language. Give your agent the search over MCP.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also session-info · ipynb · importnb · jupytext · scooby · ipynbname · nb-clean · mkdocs-jupyter · semantic-version · jupyter