{"id":27875,"library":"inform","title":"inform","description":"A Python library for print and logging utilities that provide colorized, formatted output and progress indicators. Current version is 1.36. Released roughly once or twice a year.","status":"active","version":"1.36","language":"python","source_language":"en","source_url":"https://github.com/Inform/inform","tags":["logging","cli","output","color","progress"],"install":[{"cmd":"pip install inform","lang":"bash","label":"Install inform"}],"dependencies":[],"imports":[{"note":"The library is used as a module, not a class. Use 'import inform' then call inform.log, inform.warn, etc.","wrong":"from inform import inform","symbol":"inform","correct":"import inform"}],"quickstart":{"code":"import inform\n\ninform.log('Hello, world!')\ninform.warn('This is a warning.')\ninform.fail('This is an error.')","lang":"python","description":"Basic usage: log, warn, and fail functions output colorized messages to stderr."},"warnings":[{"fix":"Use Python's print() for stdout; inform is for user-facing messages that should go to stderr.","message":"inform.log() writes to stderr, not stdout. Many users expect stdout.","severity":"gotcha","affected_versions":"all"},{"fix":"Use inform's own settings (e.g., inform.Config) to adjust output behavior.","message":"inform does not use Python's logging module; it has its own output system. Do not try to configure it with logging.basicConfig.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'with inform.Progress() as progress:' to create a progress indicator.","message":"inform.Progress is a context manager that requires a 'with' statement. Calling it without 'with' will not work as expected.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'import inform' and then call inform.log() etc.","cause":"Trying to import inform as a class or function instead of a module.","error":"AttributeError: module 'inform' has no attribute 'inform'"},{"fix":"Use inform.log() or inform.warn() instead of inform().","cause":"Calling inform() directly instead of inform.log().","error":"TypeError: 'module' object is not callable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}