specx-diwire-composition
CommunitySimplify Python service wiring with diwire in Specx.
Authormaksimzayats
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill simplifies dependency injection for Specx Python services using diwire, providing explicit and organized configuration of service components and test overrides.
Core Features & Use Cases
- Dependency Wiring: Wire dependencies with
diwirefor Specx services, handling dependencies likeioc/container.py, UoW managers, clients, settings, or factories. - DI Rules: Apply specific rules for injecting dependencies, including handling logging, transaction ownership, and avoiding manual object graph assembly.
- FastAPI Integration: Facilitate explicit composition in FastAPI applications by managing container lifespans and service lifecycle.
- Test Configuration: Configure tests with explicit
containerfixtures anddiwireoverrides for targeted resolution and testing scenarios. - Use Case: Suppose you're creating a FastAPI application that interacts with databases. This Skill would guide you through setting up a test environment with appropriate dependencies for integration testing without mocking internal logic.
Quick Start
Utilize the specx-diwire-composition skill to define your dependency wiring and composition in your Specx service.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: specx-diwire-composition Download link: https://github.com/maksimzayats/specx/archive/main.zip#specx-diwire-composition 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 620,000+ vetted skills library on demand.