{"library":"tempenv","type":"library","category":null,"description":"tempenv is a lightweight Python context manager and decorator for temporarily setting and unsetting environment variables. It guarantees that environment variables are restored to their original state after the context exits or a decorated function completes, making it ideal for testing or local development. The current version is 2.1.0, with releases primarily driven by Python version compatibility updates and minor maintenance.","language":"python","status":"active","version":"2.1.0","tags":["environment variables","context manager","decorator","testing","utility","os.environ"],"last_verified":"Wed May 27","install":[{"cmd":"pip install tempenv","imports":["from tempenv import TemporaryEnvironment"]}],"homepage":null,"github":"https://github.com/jeking3/tempenv","docs":null,"changelog":null,"pypi":"https://pypi.org/project/tempenv/","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":0.01,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/tempenv/compatibility"}}