{"id":21500,"library":"keboola-component","title":"Keboola Component","description":"General library for building Python applications that run in the Keboola Connection environment. Provides abstractions for configuration parsing, logging, and data I/O. Current version 1.10.0, requires Python >=3.10. Released irregularly.","status":"active","version":"1.10.0","language":"python","source_language":"en","source_url":"https://github.com/keboola/python-component","tags":["keboola","etl","component","kbc"],"install":[{"cmd":"pip install keboola-component","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Main class for component development.","symbol":"CommonInterface","correct":"from keboola.component import CommonInterface"},{"note":"Incorrect module name; use keboola.component (dot).","wrong":"from keboola_component import CommonInterface","symbol":"CommonInterface"}],"quickstart":{"code":"from keboola.component import CommonInterface\n\n# Initialize interface; automatically reads configuration from environment\nci = CommonInterface()\n\n# Access configuration parameters\nparams = ci.configuration.parameters\nprint(f\"Parameters: {params}\")\n\n# Read input tables\nfor table in ci.get_input_tables():\n    print(f\"Input table: {table.name} at {table.full_path}\")\n\n# Write output tables\nci.write_table('output.csv', ['col1', 'col2'], [['a', '1']])","lang":"python","description":"Initialize the component, read configuration, process input tables, and write output."},"warnings":[{"fix":"Replace 'from keboola.component import Application' with CommonInterface.","message":"Version 2.0 may remove deprecated classes like 'Application'. Use CommonInterface instead.","severity":"breaking","affected_versions":">=1.0"},{"fix":"Use CommonInterface's logging directly or configure custom handlers carefully.","message":"The 'logging' module's `set_default_logger` may be removed; the library now tags own handlers.","severity":"deprecated","affected_versions":">=1.10.0"},{"fix":"Set KBC_DATADIR to the directory containing config.json and manifest files.","message":"Environment variables are mandatory: KBC_DATADIR must point to a valid data directory.","severity":"gotcha","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run: import keboola.component","cause":"Incorrect import path; the correct module name uses a dot: keboola.component.","error":"ModuleNotFoundError: No module named 'keboola_component'"},{"fix":"Ensure config.json in KBC_DATADIR is valid and includes all expected sections.","cause":"The configuration JSON is missing required fields like 'parameters' or 'image_parameters'.","error":"keboola.component.exceptions.UserException: Invalid configuration"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}