Install & Compatibility
Where this runs
tested against v0.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
version_info
✓ from ipython_genutils import version_info
✗ from ipython_genutils.version import version_info
This quickstart demonstrates importing and using a few common utilities from ipython-genutils, such as checking its version, verifying Python 3 compatibility, and retrieving the IPython directory path. It highlights that the library's functions are typically low-level or superseded.
from ipython_genutils.version import version_info
from ipython_genutils.py3compat import PY3
from ipython_genutils.path import get_ipython_dir
print(f"ipython-genutils version: {'.'.join(map(str, version_info))}")
print(f"Running on Python 3: {PY3}")
# Note: This path utility is largely internal to IPython/Jupyter now.
# For new projects, consider `jupyter_core.paths` or `pathlib`.
ipython_dir = get_ipython_dir()
print(f"Detected IPython directory (if configured): {ipython_dir}")
Debug
Known issues
deprecatedThis library is considered vestigial and is no longer actively maintained. Its utilities have largely been superseded by modern Python standard library features (e.g., `pathlib`, `tempfile`) or integrated into other active projects (e.g., `jupyter_core.paths` for path utilities).fixNew projects should avoid using `ipython-genutils` directly. Migrate to `pathlib`, `tempfile`, or `jupyter_core.paths` as appropriate for similar functionality.
affects: 0.2.0 and prior
gotchaDue to its lack of maintenance, `ipython-genutils` does not receive updates for new Python versions. While it currently works on recent Python 3, future Python versions may introduce incompatibilities that will not be addressed.fixRely on standard library features or actively maintained third-party libraries for similar functionality to ensure long-term compatibility and security patches.
affects: 0.2.0 and prior, especially on Python 3.8+
gotchaThe utilities within `ipython-genutils` were extracted from IPython's internal codebase and are generally low-level. They are not intended for direct end-user application development in most cases and may have unexpected edge cases or limited scope.fixReview the source code of specific utilities before use to understand their purpose and limitations. Prefer higher-level abstractions or actively maintained libraries where available.
affects: All versions
Upgrade
Version history
0.2.0latest on PyPI · released Mar 13, 2017
Audit
Dependencies
No dependency data recorded yet.