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 stale · no recent hits
total hits 18
actors 5 distinct systems
last hit 14d ago human
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · VN · 🇫🇷 France
Resources
API endpoints
full doc /v1/registry/conditional
install /v1/registry/conditional/install
compatibility /v1/registry/conditional/compatibility