{"id":23277,"library":"argparse-logging","title":"argparse-logging","description":"A simple library to configure logging from command line arguments when using argparse. Version 2020.11.26, last released in 2020 (no recent updates).","status":"maintenance","version":"2020.11.26","language":"python","source_language":"en","source_url":"https://github.com/nanassito/argparse_logging","tags":["argparse","logging"],"install":[{"cmd":"pip install argparse-logging","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Wrong casing; class name is camelCase.","wrong":"from argparse_logging import argparse_logging","symbol":"ArgparseLogging","correct":"from argparse_logging import ArgparseLogging"}],"quickstart":{"code":"import argparse\nfrom argparse_logging import ArgparseLogging\n\nparser = argparse.ArgumentParser()\nArgparseLogging(parser, log_level='info', log_format='%(asctime)s - %(levelname)s - %(message)s')\nargs = parser.parse_args()\n# Now logging is configured from command line args (e.g., --log-level debug)\nimport logging\nlogging.getLogger().info('This is a test message')","lang":"python","description":"Basic usage to integrate logging with argparse."},"warnings":[{"fix":"Consider using argparse's own argparse.ArgumentDefaultsHelpFormatter or manual logging configuration for more control.","message":"The library hasn't been updated since 2020 and relies on older Python conventions. It may not work well with modern logging customizations.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to custom argparse + logging setup for future-proofing.","message":"No official deprecation, but the library is effectively in maintenance mode with no active development. Breaking changes or compatibility issues with newer Python versions may arise.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install with pip install argparse-logging and import as 'from argparse_logging import ArgparseLogging'.","cause":"Library not installed or incorrect import name.","error":"ModuleNotFoundError: No module named 'argparse_logging'"},{"fix":"Ensure you have the correct version installed and use: from argparse_logging import ArgparseLogging","cause":"Wrong import due to naming inconsistency or version mismatch.","error":"AttributeError: module 'argparse_logging' has no attribute 'ArgparseLogging'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}