Skip to content
项目

关于

Leaping's pytest debugger is a simple, fast and lightweight debugger for Python tests. Leaping traces the execution of your code and allows you to retroactively inspect the state of your program at any time, using an LLM-based debugger with natural language.

其他项目

这些数字如何统计

可以做什么

  • Why am I not hitting function x?
  • Why was variable y set to this value?
  • What was the value of variable x at this point?
  • What changes can I make to this code to make this test pass?

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Leaping

Leaping's pytest debugger is a simple, fast and lightweight debugger for Python tests. Leaping traces the execution of your code and allows you to retroactively inspect the state of your program at any time, using an LLM-based debugger with natural language.

It does this by keeping track of all of the variable changes and other sources of non-determinism from within your code.

Installation

  • pip install leaping
  • Please set the environment variable OPENAI_API_KEY to your GPT API key, if you plan on using GPT

Usage

pytest --leaping
By default, pytest automatically discovers all the python tests within your project and runs them. Once the test has been run, a CLI will open allowing you to interact with the debugger.

When pytest starts up, you will be prompted to select a model. Right now, we support both Ollama and GPT-4.

Features

You can ask Leaping questions like:

  • Why am I not hitting function x?
  • Why was variable y set to this value?
  • What was the value of variable x at this point?
  • What changes can I make to this code to make this test pass?

探索相关项目

加载中…