{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"}],"enrichment":{"capability":"Provides a cross-platform, cross-Python implementation of shutil.which to locate executable commands in the system PATH.","skillfed_tags":["cross-platform","legacy-python"],"use_cases":["Locate system executables in build scripts or deployment tools that run on multiple operating systems.","Check whether a required command-line tool is installed before attempting to invoke it.","Write Python 2.7 compatible code that needs shutil.which functionality without conditional imports.","Verify the full path to a command in cross-platform CLI applications or wrappers."],"what_it_does":"whichcraft is a lightweight shim around Python's shutil.which function designed to work consistently across Windows, macOS, and Linux, and across Python 2.7 and Python 3.x versions. It locates executables in the system PATH and returns their full path as a string, or None if the command is not found.\n\nThe package was originally extracted from the Cookiecutter project to reduce code duplication. It handles cross-platform differences in how the which functionality behaves\u2014for example, some built-in commands like 'date' exist natively on Unix systems but are built-in functions on Windows, which affects the return value. With no runtime dependencies and a simple API, it is useful for scripts and tools that need to find system commands portably.","worth_installing":"Yes, if you need cross-platform which functionality for Python 2.7 or older Python 3 versions. However, modern Python 3.3+ includes shutil.which natively, so this package is most useful for legacy codebases or environments where Python 2.7 support is still required. The package is abandoned since 2019-09-06, so consider whether you can rely on unmaintained code for your use case."},"id":"whichcraft","links":{"html":"https://skillfed.io/packages/whichcraft","md":"https://skillfed.io/packages/whichcraft.md","pypi":"https://pypi.org/project/whichcraft/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-09-06","license_spdx":null,"license_treatment":"permissive","name":"whichcraft","python_support":"unspecified","summary":"This package provides cross-platform cross-python shutil.which functionality."},"popularity":{"monthly_downloads":363070,"position":7227,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.1"}
