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:
python3 -m pip install deepseek-recipe
Import as deepseek_recipe. Source builds require Rust, OpenCV 4.x, and Clang/libclang.
Example
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 11.4 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7818802935becc76ac9b81af6b4a1e5390ec65355cecefd1fd4790f51845c1c5
|
|
| MD5 |
683db06ae8893db146ed4ecce8261ce5
|
|
| BLAKE2b-256 |
45878be03c8cc4f86ac27577b20466c40ad5a77c1fd1d3d4a438bd0120d0cbae
|
File details
Details for the file deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 9.9 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a5b1fec4e5663d97527370227fda418495f21c6ff73e95663624e906a35c25b
|
|
| MD5 |
aeb6b91579c9e2b46ab36e32498bca2e
|
|
| BLAKE2b-256 |
bfb1248eb99f7e659a43c5eff9fe42b773ce927607e5b5c058ecf1649be8d034
|
File details
Details for the file deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_x86_64.whl.
File metadata
- Download URL: deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_x86_64.whl
- Upload date:
- Size: 8.9 MB
- Tags: CPython 3.10+, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6d9c52dead2d550f1487d74b999e40692b8633e9be5f41eb5be7bff47ba3717
|
|
| MD5 |
79be13614f6817ea8f8dc30cd558fc48
|
|
| BLAKE2b-256 |
f379a41fe43c0c658b0277947a22cb7cea922cdda1b7a9cc03fb39e6af5ec17f
|
File details
Details for the file deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 8.3 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cadb53a202960fc5d381f52a9c30afb0e44d7eaaa22197e851c09789bf65b83e
|
|
| MD5 |
81acd7097621a1480d2dd8ccad473c0e
|
|
| BLAKE2b-256 |
eae98b9dedbcd3aaabac393cd08c99a1c0f0670ea6493ac727fc2857bb4f88dd
|