{"id":27118,"library":"logilab-common","title":"Logilab Common","description":"A collection of low-level Python packages and modules used by Logilab projects, including utilities for date manipulation, configuration, caching, and more. Current version is 2.1.0, with a maintenance release cadence.","status":"active","version":"2.1.0","language":"python","source_language":"en","source_url":"https://github.com/Logilab/logilab-common","tags":["utilities","logilab","low-level","deprecated"],"install":[{"cmd":"pip install logilab-common","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Used for Python 2/3 compatibility in some modules","package":"six","optional":true},{"reason":"Used for type hints, backport for Python <3.5","package":"typing","optional":true}],"imports":[{"note":"Date is in the date submodule, not top-level","wrong":"from logilab.common import Date","symbol":"Date","correct":"from logilab.common.date import Date"},{"note":"Configuration class is in the configuration submodule","wrong":"from logilab.common import Configuration","symbol":"Configuration","correct":"from logilab.common.configuration import Configuration"}],"quickstart":{"code":"from logilab.common.date import Date\nd = Date.today()\nprint(d)\n\nfrom logilab.common.configuration import Configuration\nconfig = Configuration()\nprint(config)","lang":"python","description":"Basic usage: create a Date object and a Configuration object"},"warnings":[{"fix":"Use networkx or another graph library instead.","message":"The `logilab.common.graph` module has been deprecated and will be removed in a future version.","severity":"deprecated","affected_versions":">=1.0"},{"fix":"Use explicit import from submodules, e.g., `from logilab.common.date import Date` instead of relying on top-level imports.","message":"Import paths for submodules may change between versions. Always check the submodule path.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python 3.6+ and use logilab-common >=2.0.0.","message":"Python 2 support was dropped starting from version 2.0.0.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use an alternative library like networkx: pip install networkx and use networkx instead.","cause":"The graph module has been deprecated and removed in recent versions.","error":"ModuleNotFoundError: No module named 'logilab.common.graph'"},{"fix":"Use: from logilab.common.date import Date","cause":"Date is not exported from the top-level package; it must be imported from the submodule.","error":"ImportError: cannot import name 'Date' from 'logilab.common'"},{"fix":"Use: from logilab.common.date import Date","cause":"The import from top-level gives a module, not the class.","error":"TypeError: 'module' object is not callable when trying to instantiate Date directly"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}