Skip to main content

revDeepSeek

DeepSeek逆向API

安装

pip install revDeepSeek --upgrade

使用

具体用法可查看方法Type Hint

1.初始化

from revDeepSeek import Chatbot
chatbot = Chatbot("USER_TOKEN")

USER_TOKEN获取:
1.打开开发者工具,找到应用程序选项卡
2.如下图

2.使用

新建会话

res = chatbot.create_session()
session_id = res["id"] #会话ID

发送消息

res = chatbot.chat(
    conversation_id=session_id, # 会话ID
    prompt="你好", # 消息内容
    parent_message_id=None, # 父消息ID
    search=False, # 启用搜索
    thinking=False, # 启用深度思考
    file=None, # 文件二进制数据(上传文件需添加)
    stream=False, # 启用流式输出
)

响应示例:

{
    "content": "内容",
    "type": "text",
    "message_id": 100
}

获取会话列表

res = chatbot.get_session_list(count=100)

获取会话历史

res = chatbot.get_session_history(session_id=session_id)

删除会话

res = chatbot.delete_session(session_id=session_id)

Metadata

Release files for revDeepSeek 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for revDeepSeek 0.0.1
File Size Uploaded
revdeepseek-0.0.1.tar.gz 372.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for revDeepSeek 0.0.1
File Interpreter ABI Platform
revdeepseek-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 393.5 kB

Release files / revdeepseek-0.0.1.tar.gz

Download URL revdeepseek-0.0.1.tar.gz
Size 372.1 kB
Tags Source
SHA-256 checksum
How to use checksums
60492243750ae027f1498c96dca5d781c45474feb6e9bd49a51b7e9a4461ca92
BLAKE2b-256 checksum
How to use checksums
33d21b42160082ba43e152f937c53477859c625043fe7b22183f5cc3516b6cc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 3, 2025.

Transparency log

Release files / revdeepseek-0.0.1-py3-none-any.whl

Download URL revdeepseek-0.0.1-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c0cb72c2d5b2c4df4db47d55feb796136313422146e159a7e57e34363a65ab1
BLAKE2b-256 checksum
How to use checksums
c92d7448a89eabb69cb88b7a52bb44f2fdc700b8fe4320eb93be85ea8287478f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 3, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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