{"id":21672,"library":"outdated","title":"outdated","description":"A Python library to check if a version of a PyPI package is outdated. Current version: 0.2.2. Release cadence: infrequent, last updated in 2020.","status":"active","version":"0.2.2","language":"python","source_language":"en","source_url":"http://github.com/alexmojaki/outdated","tags":["version-check","pypi","outdated"],"install":[{"cmd":"pip install outdated","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Main function to check if a package version is outdated.","symbol":"check_outdated","correct":"from outdated import check_outdated"}],"quickstart":{"code":"from outdated import check_outdated\n\npackage = 'outdated'\ncurrent_version = '0.2.2'\nis_outdated, latest_version = check_outdated(package, current_version)\nif is_outdated:\n    print(f\"Package {package} is outdated. Latest version: {latest_version}\")\nelse:\n    print(f\"Package {package} is up to date.\")","lang":"python","description":"Check if a specific version of a package is outdated."},"warnings":[{"fix":"Handle exceptions gracefully, e.g., using try/except.","message":"The function check_outdated makes a network request to PyPI. Ensure internet connectivity; otherwise, it may raise a ConnectionError.","severity":"gotcha","affected_versions":"all"},{"fix":"Use a valid PEP 440 version string.","message":"The check is based on the local version string you provide. If you provide a malformed version (e.g., '0.2.2a'), it may not parse correctly.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install outdated'.","cause":"The package is not installed.","error":"ModuleNotFoundError: No module named 'outdated'"},{"fix":"Ensure you have version 0.2.0 or later and use 'from outdated import check_outdated'.","cause":"Incorrect import or outdated library version.","error":"AttributeError: module 'outdated' has no attribute 'check_outdated'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}