bunnyscholar (Python SDK)
简体中文 | English
BunnyScholar 开放平台 官方 Python SDK。用几行代码接入 学术改写(降重) 与 拟人改写(降 AI / Humanizer) 能力。仅依赖 Python 标准库,无第三方依赖。
🔗 官网 · 开发者控制台 · API 文档 · 获取 API Key · 定价 · Agent Skill
个人用户(想直接给自己的论文降重 / 降 AI,不写代码)请移步官网在线使用 → bunnyscholar.cn · 会员套餐。本 SDK 面向开发者。
安装
pip install bunnyscholar
快速开始
import os
from bunnyscholar import BunnyScholar
client = BunnyScholar(api_key=os.environ["BUNNYSCHOLAR_API_KEY"])
# 学术改写 / 降重
rewrite = client.academic_rewrite(
"本研究旨在探讨人工智能在学术写作中的应用与影响。",
language="zh_CN",
quality="medium", # low | medium | high
)
print(rewrite.text) # 改写后的文本
print(rewrite.usage.amount) # 本次扣费(元)
# 拟人改写 / 降 AI
humanized = client.humanize(
"这段文字由 AI 生成,需要降低 AI 味以通过检测。",
language="zh_CN",
platform="cnki", # cnki | wanfang | weipu | gezida | daya | turnitin ...
)
print(humanized.text)
API
BunnyScholar(api_key, base_url="https://bunnyscholar.cn", timeout=60.0)
client.academic_rewrite(text, language="zh_CN", quality="low", personal_terms=None) -> Result
学术改写 / 降重。text 长度 10–2000 字符;language 支持 zh_CN zh_TW en ja ko fr es de it ru ms;quality 为 low/medium/high。
client.humanize(text, language="zh_CN", platform=None, need_plagiarism_reduction=False, personal_terms=None) -> Result
拟人改写 / 降 AI。text 长度 20–500 字符;language 为 zh_CN/en。
两个方法都返回 Result(text, usage),usage 为 Usage(currency, amount, unit_price, billable_units, chars_in)。
错误处理
非 2xx 响应抛出 BunnyScholarError(status, code, details):
from bunnyscholar import BunnyScholar, BunnyScholarError
try:
client.academic_rewrite("……")
except BunnyScholarError as err:
# 例如 402 insufficient_balance / 429 rate_limit_exceeded / 403 INVALID_API_KEY
print(err.status, err.code)
计费与限流
按输入字符数计费(元 / 千字),实时价见 定价页,余额可在 充值页 补充。单 Key 默认约 1800 次 / 60 秒,请对 429 做退避重试。
相关链接
官网 · 开发者文档 · Node.js SDK · Agent Skill · 服务条款 · support@bunnyscholar.com
License
bunnyscholar (Python SDK, English)
简体中文 | English
Official Python SDK for the BunnyScholar Open Platform — academic rewrite (paraphrasing) and AI humanizer. Standard-library only, no third-party dependencies.
🔗 Homepage · Developer console · API docs · Get an API key · Pricing
pip install bunnyscholar
from bunnyscholar import BunnyScholar
client = BunnyScholar(api_key="sk-xxxx")
rewrite = client.academic_rewrite("…", language="zh_CN", quality="medium")
print(rewrite.text, rewrite.usage.amount)
humanized = client.humanize("…", language="zh_CN", platform="turnitin")
print(humanized.text)
academic_rewrite(text, language, quality, personal_terms)— paraphrase / plagiarism reduction.text10–2000 chars; 11 languages;quality=low/medium/high.humanize(text, language, platform, need_plagiarism_reduction, personal_terms)— AI humanizer.text20–500 chars;language=zh_CN/en.
Non-2xx responses raise BunnyScholarError(status, code, details). Billed per input character — see pricing.
Links: Homepage · Docs · Node.js SDK · Agent Skill · support@bunnyscholar.com
License
Metadata
Release files for bunnyscholar 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bunnyscholar-0.1.0.tar.gz | 5.8 kB | Without provenance | Details for bunnyscholar-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bunnyscholar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bunnyscholar-0.1.0-py3-none-any.whl |
Total release size: 12.5 kB
Release files / bunnyscholar-0.1.0.tar.gz
| Download URL | bunnyscholar-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e311fbe4f5c007ca682a434ccca21603c0daa94c481fd341067c65f5ae917b2
|
|
BLAKE2b-256 checksum How to use checksums |
ad08efce1812dea2f08bda9927f1cbd49f95fa796295885ff9af1cabcb624dc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / bunnyscholar-0.1.0-py3-none-any.whl
| Download URL | bunnyscholar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
955ff1530d78aad5dba50248da9e26353e6e6e5b917176deeb960e83ad50ea8b
|
|
BLAKE2b-256 checksum How to use checksums |
fd74b2431a45101a79ca469401e25cc79b6d6ce09e6858da5ab899fb8523e659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for bunnyscholar 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.