semvec/pypi-packages huggingface dataset:
pdb-openai 0.0.8
A python debugger with OpenAI integrations
Requires Python: >=3.6

# Pdb + GPT-4

A wrapper around the standard Python debugger `Pdb` that adds 3 special commands for interacting with OpenAI's models.

## Installation

```
pip install pdb_openai
```

## Configuration

Your OpenAI API key should be available in the `OPENAI_API_KEY` env var. Alternatively, you can pass an api key as an
argument to the `stop` function which triggers a breakpoint in your code.

## Usage

Use this debugger similar to how you would invoke pdb:

```
from pdb_openai import debug; debug.stop()
```

Once in the session, you can use 3 new commands in addition to the standard pdb workflow. As you interact with the
debugger, the session history including input, output and errors are stored in memory. When any of the commands below
are invoked, the model gets a transcript of the session in addition to your prompt.

## gen

```
(Pdb OpenAI) gen a 5 line greeter function with randomness
import random
def greet():
    names = ["Alice", "Bob", "Charlie", "Diana", "Edward"]
    greeting = ["Hello", "Hi", "Hey", "Greetings", "What's up"]
    print(f"{random.choice(greeting)}, {random.choice(names)}!")

Run it? (y/n) y

(Pdb OpenAI) greet()
Hello, Bob!
```

## ask

```
(Pdb OpenAI) ask what happened
When the `greet()` function was called, the following occurred:
1. The function selected a random name from the list `names`, which contains five different names: "Alice", "Bob", "Charlie", "Diana", and "Edward".
2. It also selected a random greeting from the list `greeting`, which includes five different greetings: "Hello", "Hi", "Hey", "Greetings", and "What's up".
3. It combined the selected greeting and name with a formatted string to create a message.
4. Finally, the function printed this message to the console.
Since the selections are random, the exact output can vary with each call to `greet()`, displaying a greeting and a name randomly chosen from the lists provided.
```

## wtf

This is an alias for `ask` with this prompt: `Explain how the program arrived at this state, including the cause of any
errors. Be concise.` Add one or more `?` chars to the command to provide more context to the model.
chesscli-guav 0.1.0
A CLI for chess application development.
Requires Python: >=3.7

# ChessCLI

ChessCLI is a command-line interface (CLI) tool designed to streamline the development environment for a chess game project. It automates tasks such as setting up the project, opening the codebase in Visual Studio Code, and managing Docker containers.

## Features

- **Easy Configuration**: Quickly configure the path to your chess game project repository.
- **Code Access**: Open your chess game project in Visual Studio Code with a single command.
- **Docker Management**: Start and stop your Docker containers directly through the CLI, simplifying your workflow.

## Installation

To install ChessCLI, run the following command in your terminal:

```bash
pip install chesscli
```

## Usage

Here are some of the commands you can use with ChessCLI:

- **Setup**: If you haven't cloned the chess game repository yet, this command helps you clone it and set up your development environment.

  ```bash
  chesscli setup
  ```

- **Configure**: Configure the path to your existing chess game project repository.

  ```bash
  chesscli configure
  ```

- **Open in VS Code**: Open the configured chess game project in Visual Studio Code.

  ```bash
  chesscli code
  ```

- **Start Docker Containers**: Start the Docker containers needed for your project.

  ```bash
  chesscli start
  ```

- **Stop Docker Containers**: Stop the Docker containers.

  ```bash
  chesscli stop
  ```

## Development

Want to contribute? Great! ChessCLI is open for contributions. Whether it's fixing bugs, adding new features, or improving the documentation, all contributions are welcome.

## License

ChessCLI is released under the [MIT License](LICENSE). See the LICENSE file for more details.

## Acknowledgments

- Thanks to all the contributors who spend time to improve ChessCLI.
- Special thanks to [Typer](https://typer.tiangolo.com/), which made creating this CLI tool a breeze.