8000 GitHub - tom-doerr/simpledspy
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tom-doerr/simpledspy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleDSPy

PyPI version Python Version License: MIT Code style: black Tests

SimpleDSPy is a lightweight Python library that simplifies building and running DSPy pipelines with an intuitive interface.

Note: This project is currently a work in progress and is not officially affiliated with or endorsed by the DSPy project. It is an independent effort to create a simplified interface for working with DSPy pipelines.

Features

  • Automatic module creation from input/output names
  • Pipeline management and step tracking
  • Clean, minimal API
  • Built-in caching and configuration
  • Type hints and documentation

Installation

pip install simpledspy

Quick Start

from simpledspy import pipe

# Basic text processing
cleaned_text = pipe("Some messy   text with extra spaces")
print(cleaned_text)  # "Some messy text with extra spaces"

# Multiple inputs/outputs
name, age = pipe("John Doe, 30 years old")
print(name)  # "John Doe"
print(age)   # 30

# Custom descriptions
full_name = pipe(
    "John", "Doe", 
    description="Combine first and last names"
)
print(full_name)  # "John Doe"

How It Works

The pipe function automatically:

  1. Detects input variable names
  2. Creates appropriate DSPy modules
  3. Tracks pipeline steps
  4. Returns processed outputs

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0