$npx skillfedfor your agent

extras

Useful extra bits for Python - things that shold be in the standard library

With conditionsPyPI Software DevelopmentReleased May 2016599.3K downloads / moUNKNOWNPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — extras-1.0.0-py2.py3-none-any.whl
v1.0.0 · released 2016-05-18

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a pure-Python wheel.
  • Maintenance is aging: last release was 2016-05-18 and repository has not been updated since 2026-02-03, though it remains unarchived.

License · maintenance · safety

UNKNOWN (permissive) — Distributed under the MIT license, which is permissive and carries no restrictions on commercial or private use.

last release 2016-05-18 (3740 days) · last repo commit 2026-02-03 · 4 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 599,330 downloads/mo, #5,829 on PyPI

Verify before relying

pip install extras

import extras
mod = extras.try_import('some_optional_module')
has_attr = extras.safe_hasattr(obj, 'attribute_name')
  • Whether try_import and try_imports handle exceptions beyond ImportError
  • Whether safe_hasattr differs meaningfully from getattr with a default in modern Python
  • Current compatibility with Python 3 versions beyond what the fact sheet specifies
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

extras on PyPI

Before you install

Low install friction with a pure-Python wheel. Maintenance is aging: last release was 2016-05-18 and repository has not been updated since 2026-02-03, though it remains unarchived.

License in practice

Distributed under the MIT license, which is permissive and carries no restrictions on commercial or private use.

Quickstart

pip install extras

import extras
mod = extras.try_import('some_optional_module')
has_attr = extras.safe_hasattr(obj, 'attribute_name')

Verify before relying

  • Whether try_import and try_imports handle exceptions beyond ImportError
  • Whether safe_hasattr differs meaningfully from getattr with a default in modern Python
  • Current compatibility with Python 3 versions beyond what the fact sheet specifies

Package facts

LicenseUNKNOWN permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 3,740 days since the last release
Last repo commit
First released
Downloads599,330 / month, #5,829 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3

Evidence: extras-1.0.0-py2.py3-none-any.whl

Tags

Capabilities
optional import handlingsafe attribute checkingconditional imports pythontry import utilitystandard library extensionssafe hasattrimport fallback
Topics
import-utilitiesstdlib-extension

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “optional import handling”

  • extrasProvides three utility functions—try_import, try_imports, and…
  • lazy-importsDefers loading of module attributes and their dependencies until…
  • lazy-loaderLazy-loader defers the import of subpackages and external libraries…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also lazy-imports · mock · testtools · none · streamlit-extras · urllib3-secure-extra · types-mock · emport · SQLAlchemy-Utils · pyflakes