{"id":27554,"library":"wllegal","title":"wllegal","description":"Hosted Weblate legal stuff. Version 2026.3, requires Python >=3.11. Released as part of Weblate's legal compliance tools. Development tracked on GitHub.","status":"active","version":"2026.3","language":"python","source_language":"en","source_url":"https://github.com/WeblateOrg/wllegal","tags":["weblate","legal","compliance"],"install":[{"cmd":"pip install wllegal","lang":"bash","label":"stable"}],"dependencies":[],"imports":[{"note":"Wrong because legal is not a submodule; the package exposes top-level functions.","wrong":"from wllegal import legal","symbol":"legal","correct":"import wllegal"},{"note":"Legal is a class directly in wllegal, not in a submodule.","wrong":"from wllegal.legal import Legal","symbol":"Legal","correct":"from wllegal import Legal"}],"quickstart":{"code":"import wllegal\nfrom wllegal import Legal\n\n# Quick usage: list legal obligations\nobligations = wllegal.obligations()\nprint(obligations)\n\n# Use Legal class\nlegal_instance = Legal()\nprint(legal_instance.info())","lang":"python","description":"Basic usage of wllegal package: import the module, use top-level functions and the Legal class."},"warnings":[{"fix":"Upgrade Python to 3.11 or newer.","message":"Version 2026.3 requires Python >=3.11. Older Python versions are not supported.","severity":"breaking","affected_versions":"2026.x"},{"fix":"Use `wllegal.obligations()` instead of `wllegal.legal_info()`.","message":"The function `legal_info()` has been deprecated in favor of `obligations()`.","severity":"deprecated","affected_versions":">=2026.0"},{"fix":"Explicitly import required symbols like `from wllegal import Legal`.","message":"Importing `from wllegal import *` may bring unexpected names; module does not define `__all__`.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install wllegal` in the correct Python environment (Python >=3.11).","cause":"Package not installed or Python environment not correct.","error":"ModuleNotFoundError: No module named 'wllegal'"},{"fix":"Replace `wllegal.legal_info()` with `wllegal.obligations()`.","cause":"Function removed or renamed in recent version (use `obligations`).","error":"AttributeError: module 'wllegal' has no attribute 'legal_info'"},{"fix":"Check the available methods: `print(dir(Legal))` after importing.","cause":"Using an attribute that does not exist on the Legal class.","error":"AttributeError: 'Legal' object has no attribute 'foo'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}