Preparing for system design interviews?  Try bugzed.com →

Temporary Environment Variable Context Manager

JSON →
library 2.1.0 ·python
verified Jun 28, 2026

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.

total hits 12
actors 4 distinct systems
last hit 7d ago ByteDance
GPTBot
4
ByteDance
2
Script
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇸🇬 Singapore · 🇩🇪 Germany