dspy logo

dspy

stanfordnlp/dspy

A framework for programming language models

GraphCanon updated 2w · GitHub synced 2w

37k stars3.2k forksLast push 2w Python MIT

Decision brief

Evaluate DSPy based on its unique approach of programming language models via Python, making it an option that steps away from traditional prompting methods.

Good fit when

  • When you aim to leverage a comprehensive framework designed specifically for programming and developing with language models rather than just prompting them.
  • If you're working within the Python ecosystem and seek integration without needing significant adapters or translators.

Avoid when

  • When your project strictly requires real-time interaction and feedback through traditional prompting methods, as DSPy's framework is focused on a programming approach which may not be suitable for all
  • In scenarios where the flexibility of prompt-based interactions with language models is preferred over strict programming methodologies.

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of 2w
Provenance
Not a fork · Organization account
As of 2w
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install dspy
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

DSPy is a Python-based tool designed to program language models rather than prompt them, offering a new approach in interaction and development.

Capability facts

Languages
python

Source: github.language+pyproject.toml · Aug 7, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 7, 2026)

pip install dspy
Source link

Tags

README

Installation

pip install dspy

To install the very latest from main:

pip install git+https://github.com/stanfordnlp/dspy.git

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.