Skip to content

Commit 9f876ce

Browse files
authored
Revert "feat(cli): add Kaggle dataset integration and Croissant metadata parsing"
1 parent b9a5204 commit 9f876ce

File tree

4 files changed

+6
-635
lines changed

4 files changed

+6
-635
lines changed

tests/test_kaggle.py

Lines changed: 0 additions & 190 deletions
This file was deleted.

toon/__init__.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,6 @@ def decode_to_pydantic(*args, **kwargs):
2323
def generate_structure_from_pydantic(*args, **kwargs):
2424
raise ImportError("generate_structure_from_pydantic requires pydantic to be installed. Please install pydantic to use this feature.")
2525

26-
# Kaggle integration (optional - requires kaggle installation)
27-
try:
28-
from .kaggle import (
29-
download_dataset,
30-
find_best_csv,
31-
csv_to_records,
32-
parse_croissant,
33-
croissant_to_summary,
34-
is_kaggle_slug,
35-
)
36-
_KAGGLE_AVAILABLE = True
37-
except ImportError:
38-
_KAGGLE_AVAILABLE = False
39-
def download_dataset(*args, **kwargs):
40-
raise ImportError("download_dataset requires kaggle to be installed. Please install kaggle to use this feature.")
41-
def find_best_csv(*args, **kwargs):
42-
raise ImportError("find_best_csv requires kaggle to be installed. Please install kaggle to use this feature.")
43-
def csv_to_records(*args, **kwargs):
44-
raise ImportError("csv_to_records requires kaggle to be installed. Please install kaggle to use this feature.")
45-
def parse_croissant(*args, **kwargs):
46-
raise ImportError("parse_croissant requires kaggle to be installed. Please install kaggle to use this feature.")
47-
def croissant_to_summary(*args, **kwargs):
48-
raise ImportError("croissant_to_summary requires kaggle to be installed. Please install kaggle to use this feature.")
49-
def is_kaggle_slug(*args, **kwargs):
50-
raise ImportError("is_kaggle_slug requires kaggle to be installed. Please install kaggle to use this feature.")
51-
5226
__version__ = '1.0.0'
5327
__all__ = [
5428
'encode',
@@ -57,12 +31,6 @@ def is_kaggle_slug(*args, **kwargs):
5731
'encode_pydantic',
5832
'decode_to_pydantic',
5933
'generate_structure_from_pydantic',
60-
'download_dataset',
61-
'find_best_csv',
62-
'csv_to_records',
63-
'parse_croissant',
64-
'croissant_to_summary',
65-
'is_kaggle_slug',
6634
'COMMA',
6735
'TAB',
6836
'PIPE',

0 commit comments

Comments
 (0)