python-optional-dependencies
CommunityOptional dependencies for multi-backend support.
Software Engineering#packaging#dependency-management#backends#multi-backend#pyproject#optional-dependencies
Authorshimo4228
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This pattern enables libraries and CLIs to support multiple backends without forcing users to install every dependency, by using optional dependencies in the packaging config.
Core Features & Use Cases
- Define optional dependency groups in pyproject.toml (e.g., anthropic, openai, google) to enable per-backend installation.
- Provide convenient combinations (e.g., "anthropic", "openai", "all") to cover common scenarios.
- Support runtime checks and clear guidance to gracefully handle missing backends at install or runtime.
Quick Start
Define optional dependency groups in pyproject.toml and install a subset, for example pip install python-optional-dependencies[anthropic].
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: python-optional-dependencies Download link: https://github.com/shimo4228/claude-code-learned-skills/archive/main.zip#python-optional-dependencies Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.