Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl (9.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ x86-64

deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_arm64.whl (8.3 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7818802935becc76ac9b81af6b4a1e5390ec65355cecefd1fd4790f51845c1c5
MD5 683db06ae8893db146ed4ecce8261ce5
BLAKE2b-256 45878be03c8cc4f86ac27577b20466c40ad5a77c1fd1d3d4a438bd0120d0cbae

See more details on using hashes here.

File details

Details for the file deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for deepseek_recipe-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5a5b1fec4e5663d97527370227fda418495f21c6ff73e95663624e906a35c25b
MD5 aeb6b91579c9e2b46ab36e32498bca2e
BLAKE2b-256 bfb1248eb99f7e659a43c5eff9fe42b773ce927607e5b5c058ecf1649be8d034

See more details on using hashes here.

File details

Details for the file deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 b6d9c52dead2d550f1487d74b999e40692b8633e9be5f41eb5be7bff47ba3717
MD5 79be13614f6817ea8f8dc30cd558fc48
BLAKE2b-256 f379a41fe43c0c658b0277947a22cb7cea922cdda1b7a9cc03fb39e6af5ec17f

See more details on using hashes here.

File details

Details for the file deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepseek_recipe-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cadb53a202960fc5d381f52a9c30afb0e44d7eaaa22197e851c09789bf65b83e
MD5 81acd7097621a1480d2dd8ccad473c0e
BLAKE2b-256 eae98b9dedbcd3aaabac393cd08c99a1c0f0670ea6493ac727fc2857bb4f88dd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

4 files

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page