io-utilities

Stream JSONL, JSON, CSV, and Pickle data with automatic format detection.

9|Updated Aug 8, 2023
One-click install
npx skills add https://github.com/anhvth/speedy_utils --skill io-utilities
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: io-utilities
Source: https://github.com/anhvth/speedy_utils/tree/main/.github/skills/io-utilities
Command: npx skills add https://github.com/anhvth/speedy_utils --skill io-utilities

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Efficiently handling IO tasks across formats (JSON, JSONL, CSV, TXT) and providing streaming, loading, and serialization utilities to reduce boilerplate and errors.

Core Features & Use Cases

  • Fast JSONL processing with streaming and automatic decompression.
  • Universal loading by file extension for multi-format data sources.
  • Serialization helpers for JSON and Pickle, with support for Pydantic models and automatic directory creation.
  • Use Case: Process large datasets from disk or network sources with minimal memory footprint and straightforward APIs.

Quick Start

Stream a large compressed JSONL file with fast_load_jsonl to demonstrate memory-efficient processing.

Frequently Asked Questions about io-utilities

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream large JSONL files with low memory usage?

Stream large JSONL files with low memory usage using fast_load_jsonl to process records sequentially. This skill handles automatic decompression, enabling memory-efficient processing of large compressed datasets directly from disk or network sources.

What is the best way to load multiple file formats automatically in Python?

The best way to load multiple file formats automatically is using universal loading utilities that auto-detect formats by file extension. This skill natively supports JSON, JSONL, CSV, and TXT files, reducing boilerplate code for multi-format data sources.

Can I serialize Pydantic models to JSON and Pickle safely?

Yes, you can serialize Pydantic models to JSON and Pickle safely using built-in serialization helpers. These utilities manage object serialization while automatically creating parent directories as needed to prevent file-not-found errors.

Does this IO utility handle automatic decompression for compressed JSONL streams?

Yes, this IO utility handles automatic decompression for compressed JSONL streams. It streamlines data I/O tasks by detecting file extensions and applying fast JSONL streaming to minimize the memory footprint during extraction.

What are the limitations of streaming JSONL for multi-format data loading?

A limitation of streaming JSONL for multi-format data loading is that auto-detection relies strictly on file extensions for JSON, CSV, and Pickle. Files without recognized extensions or those requiring non-streaming access patterns may need manual format specification.

Why do I need a specialized IO utility for JSONL streaming and serialization?

You need a specialized IO utility for JSONL streaming and serialization to eliminate boilerplate code and prevent common errors. It provides fast, flexible data handling with automatic directory creation and broad format support across diverse workflows.