Registry / data / keboola-component

keboola-component

JSON →
library1.10.0pypypi✓ verified 85d ago

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.

pip install keboola-component
INSTALL
IMPORT
SIG · KEBOOLA-COMPONENT
K
keboola-component
datapythonv1.10.0
Install
2.4s avg
Import
380ms
Disk
21MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.10.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.402s · 23MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.4s · import 0.358s · 24MB
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CommonInterface
from keboola.component import CommonInterface
Main class for component development.
CommonInterface
from keboola_component import CommonInterface
Incorrect module name; use keboola.component (dot).

Initialize the component, read configuration, process input tables, and write output.

from keboola.component import CommonInterface # Initialize interface; automatically reads configuration from environment ci = CommonInterface() # Access configuration parameters params = ci.configuration.parameters print(f"Parameters: {params}") # Read input tables for table in ci.get_input_tables(): print(f"Input table: {table.name} at {table.full_path}") # Write output tables ci.write_table('output.csv', ['col1', 'col2'], [['a', '1']])
keboola-component --version
Debug
Known issues
breakingVersion 2.0 may remove deprecated classes like 'Application'. Use CommonInterface instead.
fix
Replace 'from keboola.component import Application' with CommonInterface.
affects: >=1.0
deprecatedThe 'logging' module's `set_default_logger` may be removed; the library now tags own handlers.
fix
Use CommonInterface's logging directly or configure custom handlers carefully.
affects: >=1.10.0
gotchaEnvironment variables are mandatory: KBC_DATADIR must point to a valid data directory.
fix
Set KBC_DATADIR to the directory containing config.json and manifest files.
affects: >=1.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'keboola_component'
Incorrect import path; the correct module name uses a dot: keboola.component.
fix
Run: import keboola.component
keboola.component.exceptions.UserException: Invalid configuration
The configuration JSON is missing required fields like 'parameters' or 'image_parameters'.
fix
Ensure config.json in KBC_DATADIR is valid and includes all expected sections.
Upgrade
Version history
1.10.0latest on PyPI · released Apr 9, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
keboola-component — pip install keboola-component · libregistry