Skip to content

X-Zero-L/schemaforge-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SchemaForge Python SDK

AI-Powered Data Structuring Tool

GitHub · Documentation · Website

English | 中文

About

This is the official Python SDK for SchemaForge AI, a unified service for AI structured data processing using Pydantic models to define output formats, supporting multiple AI large language models.

Installation

pip install schemaforge

Quick Start

from pydantic import BaseModel
from schemaforge import SchemaForge

# Initialize client
client = SchemaForge(api_key="your_secure_api_key_here", api_base="http://localhost:8000", default_model="openai:o3-mini")

# Define a Pydantic model
class Person(BaseModel):
    name: str
    age: int
    occupation: str
    email: str

# Structure text using the model
person = client.structure(
    content="John is a 30-year-old software engineer with email john@example.com",
    model_class=Person
)
print(person.model_dump())
# {'name': 'John', 'age': 30, 'occupation': 'software engineer', 'email': 'john@example.com'}

Features

  • Structure unstructured text into Pydantic models
  • Generate Pydantic models from natural language descriptions
  • Handle complex model dependencies automatically
  • Async support for all operations

Documentation

See the complete documentation for detailed examples and API reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages