{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/7"}],"enrichment":{"capability":"Provides three utility functions\u2014try_import, try_imports, and safe_hasattr\u2014that extend Python's standard library to handle optional imports and safe attribute checking.","skillfed_tags":["import-utilities","stdlib-extension"],"use_cases":["Gracefully handle optional dependencies in a library without try-except boilerplate","Attempt imports from multiple sources and use the first available one","Check for attribute existence on objects with properties that have side effects","Reduce defensive import patterns in helper modules"],"what_it_does":"extras is a small standard-library extension module originally factored out from testtools. It provides three utility functions for safer and more flexible attribute and import handling: try_import attempts to import a module and returns None on failure, try_imports tries a sequence of imports and returns the first successful one, and safe_hasattr checks for attribute existence without triggering property side effects.\n\nThe package has no runtime dependencies and installs as a pure-Python wheel with low friction. It is intended for developers who want cleaner code when dealing with optional dependencies or when they need to check for attributes in ways that avoid unintended side effects from property getters.","worth_installing":"Yes, if you need safe optional-import handling or attribute checking without side effects. The package is stable, has no dependencies, and carries permissive licensing. However, the last release was 2016-05-18 and the codebase is aging; verify that its behavior aligns with your Python version and use case before adopting it in new projects."},"id":"extras","links":{"html":"https://skillfed.io/packages/extras","md":"https://skillfed.io/packages/extras.md","pypi":"https://pypi.org/project/extras/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2016-05-18","license_spdx":null,"license_treatment":"permissive","name":"extras","python_support":"unspecified","summary":"Useful extra bits for Python - things that shold be in the standard library"},"popularity":{"monthly_downloads":599330,"position":5829,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
