Docs /Templates/ sinapsis-data-readers

CSVDatasetReader

sinapsis-data-readerscommunity

Python template · sinapsis_data_readers.templates.datasets_readers.csv_datasets

Overview

Base class for all Templates in Sinapsis. A template is a reusable blueprint for implementing Agent executable components. In summary, templates can encapsulate a series of operations, ranging from simple methods to sophisticated orchestrations of multiple functions or other templates.

Properties: * Highly parameterized through Template attributes. * Single input and output design. * Standalone functionality. * Enable the creation of modular and scalable agents. * Can be dynamically created from existing python methods or classes.

Capabilities

Capabilities: not set

Installation

Install the published package using pip or uv.

Terminalbash
pip install sinapsis-data-readers==1.0.0
uv pip install sinapsis-data-readers==1.0.0
uv add sinapsis-data-readers==1.0.0

Configuration

Effective fields from the inspector schema, including nested Pydantic model fields.

metadata

Field used to set the template instance name and agent name. Defaults to None.

sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
root_dir
str | None
Optional
Default: null
path_to_csvRequired
str
Required
Default: null
store_as_time_series
bool
Optional
Default: false

Configuration example

Generated from documented defaults. Replace any placeholders and complete required nested settings before running.

yaml
templates:
  - template_name: "CSVDatasetReader"
    class_name: "CSVDatasetReader"
    attributes:
      root_dir: null
      path_to_csv: "<required>"
      store_as_time_series: false

Inheritance

Immediate parent: sinapsis_core.template_base.template.Template

Environment variables

Environment definitions belong to their canonical Python modules.

SINAPSIS_CACHE_DIR · defined elsewhere