hatchling-autoextras-hook
Hatchling metadata hook to generate all extras
Decision gist · record as of 2026-08-14
Yes, if you use hatchling and want to offer an `all` extra without manual maintenance. The package is actively maintained, has no known vulnerabilities, and low install friction. It is in beta (Development Status :: 4), so expect the API to change before a 1.0.0 release—pin the version in your build-system.requires if stability is critical.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires at least one dynamic field in [project] metadata for Hatchling metadata hooks to trigger.
- Hatchling >= 1.18.0 required.
- Low install friction with a single runtime dependency on hatchling.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is a permissive license; you can use, modify, and distribute this package with minimal restrictions, provided you include the license text and disclaimer.
last release 2025-12-26 (231 days) · last repo commit 2026-08-13
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,275,993 downloads/mo, #4,126 on PyPI
Alternatives
Verify before relying
Add to pyproject.toml:
[build-system]
requires = ["hatchling>=1.18.0", "hatchling-autoextras-hook"]
build-backend = "hatchling.build"
[tool.hatch.metadata.hooks.autoextras]
Then define optional dependencies and install with the generated `all` extra.- Whether the hook works correctly with all Hatchling versions in the >=1.18,<2.0 range or if specific minor versions have known issues.
- Real-world performance impact on build times for projects with many extras.
- Compatibility with Hatchling's other metadata hooks beyond the stated claim that they run in order.
What it is and what it does
hatchling-autoextras-hook is a build-time plugin for hatchling that intercepts your project's metadata during packaging and automatically creates an `all` extra that merges every optional dependency you've defined. It deduplicates and alphabetizes the combined list, so users can install the entire optional feature set with a single command.
The hook runs only during the build process and does not modify your source files or pyproject.toml. It requires hatchling as its sole runtime dependency and works with Python 3.10 or later. Configuration is minimal—just add the hook declaration to your pyproject.toml and ensure you have at least one dynamic field so hatchling's metadata system will invoke it.
Use it for
- Simplify installation for users who want all optional features without listing each extra separately.
- Maintain a single source of truth for optional dependencies while automatically exposing a convenience `all` extra.
- Reduce boilerplate in CI/CD pipelines by using a single `all` extra instead of enumerating multiple extras.
- Ensure consistency across multiple packages by centralizing the `all` extra generation logic.
- Avoid manual maintenance of an `all` extra that can become stale when new optional dependencies are added.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use hatchling and want to offer an `all` extra without manual maintenance.
The package is actively maintained, has no known vulnerabilities, and low install friction. It is in beta (Development Status :: 4), so expect the API to change before a 1.0.0 release—pin the version in your build-system.requires if stability is critical.
Install
hatchling-autoextras-hook on PyPI
Before you install
Low install friction with a single runtime dependency on hatchling. Active maintenance with last commit on 2026-08-13 and no known vulnerabilities.
Requires at least one dynamic field in [project] metadata for Hatchling metadata hooks to trigger. Hatchling >= 1.18.0 required.
License in practice
BSD-3-Clause is a permissive license; you can use, modify, and distribute this package with minimal restrictions, provided you include the license text and disclaimer.
Quickstart
Add to pyproject.toml:
[build-system]
requires = ["hatchling>=1.18.0", "hatchling-autoextras-hook"]
build-backend = "hatchling.build"
[tool.hatch.metadata.hooks.autoextras]
Then define optional dependencies and install with the generated `all` extra.
Verify before relying
- Whether the hook works correctly with all Hatchling versions in the >=1.18,<2.0 range or if specific minor versions have known issues.
- Real-world performance impact on build times for projects with many extras.
- Compatibility with Hatchling's other metadata hooks beyond the stated claim that they run in order.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagehatchling |
| Maintenance | Actively maintained 231 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,275,993 / month, #4,126 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/EngineeringTopic :: Software Development :: Libraries |
Evidence: hatchling_autoextras_hook-0.1.3-py3-none-any.whl
Tags
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 › “hatchling metadata hook”
- hatchling-autoextras-hookA Hatchling metadata hook that automatically generates an `all` extra…
- hatch_build_scriptsA Hatch build plugin that runs arbitrary shell commands during…
- hatch-requirements-txtA Hatchling plugin that reads project dependencies from…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
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.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
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.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also hatch_build_scripts · hatch-requirements-txt · uv-dynamic-versioning · hatchling · hatch-regex-commit · hatch-cython · hatch-polylith-bricks · hatch-nodejs-version · hatch-vcs · setuptools-git-versioning