{"library":"conditional","type":"library","category":null,"description":"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.","language":"python","status":"active","version":"2.0","tags":["context-manager","conditional-execution","utility"],"last_verified":"Tue May 26","install":[{"cmd":"pip install conditional","imports":["from conditional import Conditional"]}],"homepage":null,"github":"https://github.com/stefanholek/conditional","docs":"https://conditional.readthedocs.io/en/stable/","changelog":null,"pypi":"https://pypi.org/project/conditional/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.5,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/conditional/compatibility"}}