CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-kedro

Kedro helps you build production-ready data and analytics pipelines

Overall
score

98%

Overview
Eval results
Files

top-level.mddocs/reference/

Top-Level Exports

Top-level exports available directly from the kedro module.

Module Import

import kedro

Capabilities

Package Version

Get the Kedro package version.

__version__: str  # Current version: "1.1.1"

Example:

import kedro

print(f"Kedro version: {kedro.__version__}")  # "1.1.1"

Custom Warning Classes

Kedro provides custom warning classes for deprecation and Python version compatibility.

class KedroDeprecationWarning(DeprecationWarning):
    """Custom class for warnings about deprecated Kedro features."""
    pass

class KedroPythonVersionWarning(UserWarning):
    """Custom class for warnings about incompatibilities with Python versions."""
    pass

These warnings are used internally by Kedro to alert users about:

  • Deprecated features that will be removed in future versions
  • Python version compatibility issues

Example:

import warnings
from kedro import KedroDeprecationWarning

# Filter Kedro deprecation warnings
warnings.filterwarnings("ignore", category=KedroDeprecationWarning)

IPython Extension Loader

Load Kedro's IPython extension for interactive development.

def load_ipython_extension(ipython: InteractiveShell) -> None:
    """
    Load the Kedro IPython extension.

    Parameters:
    - ipython: IPython InteractiveShell instance

    Returns:
    None
    """

This function is typically called automatically when loading the extension in IPython/Jupyter:

# In IPython or Jupyter
%load_ext kedro.ipython

Or call it programmatically:

from IPython import get_ipython
import kedro

ipython = get_ipython()
kedro.load_ipython_extension(ipython)

See IPython Extension for more details on using Kedro in interactive environments.

Install with Tessl CLI

npx tessl i tessl/pypi-kedro

docs

index.md

tile.json