Install & Compatibility
Where this runs
tested against v6.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.670s · 80.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.0s · import 0.658s · 82MB
81MB installed
● package 81MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
WaffleFlag
✓ from edx_toggles.toggles import WaffleFlag
✗ from edx_toggles import WaffleFlag
WaffleFlag is in the toggles submodule, not top-level
WaffleSwitch
✓ from edx_toggles.toggles import WaffleSwitch
✗ from edx_toggles import WaffleSwitch
Same as WaffleFlag, must use toggles submodule
Create and check a WaffleFlag.
from edx_toggles.toggles import WaffleFlag
flag = WaffleFlag('myapp.my_flag', __name__, module_name=__name__)
if flag.is_enabled():
print('Feature is enabled')
else:
print('Feature is disabled')
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'edx_toggles'
The package is not installed.
fixRun `pip install edx-toggles`.
ImportError: cannot import name 'LegacyWaffleFlag' from 'edx_toggles.toggles'
LegacyWaffleFlag was removed in version 5.0.0.
fixUse WaffleFlag instead. See migration guide.
Upgrade
Version history
6.0.0latest on PyPI · released Apr 7, 2026
Audit
Dependencies
No dependency data recorded yet.