wllegal
raw JSON → 2026.3 verified Fri May 01 auth: no python
Hosted Weblate legal stuff. Version 2026.3, requires Python >=3.11. Released as part of Weblate's legal compliance tools. Development tracked on GitHub.
pip install wllegal Common errors
error ModuleNotFoundError: No module named 'wllegal' ↓
cause Package not installed or Python environment not correct.
fix
Run
pip install wllegal in the correct Python environment (Python >=3.11). error AttributeError: module 'wllegal' has no attribute 'legal_info' ↓
cause Function removed or renamed in recent version (use `obligations`).
fix
Replace
wllegal.legal_info() with wllegal.obligations(). error AttributeError: 'Legal' object has no attribute 'foo' ↓
cause Using an attribute that does not exist on the Legal class.
fix
Check the available methods:
print(dir(Legal)) after importing. Warnings
breaking Version 2026.3 requires Python >=3.11. Older Python versions are not supported. ↓
fix Upgrade Python to 3.11 or newer.
deprecated The function `legal_info()` has been deprecated in favor of `obligations()`. ↓
fix Use `wllegal.obligations()` instead of `wllegal.legal_info()`.
gotcha Importing `from wllegal import *` may bring unexpected names; module does not define `__all__`. ↓
fix Explicitly import required symbols like `from wllegal import Legal`.
Imports
- legal wrong
from wllegal import legalcorrectimport wllegal - Legal wrong
from wllegal.legal import Legalcorrectfrom wllegal import Legal
Quickstart
import wllegal
from wllegal import Legal
# Quick usage: list legal obligations
obligations = wllegal.obligations()
print(obligations)
# Use Legal class
legal_instance = Legal()
print(legal_instance.info())