Skip to content

API Reference parrot_loaders.files.text

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_loaders.files.text

View source

Alias FilePlugin

Re-exported from parrot_loaders.files.abstract.FilePlugin.

Class TextFile

A class to handle text files asynchronously.

Parameter Type Default Description
path str Path to the text file.
encoding str 'utf-8' File encoding (default: utf-8)

Method TextFile.open

Asynchronously open the text file.

open()

Method TextFile.close

Asynchronously close the text file.

close()

Method TextFile.read

Asynchronously read the content of the text file.

read() -> str

Returns: str — Content of the text file as a string.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally