Metadata-Version: 2.4
Name: deepseek-recipe
Version: 0.1.0
Requires-Dist: pytest>=8,<10 ; extra == 'test'
Provides-Extra: test
License-File: LICENSE
License-File: THIRD_PARTY_LICENSES
Summary: Python bindings for deepseek-recipe components
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# deepseek-recipe-python

Python bindings for deepseek-recipe: conversion of Messages, Chat Completions,
and Responses requests, DeepSeek V4/V4.1 prompt and token encoding, image
preprocessing, and response streaming. Model inference, tool execution, and HTTP
transport are provided by the application.

## Installation

Python 3.10 or later:

```sh
python3 -m pip install deepseek-recipe
```

Import as `deepseek_recipe`. Source builds require Rust, OpenCV 4.x, and Clang/libclang.

## Example

```python
from deepseek_recipe import ChatCompletionRequest, ConversionOptions, DeepseekV41Encoding

request = ChatCompletionRequest({
    "model": "deepseek-flash",
    "messages": [{"role": "user", "content": "Hello"}],
})
converted = request.convert(ConversionOptions())
rendered = DeepseekV41Encoding().render_conversation(converted.conversation)
print(rendered.prompt)
```

## License

MIT. The distribution includes the license text.

