{"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,"search_vec":"'1.36':21 'cli':30 'color':12,32 'current':18 'format':13 'indic':17 'inform':1 'librari':4 'log':8,29 'output':14,31 'print':6 'progress':16,33 'provid':11 'python':3 'releas':22 'rough':23 'twice':26 'util':9 'version':19 'year':28","created_at":"2026-05-09T05:52:32.509170+00:00","updated_at":"2026-05-09T05:52:32.509170+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://inform.readthedocs.io","github":"https://github.com/KenKundert/inform","docs":"https://inform.readthedocs.io","changelog":"https://github.com/KenKundert/inform/blob/master/doc/releases.rst","pypi":"https://pypi.org/project/inform/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}