Conditional Context Manager
JSON →The `conditional` library provides a `Conditional` context manager that executes code within a `with` block only when a specified boolean condition is true. It simplifies conditional execution of code sections, particularly useful when dealing with other context managers or resource allocation that should only happen under certain circumstances. As of version 2.0, it is actively maintained with a low release cadence.
Traffic · last 30 days ↑60% vs prev 7d
total hits 21
actors 8 distinct systems
last hit 2d ago Googlebot
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore · 🇫🇷 France
Resources
API endpoints
full doc /v1/registry/conditional
install /v1/registry/conditional/install
compatibility /v1/registry/conditional/compatibility