kedro-org / kedro

Kedro is a toolbox for production-ready data science. It uses software engineering best practices to help you create data engineering and data science pipelines that are reproducible, maintainable, and modular.
https://kedro.org
Apache License 2.0
9.88k stars 893 forks source link

Pretty printing: `DataCatalog.__repr__` #3981

Closed ElenaKhaustova closed 2 months ago

ElenaKhaustova commented 3 months ago

Description

Parent ticket: https://github.com/kedro-org/kedro/issues/3913 Blocked by: https://github.com/kedro-org/kedro/issues/3980

Implement __repr__ for DataCatalog for better catalog representation and printing.

Context

https://github.com/kedro-org/kedro/issues/3913#issue-2330910213 https://github.com/kedro-org/kedro/issues/1721

Possible Implementation

ElenaKhaustova commented 3 months ago

Similarly to printing datasets two approaches were implemented:

Screenshot 2024-07-05 at 00 31 48 Screenshot 2024-07-05 at 00 32 10

ElenaKhaustova commented 2 months ago

The non-indented version was preferred to the indented, closing #3992

ElenaKhaustova commented 2 months ago

Solved in https://github.com/kedro-org/kedro/pull/3990