Introduction
Welcome to the official Python SDK for Lettria's Text-to-Graph (T2G) API!
Lettria's Text-to-Graph (T2G) technology transforms unstructured text into structured knowledge graphs. This SDK is designed to simplify the process of sending your data to the T2G API and retrieving the results, whether you are indexing a single document, a collection of files, or building complex ontologies.
This SDK is built with developers in mind, providing a clean, asynchronous client to handle API requests efficiently.
Features
Asynchronous Client
Built with asyncio and aiohttp for high-performance, non-blocking API calls.
Simple Interface
Easy-to-use methods for indexing files and managing jobs.
Data Validation
Leverages pydantic for robust and reliable data modeling.
Neo4j Integration
Directly save your graph data to a Neo4j instance.
Flexible Configuration
Configure the SDK via environment variables or directly in your code.
Built-in Error Handling
Gracefully handles API errors with custom exceptions.